Skip to main content
CPans.2
Associate
February 12, 2022
Question

Hii, I am new to stm32 and I am learning to program MCU using Registers. which STM32 should I go for for learning the basics like GPIOs, ADC, UART etc. Thanks in advance for help.

  • February 12, 2022
  • 8 replies
  • 1831 views

..

This topic has been closed for replies.

8 replies

Tesla DeLorean
Guru
February 12, 2022

What experience do you have with other MCUs?

The reference manuals cover the​ peripheral registers, the programming manual those of the MCU itself.

Find a NUCLEO or DISCO board with functionalities that interest you, they have a on board debugger fitted allow for ease of programming, debugging and single-stepping, etc.

Availability might be a strong driver currently.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
CPans.2
CPans.2Author
Associate
February 12, 2022

I have only started working with STM32 as the first MCU, I have been doing projects on Arduino and now I have a requirement of developing an Automotive Grade MCU so I started with ST. But I have to Understand MCU from Registers.

Tesla DeLorean
Guru
February 12, 2022

Suggest you start with a book on the Cortex-Mx​ first, either the Technical Reference Manual (TRM) from ARM, or one of Joseph Yiu's books covering the cores.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
CPans.2
CPans.2Author
Associate
February 12, 2022

OK Thank you for the guidance.

Piranha
Principal III
February 12, 2022

If you don't know which STM32 to choose, take some Cortex-M4 based newer design. So get some Nucleo or Discovery board with G4, L4 or F4 series MCU, starting with the most preferable one.

You can start learning with this well-explained tutorial:

https://www.embeddedrelated.com/showarticle/453.php

CPans.2
CPans.2Author
Associate
February 13, 2022

Thanks.. Will go through....

S.Ma
Principal
February 13, 2022

If going from basic to later more advanced, stm32g071 might be simpler as cortex m0+ with rather new peripheral ip versions. Some stm32 are also arduino core supported if smooth learning curve is preffered.

Amel NASRI
ST Technical Moderator
February 14, 2022

Hi @CPans.2​ ,

Tutorials available in the STM32 Step by Step should be helpful for you to get started with STM32 products programming.

That is true they are not based on registers manipulation, but they can be a good start point then you can generate code with LL (Low layer) drivers.

-Amel

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.