I
I
Igor Mikhailov2019-11-13 13:22:43
Python
Igor Mikhailov, 2019-11-13 13:22:43

What is the true beginner's path in STM32?

All the good time of the day.
I set myself the goal of learning programming for STM32 microcontrollers in a year. A debug board was purchased for STM32F103C8T6, ST-Link v2 and other little things.
I began to read what and why - the main language C ++. In YouTube, of course, there is a "quick start" in the Arduino IDE, but as for me - not the true way.
I also found such a project as "MicroPython", it attracts me, let's say, because I know Python at a good level. But somehow everything is not clear there, what to do with MK, in which a small amount of memory is not clear.
There is only one and only true option left - C ++. But I haven't found a clear way.
This was the prehistory, the basis of the question is: how and where to start studying STM32, with minimal knowledge of C ++? What to read, what to watch? Preferably, of course, in Russian.
I would like in a short period of time to learn how to "control" microns and make him do what I want)
Therefore, I ask for help in guiding me on the right path)
Thank you in advance for your answers.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
ittakir, 2019-11-13
@ittakir

The fact that you chose the C++ path is correct.
1. Generate a project in STM32CubeMx. Set the pin parameters, connect the necessary peripherals (UART, SPI).
2. Export the project to IAR ARM or Keil.
3. Collect the code and upload it to the board. You have not written a single line of code, but have already received a working framework for the application.
4. Read the datasheets for the chip (you need one that describes all the peripheral registers), and the documentation for the HAL. Your main work will go through HAL, read about registers for a general understanding of how peripherals can work.

P
Papayaved, 2020-02-06
@Papayaved

For the debug board, STM32CubeMx most likely already has the required settings, study them and generate a project for Atollic TrueStudio.
The first task you can set yourself is to learn how to communicate via UART with a computer terminal.
The other is by pressing the buttons to turn on / off the LEDs.
Buy an I2C monitor and learn how to print on it. Make some kind of menu, navigate with the buttons and also control the LEDs through the menu on the screen. Also connect the ADC via SPI and show the temperature. After that, it will be possible to go to work to manage simple devices

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question