Questions tagged [stm32]

The STM32 is a family of microcontrollers from ST Microelectronics, based on the Cortex M0, M0+, M3, M4, or M7 ARM core (depending on the product line).

The STM32 is a product line from ST Microelectronics using 32-bit Cortex-M microcontrollers and/or Cortex-A microprocessors. There are a variety of microcontrollers with different power consumption and performance characteristics. Some microcontrollers also offer DSP and floating point functionality.

In addition to the line of microcontrollers, ST also offers a number of different evaluation boards and development boards. These boards contain a microcontroller on a PCB with additional support electronics and various sample sensors. The STM32CubeIDE Integrated Development Environment supports software development for these products.

Two such product lines are the Discovery kits such as the STM32F0DISCOVERY and STM32F3DISCOVERY boards and the Nucleo product line of prototyping boards.

As of Q1/2023, the family consists of:

MPU

  • STM32MP1 - Cortex A7 & Cortex M4 big.LITTLE

Low Power

  • STM32L0 - Low-Power Cortex-M0+
  • STM32L1 - Low-Power Cortex-M3
  • STM32L4 / L4+ - Low-Power Cortex-M4
  • STM32L5 - Low-Power Cortex-M33
  • STM32U5 - Ultra Low-Power Cortex-M33

High Performance

  • STM32F2 - High-Performance Cortex-M3
  • STM32F4 - High-Performance Cortex-M4
  • STM32F7 - High-Performance Cortex-M7
  • STM32H5 - High-Performance Cortex-M33 (up to 1 GHz)
  • STM32H7 - High-Performance Cortex-M7 (up to 550 MHz)

Main Stream

  • STM32F0 - Mainstream Cortex-M0
  • STM32F1 - Mainstream Cortex-M3
  • STM32F3 - Mainstream Cortex-M4
  • STM32G0 - Mainstream Cortex-M0+ (upgrading STM32F0)
  • STM32G4 - Mainstream Cortex-M4 (upgrading STM32F3)

Wireless MCUs

  • STM32WB - M4/M0 with BLE, Zigbee
  • STM32WL - M4/M0 with LoRaWAN
5104 questions
1
vote
1 answer

Program received signal SIGTRAP, Trace/breakpoint trap in atollic true studio

I'm new to the atollic truestudio. I have running a C code for STM32 MCU, but unfortunately the code stops its execution at the same point everytime when I debug the code even though there is no breakpoint applied. I have attached an image below for…
1
vote
1 answer

STM32F4 Timer6 Register not setting

Below is the code snippet of where I am setting my timer6 up Timer6 Config I used the datasheet register map Register map While debugging my prescaler value and auto reload arent being set. Im not sure what is missing because when I debug my GPIO…
1
vote
1 answer

UART Communication SMT32L496ZG

I am trying to transmit the signal using the UART Communication at my microcontroller by means of IDE, but it does not work. My code looks like the following /** ****************************************************************************** *…
Rostyslav
  • 85
  • 1
  • 1
  • 5
1
vote
1 answer

STM32F103 PLL comparing reset value with a flag value "CODE WISE"

I am trying to program an STM32f10xx MCU and trying to set the Clock. In the Reference manual It is written that the PLL when turned on, a flag will be set by the hardware indicating that it is ready or LOCKED, The flag bit is called PLLRDY. The…
The_M_Code
  • 127
  • 2
  • 10
1
vote
1 answer

Is this the right way to SPI?

I am currently trying to check with the function, if my SPI is working currectly. This function should return 1, if everything is fine...but it always return 0. Maybe values in pTxData are wrong ? uint8_t Gyro_CanReadWHOAMI() { uint8_t…
Vlad Paskevits
  • 388
  • 2
  • 12
1
vote
0 answers

TIMER triggered DMA - AD conversion, STM32F4 works only ones

I am implementing an A/D conversion with DMA transfer fired by a timer on a Nucleo STM32F401RE board. Both TIMER2, the one used for the time base, and ADC with DMA looking at the debug are fine. But when I use the timer to start the AD conversion it…
1
vote
0 answers

STM32F103 clang compilation and big binary size

I'm trying to use clang compiler and GNU Arm Embedded Toolchain assembler+linker+libraries to build a LED blinker for STM32F103. My host system is Debian x86_64. I use a Makefile project generated in STM32CubeMX (which is based on GCC) with some…
yogurt
  • 21
  • 2
1
vote
0 answers

Having Trouble with SD DMA on STM32L452 MCU

I am having trouble making SDMMC work with DMA in 4 bit mode. I tried with FreeRTOS and without FreeRTOS didnt get anyresult. But it works perfectly without DMA. It gives either Rx Overrun error or timeout error. I tried it with different SD card,…
Miguel Andrade
  • 346
  • 3
  • 13
1
vote
1 answer

Sending string through queue in Freertos

I want to create a task with push button and the task sends a string to a queue and creates another task (this can also be separate task with lower priority) which reads the queue and blink led if its variable is same with the string in the queue.…
lsn
  • 33
  • 10
1
vote
0 answers

STM32 USART LL Interrupt

I am using the NUCLEO-L053R8 board to communicate with a peripheral over USART. I started to send commands which are working fine. The peripheral transmits the data to the corresponding device. After a successfull send command the device answers…
1
vote
0 answers

Trying to add CANopenNode library but getting errors

https://github.com/Alphatronics/mbed-os-example-canopen trying to add this library for stm32f429zi nucleo but couldn't been able to do so. Tried install both manually and with mbed studio. While manually installing with "mbed import…
1
vote
1 answer

mfrc522 spi connection via hal library

I am trying to make connection by HAL_SPI_*() API with mfrc522 and at least read VersionReg register , but what address I want to read return its address in data in other words it seems to has a echo! Here is my SPI initialisation: hspi1.Instance =…
1
vote
1 answer

Flash Sector Erase - STM32F207

I currently have this code setup to erase a specific sector of the STM32F207 internal flash (in a freeRTOS environment): static void eraseSector(uint32_t sector) { FLASH_EraseInitTypeDef eraseInitStruct = { 0 }; …
Anviori
  • 15
  • 8
1
vote
1 answer

About Meson, Cross File and STM32

I have some issue about cross compile STM32 with meson. I'm new to meson and try to compile STM32 code with it. I found this repository https://github.com/hwengineer/STM32F3Discovery-meson-example and try to change it what i need it. My cross file…
1
vote
3 answers

STM32 - I2C in interrupt mode doesn't works

I am using a STM32 board to send I2C commands to a I2C slave using interrupt mode. I have initialized I2C module as below, hi2c2.Instance = I2C2; hi2c2.Init.Timing = 0x00303D5B; hi2c2.Init.OwnAddress1 = 0; hi2c2.Init.AddressingMode =…
AR26
  • 29
  • 6
1 2 3
99
100