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
0 answers

MCU damaged after FLASH->OPTR register changed

I have changed STM32G431CBT6's default BOOT0/PB8 pin disable via changed FLASH->OPTR register nswboot0 bit from factory default 1 to 0, however after that I have already damaged (or something else such as locked) 3 MCUs. Now connect with…
1
vote
1 answer

Correct way to deactivate SPI in half-duplex/simplex mode STM32F4

I am trying to change a STM32F4 from slave to master after certain amount of time, send a message as master, and go back to slave. I found out that configuring the SPI as slave_rxonly and enabling the SPI will cause the clock to unexpectedly sent a…
Farynx
  • 93
  • 1
  • 7
1
vote
1 answer

STM32F302R8. TIM2 as output and TIM15 as input does not work for me

I am learning to use the STM32F302R8 board and I have this problem. TIM2 is configured with toggle output CH1 on PA0. (This works fine). TIM15 is configured as input capture CH1 on PA2. I have a jumper between PA0 and PA2. The aim is that when TIM2…
1
vote
2 answers

STM32F103C8 LED blink

I try to program an STM32F103C8 circuit. I use an ST-LINK V2 programmer. After running a sample of code that used special libraries, I was able to see the built-in LED ON, but now I want to program the board without using those libraries, and I…
pauk
  • 350
  • 4
  • 15
1
vote
2 answers

ST-LINK could not connect to the target

I'm trying to connect to stm32f401rbt6 with st-link utility. The MCU has 6 pins connected, as on the image below. The target is powered by a lab power supply, target GND is connected to the ST-Link GND When I plug it to the computer, st-link utility…
larts
  • 67
  • 8
1
vote
1 answer

Controlling STM32F3 GPIOs without the Cube MX libraries

I am adapting this bootloader for STM32F373CC to my device. To indicate that the device is powered but in bootloader mode, I'd like to turn on some of the status LEDs. However, this bootloader doesn't use the STM Cube MX libraries, so I have to code…
xnarpy
  • 13
  • 3
1
vote
1 answer

STM32 LwIP PPPos - getting started

I am struggling (like many others it seems) to get started with LwIP over PPPos (ppp over serial) for STM32. I could have ended that sentence earlier, because even without PPPos I am having a hard time understanding where to start. I have read, and…
bas
  • 13,550
  • 20
  • 69
  • 146
1
vote
0 answers

STM32:disable UART interrupt can't use UART in DMA mode

When I use UART in DMA mode with CubeMX generating code. I read the source code of HAL lib and I can't find any __HAL_UART_ENABLE_IT that can enable UART interrupt in the process of UART DMA mode. So I guess UART interrupt is no use and try…
yaya A
  • 21
  • 2
1
vote
0 answers

Why does STM32F1 CAN communication only send one pulse per message?

I am working on CAN communication between two STM32s: STM32F1 (Bluepill) and Nucleo-L432KC. To facilitate the CAN bus a dual-CAN transceiver module for a Teensy 3.5 is used. Here is the pinout. Pinout of the dual-CAN tranceiver module. The two…
Jokkefar
  • 11
  • 3
1
vote
0 answers

Troubleshooting MFRC522 RFID module on STM32

I've got the MFRC522 (datasheet here) RFID module and Nucleo board (F411RE). I've tried to find a library for this module which would be made for STM32 but I haven't been successful. I've found few but neither of them worked. (It didn't even compile…
1
vote
1 answer

How do I take nRF24l01(slave) Register data using stm32f103 (master) through MISO pin

I'm trying to make a custom library for nRF24l01 for a stm32f103 target device, and I am writing code for a primary TX device. And here I'm trying to read the register contents of nRF by sending the R_REGISTER command along with the address I am…
Yasir
  • 73
  • 1
  • 6
1
vote
0 answers

Can’t reprogram STM32 (F401RE) with ADC and DMA in circular mode

I have a simple program that uses ADC to convert 2 inputs, I use DMA in circular mode. Everything works great. The only problem I have is that in order to reflash the STM32, I have to first erase the chip. This is only happening when I set the ADC…
Roy
  • 11
  • 1
1
vote
1 answer

Which one is the best approach for callback handling?

I need to verify myself about what I am doing. In my app., there is data stream between my device and vehicle CAN bus which contains like speed, gearbox etc. My device gets these data and by interpreting them, it gives an output to the vehicle. Now.…
1
vote
1 answer

the trait `_embedded_hal_digital_InputPin` is not implemented for `PE2>`

I am trying to use DHT11 Library for my STM32F303VC I am getting error: error[E0277]: the trait bound `PE2>: _embedded_hal_digital_InputPin` is not satisfied --> src/DHT11/auxiliary/src/lib.rs:51:32 | 51 | let mut dht11 =…
1
vote
0 answers

Is there any light ftl lib contains bad block management and wear leveling for nand flash on embeded platform?

Is there any light ftl lib contains bad block management and wear leveling for nand flash on embeded platform? I am using a 512MB nand flash but confused of how to betterly drive it.
JJLin
  • 55
  • 2