EmbDev.net

Forum: ARM programming with GCC/GNU tools WinARM 20060606 and Vista


von Nazandy P. (nperez)


Rate this post
useful
not useful
Hello,

I need to develop in my Diploma Thesis an application with a LPC2129, so
I decided to install WinARM (I have read that in the Thesis that I have
to continue with it).

I have installed all and I have download an example...I have tried to
compile it, but it doesn't work.

I have found this page
http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/ and I have
added the needed path variables. But it doesn't still work. The error
message is:

> "make" main_CANAll.c

> Failed to create process: El sistema no puede encontrar el archivo especificado.

> Process Exit Code: 0
> Time Taken: 00:00

Thank you in advance!

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Nazandy Perez wrote:
>> "make" main_CANAll.c
>
>> Failed to create process: El sistema no puede encontrar el archivo 
especificado.

Spanish(?), please translate into English.

make xzy.c may not be an a valid make target, check the makefile. Did
you try make all?

Is the package unpacked into C:\WinARM? (do not unpack into the
%ProgramFiles%, AFAIK there is some "magic" in Vista to "vitualize" this
directory)

Check if the path to the build-tools is in the system-search path
(C:\WinARM\utils\bin).

Output of make --version and arm-elf-gcc --version ?

If the code does not depend on the
"newlib-reentrant-syscalls"-configuration as in WinARM 6/2006 you can
use the latest Yagarto package. There should be no "path-tricks" needed
for Vista.

von Nazandy P. (nperez)


Rate this post
useful
not useful
Excuse but I didn't have realised that there was something in Spanish...
Failed to create process: El sistema no puede encontrar el archivo
especificado.
in English: Failed to create process. The system can't find the specific
file.

Thank you


Martin Thomas wrote:
> Nazandy Perez wrote:
>>> "make" main_CANAll.c
>>
>>> Failed to create process: El sistema no puede encontrar el archivo 
especificado.
>
> Spanish(?), please translate into English.
>
> make xzy.c may not be an a valid make target, check the makefile. Did
> you try make all?
>
> Is the package unpacked into C:\WinARM? (do not unpack into the
> %ProgramFiles%, AFAIK there is some "magic" in Vista to "vitualize" this
> directory)
>
> Check if the path to the build-tools is in the system-search path
> (C:\WinARM\utils\bin).
>
> Output of make --version and arm-elf-gcc --version ?
>
> If the code does not depend on the
> "newlib-reentrant-syscalls"-configuration as in WinARM 6/2006 you can
> use the latest Yagarto package. There should be no "path-tricks" needed
> for Vista.

von Jim K. (ancaritha)


Rate this post
useful
not useful
WinARM 20060606 is based on GCC 4.1.0 or 4.1.1 isn't it?

You need at least GCC 4.1.2 to work with Vista.  I don't remember if
thats the error message I got before upgrading to 4.1.2, but I do know
that you will have to do it at some point to get it to compile properly.

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Martin Thomas wrote:
>
> Is the package unpacked into C:\WinARM? (do not unpack into the
> %ProgramFiles%, AFAIK there is some "magic" in Vista to "vitualize" this
> directory)
>
> Check if the path to the build-tools is in the system-search path
> (C:\WinARM\utils\bin).
>
> Output of make --version and arm-elf-gcc --version ?
>

What is the answer of thoses question ?

That can help us to help you

Jonathan

von Nazandy P. (nperez)


Rate this post
useful
not useful
In C:\WinARM\utils\bin there are some applications files: make, mkdir,
cp, echo, rm, sh, sed_winARM and terminal.

I think the version of my gcc is 4.1.1. I don't know if I need at least
4.1.2...

Thank you very much

Jonathan Dumaresq wrote:
> Martin Thomas wrote:
>>
>> Is the package unpacked into C:\WinARM? (do not unpack into the
>> %ProgramFiles%, AFAIK there is some "magic" in Vista to "vitualize" this
>> directory)
>>
>> Check if the path to the build-tools is in the system-search path
>> (C:\WinARM\utils\bin).
>>
>> Output of make --version and arm-elf-gcc --version ?
>>
>
> What is the answer of thoses question ?
>
> That can help us to help you
>
> Jonathan

