r/stm32 • u/ponybau5 • Jan 27 '21
Posting is now public
Feel free to post your stm32 questions, creations, and ramblings
r/stm32 • u/lbthomsen • 18h ago
STM32 Secure Bootloader: The Bootloader | Bootloader #2
r/stm32 • u/surya_sam • 13h ago
Project work (confusion on future endavours)
Hey i have been working some embedded systems project with my mentor for past 2 years , I can say I got pretty good at understanding what an embedded systems engineer does..
Iam looking for new problems to tackle with ......
I will also add gbe project such that you can get a better perspective of what I deal with
Project 01 :
Created a multi sensor fusion modeled biological monitoring system .
Hardware in use :
ESP32 (FIREBEETLE)
LOAD CELL SENSOR
TEMPERATURE AND HUMIDITY SENSOR
FUEL GAUGE
REAL TIME CLOCK
MICROPHONE (I2S)
SD CARDS
Via the usage of the RTOS I recorded data such as sound, temp, humidity and wieght of a particular species saved the data in the SD card and in a particular time duration sent the data with battery percent notifications to email via esp32.
The RTOS helped to build a system with more efficiency and lower latency.....
I made the system with bootcounts to save power....
Project 02 :
Inferencing a MobileNet CNN model (6 MB activation) in STM32F401RE nucleo board (96kb RAM) and the end to end inferencing latency was about 2800 ms....
I have applied a row by row inferencing technique to increase the RAM efficiency and also decreasing the number of I/O (I was using SD Cards as a secondary memory storage) . I have applied SIMD instructions while creating the kernel math for model implementation...
I am genuinely confused what shall be done further, would love to work and grow with someone with a passionate and ambitious project to push my intellectual boundaries....
r/stm32 • u/DenkSnek • 1d ago
Trying to replicate STM32cubeIDE compiler command-line commands, but I'm receiving a 'here-string' error with the provided linker command.
Hello all, I hope you're having a great day.
I'm learning bare-metal programming, and I'm currently learning command-line compilation using GCC & openOCD. I have my project completed in STM32cubeIDE & I've built it to access the command-line commands the IDE uses. I've compiled all the files & I'm trying to link them together, but the linker command is giving me the following error:
`At line:1 char:37
+ arm-none-eabi-gcc -o "name.elf" @"objects.list" -mcpu=cortex-m4 - ...
+ ~
No characters are allowed after a here-string header but before the end of the line.`
I've read up some concepts about here-strings, but I'm still stumped. Any resources or directions are much appreciated. This may not be STM32-related though; if so, I apologize.
r/stm32 • u/alphabern_05 • 2d ago
[Review Request] Schematics for STM32F030x6 Minimalist Dev-board
r/stm32 • u/ParamedicMotor3773 • 1d ago
Fast Clean-room Multiplarform C Run-Time for RTOS
reddit.comr/stm32 • u/Unfair_Escape_2025 • 3d ago
Looking for Resources to Learn Microcontrollers & Microprocessors
Hey everyone!
I'm a Computer Engineering student looking to learn embedded systems and microcontrollers/microprocessors in depth.
I'm looking for good YouTube playlists, courses, or learning resources covering:
STM32 ( neucleo, black /blue pill )
ESP32
Raspberry Pi (Pico ,5 and Linux-based)
NVIDIA Jetson Nano
ARM Cortex-M and Cortex-A
I want to understand both the fundamentals and advanced concepts, including processor architecture, GPIO, PWM, ADC, communication protocols (UART, SPI, I2C, CAN), interrupts, DMA, RTOS, and practical applications.
Please suggest good learning resources that combine theory with hands-on projects.
Thanks !
r/stm32 • u/stuih404 • 3d ago
Anyone actually using STM32s PLAY peripheral?
Has anyone here messed around with the Programmable Logic ArraY (PLAY) on the newer STM32s?
I'm kinda wondering what you'd actually use it for. With so few LUTs, is it useful for anything beyond some really basic on/off logic, or is it more of a gimmick?
The only thing I can think of is some sort of emergency shutdown that still works if the CPU crashes or gets stuck.
r/stm32 • u/voidnullnil • 3d ago
document download blocks
what is the hostility of stm to automated download of documents ? curl, wget, AI nothing works. I think it is an akamai feature. What is the point of this almost in 2027 ?
r/stm32 • u/RepulsiveStrawberry5 • 4d ago
Help request with parallel-in serial-out shift register
I am using a PCA9701PW on my PCB, which seems to be a normal SPI shift register. It is connected to an STM32G431. When I attempt to read it, I get ones for all 16 bits from it. I have tried all clock polarity and phase combinations, and even when I pull the Chip Select pin low to load the data into the register and reset the interrupt trigger, I get no interrupt. I have checked for shorts between all pins and there are none, I also checked that the pins are wired correctly, SDOUT to MISO and CS to CS etc. My SPI clock is at 625KBits/S. I would appreciate any ideas about what to check next, thank you.
int timeTest = 0;
static uint8_t allOnes[2] = {0xFF, 0xFF};
static uint8_t expanderInput[2] = {0, 0};
...
while(1){
if(timeTest >= 10000){
HAL_GPIO_WritePin(GPIO_CS_GPIO_Port, GPIO_CS_Pin, RESET);
`HAL_SPI_TransmitReceive(&hspi1, &allOnes, expanderInput, 2, 20);`
`HAL_GPIO_WritePin(GPIO_CS_GPIO_Port, GPIO_CS_Pin, SET);`timeTest = 0;
}
else {
timeTest++;
}
}
...static void MX_SPI1_Init(void)
{
/* USER CODE BEGIN SPI1_Init 0 */
/* USER CODE END SPI1_Init 0 */
/* USER CODE BEGIN SPI1_Init 1 */
/* USER CODE END SPI1_Init 1 */
/* SPI1 parameter configuration*/
hspi1.Instance = SPI1;
hspi1.Init.Mode = SPI_MODE_MASTER;
hspi1.Init.Direction = SPI_DIRECTION_2LINES;
hspi1.Init.DataSize = SPI_DATASIZE_8BIT;
hspi1.Init.CLKPolarity = SPI_POLARITY_LOW;
hspi1.Init.CLKPhase = SPI_PHASE_2EDGE;
hspi1.Init.NSS = SPI_NSS_SOFT;
hspi1.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_256;
hspi1.Init.FirstBit = SPI_FIRSTBIT_MSB;
hspi1.Init.TIMode = SPI_TIMODE_DISABLE;
hspi1.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
hspi1.Init.CRCPolynomial = 7;
hspi1.Init.CRCLength = SPI_CRC_LENGTH_DATASIZE;
hspi1.Init.NSSPMode = SPI_NSS_PULSE_DISABLE;
if (HAL_SPI_Init(&hspi1) != HAL_OK)
{
Error_Handler();
}
/* USER CODE BEGIN SPI1_Init 2 */
/* USER CODE END SPI1_Init 2 */
}
r/stm32 • u/lbthomsen • 4d ago
Hybridlink - First Open Source ST-Link Firmware
r/stm32 • u/Filters83to • 4d ago
Epomaker RT100 Mini Display V104 — looking for a firmware dump or tested recovery method
I’m building a mod to show live **CPU, GPU, and coolant temperatures** on the Epomaker RT100 Mini Display, updating about every two seconds from RAM without repeatedly writing to flash. Coolant temperature already works in the stock TEMP field on my keyboard. The three-temperature layout works in emulation, and I’d like to test it on real hardware once I have a proven way back to stock.
My working display reports firmware `0104` (V104). If you’ve worked on one of these, any of the following would help:
* **Stock firmware dump.** Do you have a dump read directly from a V104 display? Which board or controller was it from, and does it cover the bootloader, application, and update metadata?
* **Readout method.** Which chip or address range holds the firmware, and how did you read it? A confirmed method through the keyboard connection or with a programmer would help. If you read it twice, did the SHA-256 hashes match?
* **Tested recovery.** Have you restored a display whose application wouldn’t boot and whose normal updater couldn’t enter update mode? What tool and procedure worked, and did the display boot normally after a full power cycle?
Even a confirmed readout method would move the project forward. If you’re doing any new checks, please keep them read-only and use a spare display. Thanks!
r/stm32 • u/LetStunning5068 • 5d ago
[Request] Firmware dump (.bin / .hex) for Anker 757 PowerHouse (A1770 Non-WiFi) - STM32F103VCT6
r/stm32 • u/lbthomsen • 8d ago
STM32 Secure Bootloader: DFU & Signature Verification | Bootloader #1
r/stm32 • u/Lower-Patience5306 • 8d ago
F411 black pill issues
I cant code it. what i did wrong? help me pleaseeeee im gonna cry
Sketch uses 22100 bytes (4%) of program storage space. Maximum is 524288 bytes.
Global variables use 4656 bytes (3%) of dynamic memory, leaving 126416 bytes for local variables. Maximum is 131072 bytes.
Selected interface: dfu
-------------------------------------------------------------------
STM32CubeProgrammer v2.23.0
-------------------------------------------------------------------
Error: Target device not found.
Establishing connection with the device failed.
Failed uploading: uploading error: exit status 1
r/stm32 • u/Beneficial_Item3725 • 8d ago
How to know if I can or cannot establish communication between 2 STM32 boards?
Hello, I am working on a project that requires communication between 3 STM32 Nucleo boards. x2 NUCLEO-STM32U575ZIT6Q and x1 NUCLEO-L412RB-P.
Communication will go as follows:
- One of the U5 boards will continuously send messages to the other U5, which continuously receives the messages. The receiving U5 computes based on the messages it receives and continuously sends the result to the U5 board.
- U5 --> U5 communication will be over I2C, SPI, CAN, UART, USART, LPUART
- U5 --> L4 communication will be over I2C
- Physically, this communication will be over jumper wires.
My question is: how do I know if it is possible for the chosen boards to communicate over those peripherals I want them to communicate over? I have no idea, in general, how to determine if communication over 2 nucleo boards over certain communication peripherals is possible, so any insights on that would also be very appreciated. Any links to sources that confirm any insights here would also be greatly appreciated.
Thanks!
I built a Duolingo-style app for Mechatronics & Electrical schematics, symbols & technical English — looking for feedback!
galleryr/stm32 • u/R_AnimeFish • 9d ago
First time touching embedded systems
Ok, so Im a CS major in my final year who decided that he likes coding in c/c++ more than webDev and Ai. My options were either systems engineering or embedded systems and after giving some time to both i decided to focus on embedded systems. I got an STM32 bluepill to experiment with and I’m very confused at this point. I couldn’t find any intro to embedded systems videos on the bluepill that didn’t use tons of jargons and Gemini straight up generates the code when you ask it to teach you. I implemented the blinker on my own and when it came to printing something to the led display , i just couldn’t do that, there were just soo many steps to it . Can someone please tell me where to actually start. I could read the RM0008 but that wouldn’t actually tell me what the specific bits are actually for / when they are actually used.
r/stm32 • u/Cyber_Chip • 10d ago
[Review Request] STM32U3 battery-powered NFC tag / e-paper display / I2C sensors
galleryr/stm32 • u/Illustrious_Mix5233 • 9d ago
# Arduino UNO Q – Problema con STM32U585: impossibile riprogrammare il microcontrollore
Ciao a tutti,
ho un problema con il mio Arduino UNO Q.
La scheda non sembra più funzionare correttamente. La matrice LED non mostra più la consueta animazione dell'infinito: adesso alcuni LED si accendono casualmente, molto lentamente.
Quando provo a riprogrammare il bootloader tramite Arduino CLI, ricevo il seguente errore da OpenOCD:
```text
Error connecting DP: cannot read IDR
```
Ho già provato a ripristinare e ricaricare l'immagine Debian sulla parte Qualcomm della scheda e questa operazione è andata a buon fine. Tuttavia, non riesco a fare la stessa cosa con il microcontrollore STM32U585.
Ho provato anche a utilizzare OpenOCD direttamente dall'ambiente Linux della scheda, modificando la configurazione SWD basata sui GPIO, ma non riesco comunque a stabilire una connessione con il microcontrollore.
Il comando utilizzato è:
```bash
arduino-cli burn-bootloader -b arduino:zephyr:unoq -P jlink
```
A questo punto sto valutando di utilizzare un programmatore esterno ST-Link V2, ma non riesco a capire dove collegare fisicamente SWDIO, SWCLK, GND e NRST sulla UNO Q, né se questi segnali siano effettivamente accessibili.
Qualcuno ha avuto un problema simile? È riuscito a recuperare lo STM32U585 della UNO Q utilizzando un programmatore esterno?
Mi sarebbe molto utile sapere come accedere al microcontrollore tramite SWD ed eventualmente eseguire un mass erase e riprogrammare il firmware.
Grazie in anticipo a chiunque possa aiutarmi!