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

How to connect the ESP8266 Wifi Module to firebase through the STM32CubeIDE

I am working on an embedded project on the STM32F103rb Nucleo-64 board. The project contains the ESP8266 Wifi Module. I write the code in the STM32CubeIDE workspace. Is there a way to connect the ESP8266 Wifi Module to firebase through the…
Mana
  • 63
  • 1
  • 9
1
vote
1 answer

FATFS R0.11 slow read speeds on STM32F103 - SPI

I am working with STM32F103C8 and I got FATFS R0.11 working fine on it (it’s the latest version that CUBEMX uses on STM32F103C8Tx by default), but the read speed is quite low, in the neighbourhood of 100 kB/s. The SPI clock is set to 18 MHz (changed…
KamilWitek
  • 99
  • 1
  • 9
1
vote
0 answers

Fatal error : invalid -march= option: 'armv5t'

I'm following bootlin lab to make a linux image that could be flashed on stm32mp157 discovery board. Now, I'm trying to make u-Boot. I have downloaded it from here and configure it through menuconfig as the lab has mention it. When I launch the make…
Y.G
  • 51
  • 2
  • 8
1
vote
1 answer

Why do the usual STM32 start ups define the vector table with fewer entries than in the reference manual?

I'm learning low-level details of the STM32. I am puzzled by how the vector table is setup. In the reference manual, table 63, it lists the STM32F103C8's vector table. It goes from 0x00000000 through 0x00000130. However, if you look at the generated…
puritii
  • 1,069
  • 1
  • 7
  • 18
1
vote
5 answers

how to write a function that links other functions in C

Lets say I have functions A, B, & C. I would like to write a function which looks like: Linker(A,B,C,{{0,1,0},{0,0,1},{0,0,0}}); where the arrays correspond to which element in the first list will be called. In other words, when A finishes, it…
Ivan Viti
  • 21
  • 3
1
vote
0 answers

use STM32 crypto library to generate signature

I used STM32 crypto library(firmware implement) and set private key value generated by openssl , but I can't get the right signature. No matter what the private key value or all-zero( "00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00…
Cuh Chen
  • 11
  • 2
1
vote
1 answer

Hardware timer instantly completes when first used. STM32F303VC

I'm attempting to setup and use the TIM2 peripheral in one pulse mode (OPM) on the STM32F303 Discovery board. The issue I'm encountering is that the timer instantly completes after enabling it. I'm not using interrupt's at this point and I'm just…
WBuck
  • 5,162
  • 2
  • 25
  • 36
1
vote
1 answer

I can't receive more than 64 bytes on custom USB CDC class based STM32 device

currently I try to sent 720 bytes from Windows application to custom STM32 device (now for testing purposes I use Blue Pill - STM32F103xxx). Ah, I forgot to point that I am totally newbie into programming :). So on device side I have 1000 bytes…
Ivan
  • 13
  • 1
  • 3
1
vote
1 answer

Transfer hex value to a decimal value

I'm trying to manipulate the values of a struct atime1 with values .Hours, .Minutes, .Seconds, and for some reason, the values I need are the HEX values of these variables, all tree are int. Then I "concatenate" the three variables in a way the hex…
gusdleon
  • 115
  • 1
  • 6
1
vote
1 answer

STM32H743ZI Nucleo seems unable to transmit via FDCAN 2?

I am currently trying to send messages via both of my FDCAN transmitters on my Nucleo. But I am only able to transmit via FDCAN1 (classic master) and not via FDCAN 2 (classic slave). The configuration setup is the same, only FDCAN1 starts sending ,…
Yamira
  • 15
  • 7
1
vote
1 answer

STM32F4 HAL SPI as slave/device connected with an ESP as Master

I try to run an Nucleo-STMF411RE as a SPI Slave/device with an ESP32 as a Master. One way data transmisson runs smoothly but as soon as the device should transmit data back to the master things get corrupted. My SPI Master side looks like this: void…
PhilM
  • 56
  • 5
1
vote
0 answers

MLX90621 no Acknowlegde with the RAM

First off all I am a beginner regarding embedded programming. For an application I do want to use the MLX90621 thermo pixel array togehter with an STM32G431KB. On the Melexis Website is an example Code with some sort off abstraction. I moddified the…
MichiKWH
  • 11
  • 2
1
vote
0 answers

Spı sck pin always high

I am working on a project on 20*2 character oled(US2066) so I wrote a code for configuration of SPI and code has not any error or warning but the SPI doesnt work on my code what is the problem? The configuration of SPI is: void…
1
vote
0 answers

Fail to establish serial connection to STM device (STM32L475VET6) via winapi functions (c++) on some windows 7/8/10 systems

I maintain the firmware und update software of a device that integrates a ST microcontroller (STM32L475VET6). The update software is implemented in javascript and c++. In windows 7/8/10 the update software sometimes fails to find the device…
alex_ER
  • 31
  • 1
  • 3
1
vote
0 answers

How to interact with ST-Link server (not the ST-Link GDB server)

I currently write some code for a STM32 board and stumbled across some different debug utilities which confused me a bit. The way I debugged software for the ST boards was by using the ST Link GDB Server which comes with the CubeIDE. I connected my…
Michael
  • 147
  • 7
1 2 3
99
100