cancel
Showing results for 
Search instead for 
Did you mean: 

Starting with STM32

dimax
Senior
Posted on September 24, 2012 at 15:46

Hi,

I'm migrating from 8-bit AVR to STM32. I have purchased already a STM3220G-EVAL board with STM32F207 CPU. The first task I want to accomplish is to get a ''Hello World'' application running on this board via RS232 port.

I plan to use

YAGARTO GCC Toolchain on Windows PC.

To progrma the board I want to use DFU Util.

Now I'm looking for really simple sample for Yagarto which will include all required files like C source, Makefile and if required others.

I worked a lot with GSS and familiar with make.

Can you please help me to find something simple?

Thanks.

14 REPLIES 14
Posted on September 24, 2012 at 22:06

The packages I attached earlier are GNU/GCC Yagarto based, so yes the STM32F2 firmware library works just fine. You could build the library portion independently of the application. The CMSIS based firmwares seem to mash everything together, the older 2.x version for the F1 basically pulled in a .a/.lib file.

I've built F2 projects under Eclipse using the Code Sourcery chain, and when it starting squawking about licencing, I just pointed it at the Yagarto chain, which I've used for some time, along with WinARM, to build GNU/GCC related code trees.

My FreeRTOS projects are under Keil, but having them run with Yagarto or GNU/GCC is a simple port.

Here's the Keil one I did for the STM32F4-Discovery

https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Discovery/FreeRTOS to STM32F4DISCOVERY - Crossstudio&FolderCTID=0x01200200770978C69A1141439FE559EB459D75800084C20D8867EAD444A5987D47BE638E0F&currentviews=134

IAR is quite similar to Keil, has a couple of nuances that annoy me, I'd work/port things to it if someone bought me a licence.

Debugging is a challenge with Open Source tool solutions, worked on by a lot of well meaning folk, but ultimately driven by their preferences/commitment. I honestly don't use debuggers much, if I have to single step my code to understand code flow I've already failed. Much prefer to stream telemetry via the serial port to understand real-time dynamics, not freeze the machine in a non-functional state. So classically when I need a debugger it's AXD/RealView/Keil. I'd imagine GDB would be similar, just not sufficiently familiar with it for it to be immediately usable for me.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jbl_raw
Associate II
Posted on September 24, 2012 at 23:13

thank you clive1 . you are only

answer  to all question

in this forum you are good man. who are you

dimax
Senior
Posted on September 28, 2012 at 13:29

dimax
Senior
Posted on September 28, 2012 at 14:08

I mean to ask following:

I'm going to buy J-Link EDU. Do you think this is a good option to start?

Posted on September 28, 2012 at 16:15

I'm going to buy J-Link EDU. Do you think this is a good option to start?

If you are eligible, this price does look good, and they are the most versatile pods.

Used, and clone/bootleg, pods are also available via places like eBay.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..