EmbDev.net

Forum: ARM programming with GCC/GNU tools First try STM32F4-Discovery


von Kevin G. (kg1)


Rate this post
useful
not useful
PATH C:\yagarto-tools-20121018; C:\yagarto-20121222\bin; 
C:\yagarto-workspace; C:\yagarto-workspace\STM32F4-Discovery;

ERROR:
C:\yagarto-workspace\STM32F4-Discovery>make all
arm-none-eabi-gcc -x assembler-with-cpp -c -mthumb -mcpu=cortex-m4 
-mfloat-abi=h
ard -mfpu=fpv4-sp-d16 -D__FPU_USED=1 -O0  -g -gdwarf-2 
-Wa,-amhls=cmsis/device/s
tartup_stm32f4xx.lst   -D__HEAP_SIZE=8192 -D__STACK_SIZE=2048 
cmsis/device/start
up_stm32f4xx.s -o cmsis/device/startup_stm32f4xx.o
process_begin: CreateProcess(NULL, arm-none-eabi-gcc -x 
assembler-with-cpp -c -m
thumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -D__FPU_USED=1 
-O0 -g -
gdwarf-2 -Wa,-amhls=cmsis/device/startup_stm32f4xx.lst 
-D__HEAP_SIZE=8192 -D__ST
ACK_SIZE=2048 cmsis/device/startup_stm32f4xx.s -o 
cmsis/device/startup_stm32f4xx
.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [cmsis/device/startup_stm32f4xx.o] Error 2

Please advise.
Regards,
Kevin

von Kevin G. (kg1)


Rate this post
useful
not useful
I have resolved my problem:

C:\yagarto-workspace\STM32F4-Discovery>make clean
rm -f ./cmsis/device/startup_stm32f4xx.o 
./cmsis/device/system_stm32f4xx.o ./src
/syscalls.o ./src/main.o
rm -f test_ram.elf
rm -f test_ram.map
rm -f test_ram.hex
rm -f ./cmsis/device/system_stm32f4xx.c.bak ./src/syscalls.c.bak 
./src/main.c.ba
k
rm -f ./cmsis/device/system_stm32f4xx.lst ./src/syscalls.lst 
./src/main.lst
rm -f ./cmsis/device/startup_stm32f4xx.s.bak
rm -f ./cmsis/device/startup_stm32f4xx.lst
rm -fR .dep

C:\yagarto-workspace\STM32F4-Discovery>make all
arm-none-eabi-gcc -x assembler-with-cpp -c -mthumb -mcpu=cortex-m4 
-mfloat-abi=h
ard -mfpu=fpv4-sp-d16 -D__FPU_USED=1 -O0  -g -gdwarf-2 
-Wa,-amhls=cmsis/device/s
tartup_stm32f4xx.lst   -D__HEAP_SIZE=8192 -D__STACK_SIZE=2048 
cmsis/device/start
up_stm32f4xx.s -o cmsis/device/startup_stm32f4xx.o
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mfloat-abi=hard 
-mfpu=fpv4-sp-d16
-D__FPU_USED=1 -O0  -gdwarf-2 -Wall -Wstrict-prototypes -fverbose-asm 
-ffunctio
n-sections -fdata-sections -Wa,-ahlms=cmsis/device/system_stm32f4xx.lst 
-DRUN_
FROM_FLASH=0 -DVECT_TAB_SRAM -MD -MP -MF .dep/system_stm32f4xx.o.d -I . 
-I./inc
-I./cmsis/core -I./cmsis/device cmsis/device/system_stm32f4xx.c -o 
cmsis/device/
system_stm32f4xx.o
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mfloat-abi=hard 
-mfpu=fpv4-sp-d16
-D__FPU_USED=1 -O0  -gdwarf-2 -Wall -Wstrict-prototypes -fverbose-asm 
-ffunctio
n-sections -fdata-sections -Wa,-ahlms=src/syscalls.lst 
-DRUN_FROM_FLASH=0 -DVE
CT_TAB_SRAM -MD -MP -MF .dep/syscalls.o.d -I . -I./inc -I./cmsis/core 
-I./cmsis/
device src/syscalls.c -o src/syscalls.o
arm-none-eabi-gcc -c -mthumb -mcpu=cortex-m4 -mfloat-abi=hard 
-mfpu=fpv4-sp-d16
-D__FPU_USED=1 -O0  -gdwarf-2 -Wall -Wstrict-prototypes -fverbose-asm 
-ffunctio
n-sections -fdata-sections -Wa,-ahlms=src/main.lst   -DRUN_FROM_FLASH=0 
-DVECT_T
AB_SRAM -MD -MP -MF .dep/main.o.d -I . -I./inc -I./cmsis/core 
-I./cmsis/device s
rc/main.c -o src/main.o
arm-none-eabi-gcc ./cmsis/device/startup_stm32f4xx.o 
./cmsis/device/system_stm32
f4xx.o ./src/syscalls.o ./src/main.o -mthumb -mcpu=cortex-m4 
-mfloat-abi=hard -m
fpu=fpv4-sp-d16 -D__FPU_USED=1 -nostartfiles -T./prj/stm32f4xx_ram.ld 
-Wl,-Map=t
est_ram.map,--cref,--gc-sections,--no-warn-mismatch    -o test_ram.elf
arm-none-eabi-objcopy -O ihex  test_ram.elf test_ram.hex

C:\yagarto-workspace\STM32F4-Discovery>

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.