Go Down

Topic: Anyone tried ST Nucleo boards? (Read 26078 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
Do not PM me for personal consultancy unless you are willing to pay for it.

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.
Freelance developer and IT consultant
www.rogerclark.net

sheepdoll

I am looking for an OS X solution to use the myrad of STM (and) NXP boards I have acquired over the last few years at trade shows.   Most of the demo tools are cripple/paid and require windows.  My XP machines are long in the tooth and the newer win 7 and win 8 are worthless for developing embedded code on a machine that is off line from the net/cloud.
Can this code be run under OSX when I think Arduino Ide I think Mac OS X.  The windows references are confusing.

rogerClark

@sheepdoll

We've now setup a separate forum website for STM32 on Arduino

See  http://stm32duino.com

OSX is generally working. i.e the IDE is working OK.

The only issues I'm aware of is on Maple mini boards (well any board that uses the Maple bootloader), is that the board needs to be manually reset before uploading.


We also have upload via USB to Serial as well as STLink

Re:NXP

Sorry. I cant help on that one, we only have core files for STM32 (and support is mainly on F103, though there is support for F3 and F4 however F3 and F4 don't have all the Arduino 1.0 API functions like Serial.peek or the Stream class)
Freelance developer and IT consultant
www.rogerclark.net

Isaac96

I've been looking at the ST Nucleo STM32F103RB, but I certainly can't use all its power. So why buy it?
Do not PM me for help.Only links to topics.
CONNECT THE GROUNDS!

After Tuesday, even the calendar goes W T F

nicoverduin

The cheapest Nucleo's are about the same price as an UNO but with a lot more power and memory. The latter could be of more importance. And even now more an more 32bit boards are supported with the Arduino IDE making it interesting for those whoe are used to only Arduino type boards to expand a relative low cost.
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl
Do not PM me for personal consultancy unless you are willing to pay for it.

Isaac96

Do the GPIO pins support enough current? I think they aren't 5V tolerant :smiley-confuse:
Do not PM me for help.Only links to topics.
CONNECT THE GROUNDS!

After Tuesday, even the calendar goes W T F

nicoverduin

Some say yes, some say no.... But seeing the change in new technologies.... It might be time to start switching to the lower 3.3V as that will even change to lower voltages in future.... I think the TTL levels have had their longest time after about 40 years :)
Met vriendelijke groet / kindest regards
Nico Verduin
www.verelec.nl
Do not PM me for personal consultancy unless you are willing to pay for it.

Isaac96

Yeah, 3.3 volts is taking over as well as low output current. Luckily, some 3.3v devices are 5V tolerant.
Do not PM me for help.Only links to topics.
CONNECT THE GROUNDS!

After Tuesday, even the calendar goes W T F

68tjs

#39
May 27, 2015, 12:26 pm Last Edit: May 27, 2015, 12:32 pm by 68tjs
Do the GPIO pins support enough current? I think they aren't 5V tolerant :smiley-confuse:
You are wrong !

90% of input from ARM32 ST and NXP  are 5V tolerant :smiley-mr-green:
0% of input ATmel ARM32 are 5 V tolerant :smiley-twist: .

Max current :
For some I/O DUE less than 3mA :smiley-twist:
STM32 : for all input 20 mA :smiley-mr-green:

For those points Atmel is the worst manufacturer.
Unfortunately for us Arduino has not made the right choice.



rogerClark

@68tjs

fortunately we now have Arduino on STM32F103 (and partial support for STM32F3 and STM32F)

see www.stm32duino.com

Freelance developer and IT consultant
www.rogerclark.net

68tjs

Hi Roger
I am very interested in your work, I follow you  including on the new site. (http://stm32duino.com).
I think STM32 is a very good micro, I test Mbed and nucleo board but I am interesting by Nano like form factor.

 Unfortunately I am a retiree of analog electronics (40 years of R & D) and if I can very easily explain how to get good measurements with LM35 after 50 m cable I have difficulties to implement your work .

 So if you could explain how to program a STM32 starting from zero with pictures and text it would be great.
 Because it is often the basic operations that seems obvious to the specialist who cause the greatest difficulties to  beginners.
Generally, once we were able to achieve a little something, all unlock.

Thanks

rogerClark

@68tjs I have some youtube videos on how to install the files into the IDE and I also made a video on how to upload using USB to Serial.

But I need to make some more videos, and probably do some more blog posts.

I'm actually thinking of having stm32duino as a normal website / blog and move the forum to www.stm32duino.com/forum

But not for a while as I'm sooooooo busy with this.


There is masses of interest.

I don't see being old as a barrier. I'm not that young myself ;-) (but not retired etc)


Some other people have done some postings, I think www.sunspot.co.uk did a posting on how to do some basic things.

Anyway, its probably best if this discussion is on the stm32duino forum as more people can reply ;-)
Freelance developer and IT consultant
www.rogerclark.net

Isaac96

So buy Nucleo instead of DUE or ZERO?
Do not PM me for help.Only links to topics.
CONNECT THE GROUNDS!

After Tuesday, even the calendar goes W T F

Go Up