von Nazandy P. (nperez)


Rate this post
useful
not useful
I have installed a new version WinAVR-20080512, I think it is the last
avaible. The version of the gcc is 4.3.0. I have checked that in
C:\WinAVR-20080512\utils\bin there are a lot of applications files:
make, mkdir, date, etc.

And now when I try to compile the same project I find another error:

> "make.exe" all
makefile:227: *** missing separator.  Stop.

> Process Exit Code: 2
> Time Taken: 00:01

Theoretically this project was compiled and the makefile I supposed that
it is correct. The makefile is:



225   # Eye candy.
226   begin:
227     @echo
228  @echo $(MSG_BEGIN)
229
230   finished:
231  @echo $(MSG_ERRORS_NONE)
232
233   send:
234  @echo $(MSG_END)
235  @echo


Thank you!


Nazandy Perez wrote:
> In C:\WinARM\utils\bin there are some applications files: make, mkdir,
> cp, echo, rm, sh, sed_winARM and terminal.
>
> I think the version of my gcc is 4.1.1. I don't know if I need at least
> 4.1.2...
>
> Thank you very much
>
> Jonathan Dumaresq wrote:
>> Martin Thomas wrote:
>>>
>>> Is the package unpacked into C:\WinARM? (do not unpack into the
>>> %ProgramFiles%, AFAIK there is some "magic" in Vista to "vitualize" this
>>> directory)
>>>
>>> Check if the path to the build-tools is in the system-search path
>>> (C:\WinARM\utils\bin).
>>>
>>> Output of make --version and arm-elf-gcc --version ?
>>>
>>
>> What is the answer of thoses question ?
>>
>> That can help us to help you
>>
>> Jonathan

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Nazandy Perez wrote:
> I have installed a new version WinAVR-20080512, I think it is the last
> avaible. The version of the gcc is 4.3.0. I have checked that in
> C:\WinAVR-20080512\utils\bin there are a lot of applications files:
> make, mkdir, date, etc.

O.k. so you are using the tools from WinAVR with the GNU arm-toolchain
from a WinARM package. This should work.

>
> And now when I try to compile the same project I find another error:
>
>> "make.exe" all
> makefile:227: *** missing separator.  Stop.
>
>> Process Exit Code: 2
>> Time Taken: 00:01
>
> Theoretically this project was compiled and the makefile I supposed that
> it is correct. The makefile is:

IRC WinAVR includes another version of make than WinARM 20060606. Look
like a problem with the used shell. Maybe cmd.exe instead of the bash
included in WinAVR or the zsh-Win32 port included in most versions of
WinARM.

> 225   # Eye candy.
> 226   begin:
> 227     @echo
> 228  @echo $(MSG_BEGIN)

Check the formating it has to be:
begin:
(TAB)@echo
(TAB)@echo $(MSG_BEGIN)

where (TAB) is a "real tabulator" (ASCII-Code 9). For a test you may
just remove the @echo lines without output since this may cause probelms

If you still have problems create a package with a minimal example
(makefile, linker-script, startup-code, some C-Code) to reproduce the
issue and attach it to a message to this forum-thread.

von Nazandy P. (nperez)


Rate this post
useful
not useful
Martin Thomas wrote:
> Nazandy Perez wrote:
>> I have installed a new version WinAVR-20080512, I think it is the last
>> avaible. The version of the gcc is 4.3.0. I have checked that in
>> C:\WinAVR-20080512\utils\bin there are a lot of applications files:
>> make, mkdir, date, etc.
>
> O.k. so you are using the tools from WinAVR with the GNU arm-toolchain
> from a WinARM package. This should work.
>
>>
>> And now when I try to compile the same project I find another error:
>>
>>> "make.exe" all
>> makefile:227: *** missing separator.  Stop.
>>
>>> Process Exit Code: 2
>>> Time Taken: 00:01
>>
>> Theoretically this project was compiled and the makefile I supposed that
>> it is correct. The makefile is:
>
> IRC WinAVR includes another version of make than WinARM 20060606. Look
> like a problem with the used shell. Maybe cmd.exe instead of the bash
> included in WinAVR or the zsh-Win32 port included in most versions of
> WinARM.

