Spark Logic

Need some guide for learning STM32s

Unturned Sat Oct 01, 2016 10:56 am

Hi guys,
I’ve been banging my head against the keyboard for a few days because I am literally STUCK and can’t find a good way to get started on STM32s. I am a complete noob in the world of STM32s but I’ve done a lot of C/C++ and Arduino programming before. Do anyone have any suggestions about which development board to start with, how to program an STM32, or where to find a good tutorial?
ANY help would be greatly appreciated! :)
Richard

Replies

Slammer Tue Oct 11, 2016 3:52 pm

Unturned wrote:Although that their pins can be plugged onto a breadboard, but it’s actually quite hard to plug it in/
pull it. The more pins the dev board have, the harder this is.

ahull Wed Oct 12, 2016 1:00 am

Slammer wrote:Unturned wrote:Although that their pins can be plugged onto a breadboard, but it’s actually quite hard to plug it in/
pull it. The more pins the dev board have, the harder this is.

Unturned Wed Oct 12, 2016 10:56 am

.. and why would you not have several breadboard, since they are so cheap these days.

Your right, it’s time for me to get some more breadboards :D

evildave_666 Wed Oct 12, 2016 12:08 pm

No matter how many you have, its never enough. More breadboards just means old projects hang around longer before being dismantled.

ag123 Thu Oct 13, 2016 9:22 pm

i actually started with a ‘maple clone’ board:
Olimexino-STM32
viewtopic.php?f=38&t=1138
https://www.olimex.com/Products/Duino/S … e-hardware
Image

and actually started with the original maple IDE as i found the documentations from leaflabs pretty well written and relatively simple to get started
http://docs.leaflabs.com/docs.leaflabs.com/index.html
i’m working on a linux platform (opensuse). Accordingly with windows (e.g. 7, 8, 10) there may be various challenges getting the driver to work.
however as pointed out by many here, it’s probably better to use the Arduino IDE which now support ‘maple’ boards in addition to Arduino boards which are more updated and has more (perhaps better) features

the Olimexino-STM32 i received comes with the *boot loader* pre-installed as firmware in its flash
the good thing about that would be that the ‘maple’ board can be programmed simply through a normal USB cable (mini usb connector) with the IDE.
‘internally’ the programming is done via DFU (device firmware update) which is actually handled by the boot loader itself
(and this is some of my initial struggles getting started programming the board via dfu using a USB cable: https://www.olimex.com/forum/index.php?topic=5416.0)

the usual ‘hello world’ tutorial would be to try to blink leds on the board itself

however, should you be starting with a board that do not have the *boot loader* it would likely be necessary to program the board through a JTAG / SWD programmer such as https://www.olimex.com/Products/ARM/JTA … SB-TINY-H/ (accordingly this is not the only way)

i’m personally not familiar with this aspects (i.e. installing/programming the bootloader via JTAG/SWD programmer) but roger et.al has written up quite a lot about Arduino_STM32, the boot loader etc
https://github.com/rogerclarkmelbourne/ … STM32/wiki

I’d guess the initial stumbling blocks is partly due to ‘information overload’ and that there are a large amount / pieces of information scattered in various places. some of the starting points which i found useful when i got started happens to be
the leaflabs maple web site iteslf
http://docs.leaflabs.com/docs.leaflabs.com/index.html
the wiki by roger et.al.
https://github.com/rogerclarkmelbourne/ … STM32/wiki
http://wiki.stm32duino.com/index.php?ti … 103_boards
documents from STM website itself
http://www.st.com/en/microcontrollers/s … tId=LN1565
as well as even olimex the manufacturer from which i bought the board
https://www.olimex.com/Products/Duino/S … e-hardware
https://www.olimex.com/Products/Duino/S … -STM32.pdf
(^^i’d think olimex did pretty decent documentation if u review their manual above )

ag123 Thu Oct 13, 2016 10:14 pm

after succeeding with the ‘maple IDE’ from leaflabs, i’ve actually gone on to try GNU ARM Eclipse http://gnuarmeclipse.github.io/
this would take 1 off the ‘arduino’ track towards the more ‘hard core’ STM32-Library track

http://www.emcu.it/STM32/STM32VLDiscove … brary.html

dfu still works and i could simply ‘upload’ the compiled program from gnu arm eclipse into the board using dfu-util -d 1eaf:0003 -D file
and the same simple usb cable
http://dfu-util.sourceforge.net/

Sign in to reply