First try STM32F4-Discovery

OP #3399654
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
OP
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>

Reply

A question of your own? This thread is over 12 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.