I couldn't understand that...Could you explain with more detail please?

>> 225   # Eye candy.
>> 226   begin:
>> 227     @echo
>> 228  @echo $(MSG_BEGIN)
>
> Check the formating it has to be:
> begin:
> (TAB)@echo
> (TAB)@echo $(MSG_BEGIN)
>
> where (TAB) is a "real tabulator" (ASCII-Code 9). For a test you may
> just remove the @echo lines without output since this may cause probelms

I have already checked and it is a correct tabulator.

> If you still have problems create a package with a minimal example
> (makefile, linker-script, startup-code, some C-Code) to reproduce the
> issue and attach it to a message to this forum-thread.

In the project I have there istn't a startup-code and linker-script. are
they obligatory?

von Nazandy P. (nperez)


Rate this post
useful
not useful
I realised that the function make all doesn't work:

> "make.exe" all

-------- begin --------
process_begin: CreateProcess(NULL, arm-elf-gcc --version, ...) failed.
make (e=2): The system can't find the specific file.

make.exe: *** [gccversion] Error 2

> Process Exit Code: 2
> Time Taken: 00:00

But the function clean works correctly:

> "make" clean

-------- begin --------

Cleaning project:
rm -f main.hex
rm -f main.obj
rm -f main.elf
rm -f main.map
rm -f main.obj
rm -f main.a90
rm -f main.sym
rm -f main.lnk
rm -f main.lss
rm -f
rm -f
rm -f
rm -f main.o Serial.o VIClowlevel.o PLL.o LPC_CAN_SW.o
rm -f
rm -f crt0.o
rm -f  crt0.lst  main.lst Serial.lst VIClowlevel.lst PLL.lst
LPC_CAN_SW.lst
rm -f
rm -f
rm -f main.s Serial.s VIClowlevel.s PLL.s LPC_CAN_SW.s
rm -f main.d Serial.d VIClowlevel.d PLL.d LPC_CAN_SW.d
rm -f
rm -f
rm -f
rm -f
rm -f .dep/*
Errors: none
-------- end --------


> Process Exit Code: 0
> Time Taken: 00:01


The makefile is:


# MCU name and submodel
MCU = arm7tdmi-s
SUBMDL = LPC2129
#THUMB    = -mthumb
#THUMB_IW = -mthumb-interwork


## Create ROM-Image (final)
RUN_MODE=ROM_RUN
## Create RAM-Image (debugging)
#RUN_MODE=RAM_RUN


# Output format. (can be srec, ihex, binary)
FORMAT = ihex


# Target file name (without extension).
TARGET = main


# List C source files here. (C dependencies are automatically
generated.)
# use file-extension c for "c-only"-files
#SRC = $(TARGET).c
SRC =

# List C source files here which must be compiled in ARM-Mode.
# use file-extension c for "c-only"-files
SRCARM = main.c Serial.c VIClowlevel.c PLL.c LPC_CAN_SW.c

# List C++ source files here.
# use file-extension cpp for C++-files (use extension .cpp)
CPPSRC =

# List C++ source files here which must be compiled in ARM-Mode.
# use file-extension cpp for C++-files (use extension .cpp)
#CPPSRCARM = $(TARGET).cpp
CPPSRCARM =

# List Assembler source files here.
# Make them always end in a capital .S.  Files ending in a lowercase .s
# will not be considered source files but generated files (assembler
# output from the compiler), and will be deleted upon "make clean"!
# Even though the DOS/Win* filesystem matches both .s and .S the same,
# it will preserve the spelling of the filenames, and gcc itself does
# care about how the name is spelled on its command-line.
ASRC =

# List Assembler source files here which must be assembled in ARM-Mode..
ASRCARM = crt0.S

# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.
# (Note: 3 is not always the best optimization level. See avr-libc FAQ.)
OPT = s
#OPT = 0

# Debugging format.
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
# AVR (extended) COFF requires stabs, plus an avr-objcopy run.
#DEBUG = stabs
DEBUG = dwarf-2

# List any extra directories to look for include files here.
#     Each directory must be seperated by a space.
#EXTRAINCDIRS = ./include
EXTRAINCDIRS =

# Compiler flag to set the C Standard level.
# c89   - "ANSI" C
# gnu89 - c89 plus GCC extensions
# c99   - ISO C99 standard (not yet fully implemented)
# gnu99 - c99 plus GCC extensions
#CSTANDARD = -std=gnu99
CSTANDARD_C89 = c89
CSTANDARD_GNU89 = gnu89
CSTANDARD_C99 = c99
CSTANDARD_GNU99 = gnu99
CSTANDARD = -std=$(CSTANDARD_GNU99)

# Place -D or -U options for C here
CDEFS =  -D$(RUN_MODE)

# Place -I options here
CINCS =

# Place -D or -U options for ASM here
ADEFS =  -D$(RUN_MODE)


# Compiler flags.
#  -g*:          generate debugging information
#  -O*:          optimization level
#  -f...:        tuning, see GCC manual and avr-libc documentation
#  -Wall...:     warning level
#  -Wa,...:      tell GCC to pass this to the assembler.
#    -adhlns...: create assembler listing
#
# Flags for C and C++ (arm-elf-gcc/arm-elf-g++)
CFLAGS = -g$(DEBUG)
CFLAGS += $(CDEFS) $(CINCS)
CFLAGS += -O$(OPT)
CFLAGS += -Wall -Wcast-align -Wcast-qual -Wimplicit
CFLAGS += -Wpointer-arith -Wswitch
CFLAGS += -Wredundant-decls -Wreturn-type -Wshadow -Wunused
CFLAGS += -Wa,-adhlns=$(subst $(suffix $<),.lst,$<)
CFLAGS += $(patsubst %,-I%,$(EXTRAINCDIRS))

# flags only for C
CONLYFLAGS  = -Wstrict-prototypes -Wmissing-declarations
CONLYFLAGS += -Wmissing-prototypes -Wnested-externs
CONLYFLAGS += $(CSTANDARD)

# flags only for C++ (arm-elf-g++)
# CPPFLAGS = -fno-rtti -fno-exceptions
CPPFLAGS =

# Assembler flags.
#  -Wa,...:   tell GCC to pass this to the assembler.
#  -ahlms:    create listing
#  -gstabs:   have the assembler create line number information; note
that
#             for use in COFF files, additional information about
filenames
#             and function names needs to be present in the assembler
source
#             files -- see avr-libc docs [FIXME: not yet described
there]
##ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
ASFLAGS = $(ADEFS) -Wa,-adhlns=$(<:.S=.lst),-g$(DEBUG)

#Additional libraries.

#Support for newlibc-lpc (file: libnewlibc-lpc.a)
NEWLIBLPC = -lnewlib-lpc

MATH_LIB = -lm

CPLUSPLUS_LIB = -lstdc++

# Linker flags.
#  -Wl,...:     tell GCC to pass this to linker.
#    -Map:      create map file
#    --cref:    add cross reference to  map file
LDFLAGS = -nostartfiles -Wl,-Map=$(TARGET).map,--cref
LDFLAGS += -lc
LDFLAGS += $(NEWLIBLPC) $(MATH_LIB)
LDFLAGS += -lc -lgcc
LDFLAGS += $(CPLUSPLUS_LIB)

# Set Linker-Script Depending On Selected Memory
ifeq ($(RUN_MODE),RAM_RUN)
LDFLAGS +=-T$(SUBMDL)-RAM.ld
else
LDFLAGS +=-T$(SUBMDL)-ROM.ld
endif



#
------------------------------------------------------------------------ 
---
# Flash-Programming support using lpc21isp by Martin Maurer

# Settings and variables:
#LPC21ISP = lpc21isp
LPC21ISP = lpc21isp_beta
LPC21ISP_PORT = com1
LPC21ISP_BAUD = 115200
LPC21ISP_XTAL = 14746
LPC21ISP_FLASHFILE = $(TARGET).hex
# verbose output:
## LPC21ISP_DEBUG = -debug
# enter bootloader via RS232 DTR/RTS (only if hardware supports this
# feature - see Philips AppNote):
LPC21ISP_CONTROL = -control


#
------------------------------------------------------------------------ 
---

# Define directories, if needed.
## DIRARM = c:/WinARM/
## DIRARMBIN = $(DIRAVR)/bin/
## DIRAVRUTILS = $(DIRAVR)/utils/bin/

# Define programs and commands.
SHELL = sh
CC = arm-elf-gcc
CPP = arm-elf-g++
OBJCOPY = arm-elf-objcopy
OBJDUMP = arm-elf-objdump
SIZE = arm-elf-size
NM = arm-elf-nm
REMOVE = rm -f
COPY = cp


# Define Messages
# English
MSG_ERRORS_NONE = Errors: none
MSG_BEGIN = -------- begin --------
MSG_END = --------  end  --------
MSG_SIZE_BEFORE = Size before:
MSG_SIZE_AFTER = Size after:
MSG_FLASH = Creating load file for Flash:
MSG_EXTENDED_LISTING = Creating Extended Listing:
MSG_SYMBOL_TABLE = Creating Symbol Table:
MSG_LINKING = Linking:
MSG_COMPILING = Compiling C:
MSG_COMPILING_ARM = "Compiling C (ARM-only):"
MSG_COMPILINGCPP = Compiling C++:
MSG_COMPILINGCPP_ARM = "Compiling C++ (ARM-only):"
MSG_ASSEMBLING = Assembling:
MSG_ASSEMBLING_ARM = "Assembling (ARM-only):"
MSG_CLEANING = Cleaning project:
MSG_LPC21_RESETREMINDER = You may have to bring the target in
bootloader-mode now.


# Define all object files.
COBJ      = $(SRC:.c=.o)
AOBJ      = $(ASRC:.S=.o)
COBJARM   = $(SRCARM:.c=.o)
AOBJARM   = $(ASRCARM:.S=.o)
CPPOBJ    = $(CPPSRC:.cpp=.o)
CPPOBJARM = $(CPPSRCARM:.cpp=.o)

# Define all listing files.
LST = $(ASRC:.S=.lst) $(ASRCARM:.S=.lst) $(SRC:.c=.lst)
$(SRCARM:.c=.lst)
LST += $(CPPSRC:.cpp=.lst) $(CPPSRCARM:.cpp=.lst)

# Compiler flags to generate dependency files.
### GENDEPFLAGS = -Wp,-M,-MP,-MT,$(*F).o,-MF,.dep/$(@F).d
GENDEPFLAGS = -MD -MP -MF .dep/$(@F).d

# Combine all necessary flags and optional flags.
# Add target processor to flags.
ALL_CFLAGS = -mcpu=$(MCU) $(THUMB_IW) -I. $(CFLAGS) $(GENDEPFLAGS)
ALL_ASFLAGS = -mcpu=$(MCU) $(THUMB_IW) -I. -x assembler-with-cpp
$(ASFLAGS)


# Default target.
all: begin gccversion sizebefore build sizeafter finished end

build: elf hex lss sym

elf: $(TARGET).elf
hex: $(TARGET).hex
lss: $(TARGET).lss
sym: $(TARGET).sym

# Eye candy.
begin:
  @echo
  @echo $(MSG_BEGIN)

finished:
  @echo $(MSG_ERRORS_NONE)

end:
  @echo $(MSG_END)
  @echo


# Display size of file.
HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex
ELFSIZE = $(SIZE) -A $(TARGET).elf
sizebefore:
  @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_BEFORE);
$(ELFSIZE); echo; fi

sizeafter:
  @if [ -f $(TARGET).elf ]; then echo; echo $(MSG_SIZE_AFTER);
$(ELFSIZE); echo; fi


# Display compiler version information.
gccversion :
  @$(CC) --version


# Program the device.
program: $(TARGET).hex
  @echo
  @echo $(MSG_LPC21_RESETREMINDER)
  $(LPC21ISP) $(LPC21ISP_CONTROL) $(LPC21ISP_DEBUG)
$(LPC21ISP_FLASHFILE) $(LPC21ISP_PORT) $(LPC21ISP_BAUD) $(LPC21ISP_XTAL)


# Create final output files (.hex, .eep) from ELF output file.
# TODO: handling the .eeprom-section should be redundant
%.hex: %.elf
  @echo
  @echo $(MSG_FLASH) $@
  $(OBJCOPY) -O $(FORMAT) $< $@


# Create extended listing file from ELF output file.
# testing: option -C
%.lss: %.elf
  @echo
  @echo $(MSG_EXTENDED_LISTING) $@
  $(OBJDUMP) -h -S -C $< > $@


# Create a symbol table from ELF output file.
%.sym: %.elf
  @echo
  @echo $(MSG_SYMBOL_TABLE) $@
  $(NM) -n $< > $@


# Link: create ELF output file from object files.
.SECONDARY : $(TARGET).elf
.PRECIOUS : $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM)
%.elf:  $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM)
  @echo
  @echo $(MSG_LINKING) $@
  $(CC) $(THUMB) $(ALL_CFLAGS) $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ)
$(CPPOBJ) $(CPPOBJARM) --output $@ $(LDFLAGS)
#  $(CPP) $(THUMB) $(ALL_CFLAGS) $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ)
$(CPPOBJ) $(CPPOBJARM) --output $@ $(LDFLAGS)

# Compile: create object files from C source files. ARM/Thumb
$(COBJ) : %.o : %.c
  @echo
  @echo $(MSG_COMPILING) $<
  $(CC) -c $(THUMB) $(ALL_CFLAGS) $(CONLYFLAGS) $< -o $@

# Compile: create object files from C source files. ARM-only
$(COBJARM) : %.o : %.c
  @echo
  @echo $(MSG_COMPILING_ARM) $<
  $(CC) -c $(ALL_CFLAGS) $(CONLYFLAGS) $< -o $@

# Compile: create object files from C++ source files. ARM/Thumb
$(CPPOBJ) : %.o : %.cpp
  @echo
  @echo $(MSG_COMPILINGCPP) $<
  $(CPP) -c $(THUMB) $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@

# Compile: create object files from C++ source files. ARM-only
$(CPPOBJARM) : %.o : %.cpp
  @echo
  @echo $(MSG_COMPILINGCPP_ARM) $<
  $(CPP) -c $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@


# Compile: create assembler files from C source files. ARM/Thumb
## does not work - TODO - hints welcome
##$(COBJ) : %.s : %.c
##  $(CC) $(THUMB) -S $(ALL_CFLAGS) $< -o $@


# Assemble: create object files from assembler source files. ARM/Thumb
$(AOBJ) : %.o : %.S
  @echo
  @echo $(MSG_ASSEMBLING) $<
  $(CC) -c $(THUMB) $(ALL_ASFLAGS) $< -o $@


# Assemble: create object files from assembler source files. ARM-only
$(AOBJARM) : %.o : %.S
  @echo
  @echo $(MSG_ASSEMBLING_ARM) $<
  $(CC) -c $(ALL_ASFLAGS) $< -o $@


# Target: clean project.
clean: begin clean_list finished end


clean_list :
  @echo
  @echo $(MSG_CLEANING)
  $(REMOVE) $(TARGET).hex
  $(REMOVE) $(TARGET).obj
  $(REMOVE) $(TARGET).elf
  $(REMOVE) $(TARGET).map
  $(REMOVE) $(TARGET).obj
  $(REMOVE) $(TARGET).a90
  $(REMOVE) $(TARGET).sym
  $(REMOVE) $(TARGET).lnk
  $(REMOVE) $(TARGET).lss
  $(REMOVE) $(COBJ)
  $(REMOVE) $(CPPOBJ)
  $(REMOVE) $(AOBJ)
  $(REMOVE) $(COBJARM)
  $(REMOVE) $(CPPOBJARM)
  $(REMOVE) $(AOBJARM)
  $(REMOVE) $(LST)
  $(REMOVE) $(SRC:.c=.s)
  $(REMOVE) $(SRC:.c=.d)
  $(REMOVE) $(SRCARM:.c=.s)
  $(REMOVE) $(SRCARM:.c=.d)
  $(REMOVE) $(CPPSRC:.cpp=.s)
  $(REMOVE) $(CPPSRC:.cpp=.d)
  $(REMOVE) $(CPPSRCARM:.cpp=.s)
  $(REMOVE) $(CPPSRCARM:.cpp=.d)
  $(REMOVE) .dep/*


# Include the dependency files.
-include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*)


# Listing of phony targets.
.PHONY : all begin finish end sizebefore sizeafter gccversion \
build elf hex lss sym clean clean_list program

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Nazandy Perez wrote:
> I realised that the function make all doesn't work:
>
>> "make.exe" all
>
> -------- begin --------
> process_begin: CreateProcess(NULL, arm-elf-gcc --version, ...) failed.
> make (e=2): The system can't find the specific file.

(1) Check if the path to the compiler-frontend (arm*-gcc.exe) is in the
system search-path.

(2) If you are using a GNU toolchain with another prefix than arm-elf
replace arm-elf in the makefile with the prefix of the used toolchain
(i.e. s/arm-elf/arm-eabi/g for DevkitARM R23, WinARM-testing 3/08 or
s/arm-elf/arm-none-eabi/g for Codesourcery G++).

If the code does not depend on the WinARM newlib-configuration just wipe
WinARM and install Yagarto, newer versions of Yagarto should be
Vista-compatible out of the box, the prefix is arm-elf so no changes
needed and the Yagarto setup-software extends the PATH variable AFAIK.

von Nazandy P. (nperez)


Rate this post
useful
not useful
Martin Thomas wrote:
> Nazandy Perez wrote:
>> I realised that the function make all doesn't work:
>>
>>> "make.exe" all
>>
>> -------- begin --------
>> process_begin: CreateProcess(NULL, arm-elf-gcc --version, ...) failed.
>> make (e=2): The system can't find the specific file.
>
> (1) Check if the path to the compiler-frontend (arm*-gcc.exe) is in the
> system search-path.

I have looked for this file and I have three files:
- avr-gcc.exe in C:\WinAVR-20080512
- avr-gcc.4.3.0.exe in C:\WinAVR-20080512
- gcc.exe in C:\WinAVR-20080512\avr

> (2) If you are using a GNU toolchain with another prefix than arm-elf
> replace arm-elf in the makefile with the prefix of the used toolchain
> (i.e. s/arm-elf/arm-eabi/g for DevkitARM R23, WinARM-testing 3/08 or
> s/arm-elf/arm-none-eabi/g for Codesourcery G++).

How can I see exactly the name of the GNU tollchain?

> If the code does not depend on the WinARM newlib-configuration just wipe
> WinARM and install Yagarto, newer versions of Yagarto should be
> Vista-compatible out of the box, the prefix is arm-elf so no changes
> needed and the Yagarto setup-software extends the PATH variable AFAIK.

Thank you in advance!

von Simon E. (fordp)


Rate this post
useful
not useful
You cannot use an AVR compiler to make code for an ARM. They are too
totally separate types of chip.

As martin said before things like make.exe and other build tools are the
same for ARM, AVR or x86 for that matter, but you need a specific cross
compiler for your chip series.

I would recommend removing all you have done so far and starting again.

Have you seen the Jim (James) Lynch tutorial guides ????

If you have not then get one and follow it closely.

I do not have Vista and I hope I never have to use it ;)

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.