cancel
Showing results for 
Search instead for 
Did you mean: 

New to STM32 microcontrollers, need some guidance & tutorial

hu
Associate II
Posted on October 04, 2016 at 03:55

Hello,

I am quite familiar with the AVR microcontrollers and the Arduino framework but a complete noob in STM32s. I've already asked a few questions about STM32s on another forum, but I think it's not really enough. 

Here's a few questions that I want to ask first:

1. How am I supposed to program an STM32? I am interested in the ''native'' way of programming an STM32 (not with Arduino)

2. Which development board should I use? By far I only know that the Maple board from Leaflabs is STM32 centered and Arduino framework compatible. Are Nucleo boards good? 

3. What software/IDE/hardware should I have in order to use an STM32? 

any help would be appreciated,

thank you 🙂

2 REPLIES 2
Nesrine M_O
Lead II
Posted on October 04, 2016 at 10:20

Hi hu.richard,

 Welcome to STM32 community.

1.How am I supposed to program an STM32? I am interested in the ''native'' way of programming an STM32 (not with Arduino)

I recommend you to download the

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html

which is a graphical software configuration tool that allows generating C initialization code using graphical wizards

2.Which development board should I use? By far I only know that the Maple board from Leaflabs is STM32 centered and Arduino framework compatible. Are Nucleo boards good? 

As novice user, I recommend you to use STM32 Nucelo board is a low-cost and easy-to-use development platform used to quickly evaluate and start a development with an STM32

I'd highly recommend you also to have a look to these two documents, they provide guidelines on how to build and run a sample application around the STM32 Nucleo board.

•

http://www.st.com/content/ccc/resource/technical/document/user_manual/1b/03/1b/b4/88/20/4e/cd/DM00105928.pdf/files/DM00105928.pdf/jcr:content/translations/en.DM00105928.pdf

•

http://www.st.com/content/ccc/resource/technical/document/user_manual/98/2e/fa/4b/e0/82/43/b7/DM00105823.pdf/files/DM00105823.pdf/jcr:content/translations/en.DM00105823.pdf

3.What software/IDE/hardware should I have in order to use an STM32? 

STMicroelectronics STM32 families of 32-bit ARM® Cortex® -M core-based microcontrollers are supported by a complete range of software tools:

•EWARM toolchain

•Keil MDK-ARM toolchain

•The System Workbench toolchain, called

http://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-ides/sw4stm32.html

, is a free multi-OS software development environment based on Eclipse, which supports the full range of STM32 microcontrollers and associated boards.

-Syrine-

hu
Associate II
Posted on October 09, 2016 at 03:47

Hi Syrine,

   Thank you for the reply!

I have a problem with running STM32cubemx on Mac OS X. It says that I need to install java runtime environment 1.7 or newer. But I already installed Java 1.8 and re-installed but it still doesn't work. Any ideas how to fix it?

What is the difference between all the toolchain software that you listed and stm32cubemx?

What kind of programming would I be doing in these IDE? Does they include a high-level programming framework/library by default or they need you to include them your selves? 

(I would like to know about this because I don't really want to do low-level programming with this kind of unfamiliar & complex microcontrollers : )