Go Down

Topic: Anyone tried ST Nucleo boards? (Read 14084 times) previous topic - next topic

nicoverduin

#30
Nov 18, 2014, 01:58 pm Last Edit: Nov 18, 2014, 01:59 pm by nicoverduin
Nou doubt I am doing something wrong. I followed all the above instructions but when I upload, no blinking led. This is my build.bat output:
Code: [Select]

D:\workspace\blinkyARM>build.bat

D:\workspace\blinkyARM>arm-none-eabi-gcc -Wall -mcpu=cortex-m4 -mlittle-endian -
mthumb -mthumb-interwork -I/STM32CubeF4Root/Drivers/CMSIS/Device/ST/STM32F4xx/In
clude -I/STM32CubeF4Root/Drivers/CMSIS/Include -DSTM32F401xE -Os -c system.c -o
system.o

D:\workspace\blinkyARM>arm-none-eabi-gcc -Wall -mcpu=cortex-m4 -mlittle-endian -
mthumb -mthumb-interwork -I/STM32CubeF4Root/Drivers/CMSIS/Device/ST/STM32F4xx/In
clude -I/STM32CubeF4Root/Drivers/CMSIS/Include -DSTM32F401xE -Os -c main.c -o ma
in.o

D:\workspace\blinkyARM>arm-none-eabi-gcc -Wall -mcpu=cortex-m4 -mlittle-endian -
mthumb -mthumb-interwork -I/STM32CubeF4Root/Drivers/CMSIS/Device/ST/STM32F4xx/In
clude -I/STM32CubeF4Root/Drivers/CMSIS/Include -DSTM32F401xE -Os -c startup_stm3
2f401xe.s -o startup_stm32f401xe.o

D:\workspace\blinkyARM>arm-none-eabi-gcc -mcpu=cortex-m4 -mlittle-endian -mthumb
 -mthumb-interwork -DSTM32F401xE -T/stm32cubef4Root\Projects\STM32F401RE-Nucleo\
Templates\TrueSTUDIO\STM32F4xx-Nucleo\STM32F401CE_FLASH.ld -Wl,--gc-sections sys
tem.o main.o startup_stm32f401xe.o -o main.elf

D:\workspace\blinkyARM>arm-none-eabi-objcopy -Oihex main.elf main.hex

D:\workspace\blinkyARM>pause
Druk op een toets om door te gaan. . .

D:\workspace\blinkyARM>dir *.hex
 De volumenaam van station D is Data
 Het volumenummer is F647-F270

 Map van D:\workspace\blinkyARM

18-11-2014  13:53             6,517 main.hex
               1 bestand(en)            6,517 bytes
               0 map(pen)  498,077,302,784 bytes beschikbaar


Can anyone help me?
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl

rogerClark

I've just noticed this thread.

There is a similar thread on the micro controllers forum.

There is now a partially working Arduino port for STM32F103, initially created by bobc from files written by Leaflabs.

I've taken bobs files and have added spi and i2c Arduino API compatibility and also partially brought the files up to date with the Arduino 1.0.x

It's still a work in progress but a lot of the API mostly works.

See this thread

http://forum.arduino.cc/index.php?topic=265904.new#new

See also my blog www.rogerclark.net

I have an F4 based Discovery board on order, I can't remember the variant, but its the 168mhz one.

When it arrives I will see what is required to add the F4 chipset to the F1 files.

I think there is a STM doc on migrating from F2 to F4, and from what I understand the F1 and F2 are quite similar, so perhaps that doc will give a clear picture of the differences required to access the hardware.

Go Up