r/stm32 • u/lbthomsen • 49m ago
STM32 Secure Bootloader: Relocated Application | Bootloader #3
r/stm32 • u/ponybau5 • Jan 27 '21
Feel free to post your stm32 questions, creations, and ramblings
r/stm32 • u/lbthomsen • 49m ago
r/stm32 • u/Ok_Engineering5969 • 4h ago
r/stm32 • u/OddPen135 • 1d ago
Hi everyone!
I’m a CS grad interested in getting into embedded systems.
I studied C and C++ during my degree, though I’m a bit rusty and completely new to the hardware side of things.
I recently bought a few components (STM32 Nucleo board, OLED display, sensors) to eventually build a project, but I’d like to build a solid foundation first.
I’d really appreciate recommendations for learning resources, such as Udemy courses, YouTube channels, online courses, tutorials or websites. If you’ve followed a learning path that worked well for you, I’d love to hear about it!
Thanks in advance!🫶🏻
r/stm32 • u/lbthomsen • 1d ago
I am using the STM32U031K8(U6, but it seems to be on the U3 also) and I am trying to create a configuration in CubeMX.
On the page 31 of the datasheet, PA0-CK_IN (pin 6 on UFQFPN32) is shown to have ADC1_IN5 as Additional function. But in CubeMX I can only set that pin to ADC1_IN4 even though it seems to me that ADC1_IN4 doesn't even have a pin on the UFQFPN32 package.
Can someone experienced check this out as it's my first time and it might be just on me?
r/stm32 • u/Desperate_Vast5420 • 2d ago
Hi guys, im learning stm32 so i bought F411RE nucleo board. Everything was perfectly fine for a couple weeks but suddenly st-link stopped being detected on my MacBook Air m4.
When i plug it in to the mac the board power on but the LD1 placed on st-link keeps blink red, MB doesnt see any plugged in device.
To plug in i use simple USB C -> USB A adapter, i’ve tired also USB hub but still not working while
other devices works fine plugged in using those adapters ofc.
When i plug it in windows PC it works but not in every USB port, some of USB ports give the same behaviour as MacBook, windows device manager see new device but show code 43 „Windows has stopped this device because it has reported problems”
I’ve measured around 4,95V on the USB 5V and i have already tired brand new cable.
Maybe someone has similar problem and solved it?
r/stm32 • u/lbthomsen • 4d ago
r/stm32 • u/MarvinNewzealand • 4d ago
In June I asked here if an open H757 controller with plug-in IO modules made sense. I built it. Since August one unit runs my greenhouse: roof vents, a fan, and nutrient dosing for an NFT system. It's still the first prototype, and yes the wiring in the cabinet is a mess.
The board is an STM32H757 with FreeRTOS and lwIP. The M7 does Ethernet, MQTT over TLS and OTA, the M4 does field IO and Modbus. There is 32 MB of SDRAM, 32 MB of SPI flash with LittleFS, and an ATECC608A that holds the TLS private key, with an SE050 on the top version. It has six RS-485 ports, two CAN, eight fast inputs for pulse counting or encoders, microSD, and a backplane for up to 16 modules. Each module has its own H503 and talks plain Modbus RTU. In the greenhouse it started with three: 16 relay outputs, 16 digital inputs and a pH/EC module.
In October I added a second growing system on the same controller, a coco drip line with its own feed tank. That took one more pH/EC module on the backplane, five Modbus sensors on a spare RS-485 port and eight spare terminals. Diagram in the comments.
Two bugs from the field. ST's ethernetif only released TX buffers on BUSY, so lwIP could not retransmit and the link dropped dozens of times a day. An EXTI flag cleared wrong on the M4 side overflowed the RPMsg ring and reset the board.
Firmware source is public, dosing code included. Happy to go into any of it.
r/stm32 • u/Athlete-Tight • 4d ago
r/stm32 • u/Bulky-Ostrich-3950 • 5d ago
Hello everyone for the past 4–5 months I have been working with an STM32 Nucleo board covering topics such as GPIO, timers, ADC, SPI, I2C, and interrupts. Now I would like to undertake a project that incorporates some of these concepts however I am struggling to decide what to build I am particularly concerned about selecting the right components and coming up with an idea that effectively covers these areas. How can I determine the right project and choose the most suitable components? I would appreciate your advice on this.
r/stm32 • u/Typical_Ear_6664 • 4d ago
r/stm32 • u/lbthomsen • 6d ago
r/stm32 • u/surya_sam • 6d ago
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 • 7d ago
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 • 8d ago
r/stm32 • u/ParamedicMotor3773 • 8d ago
r/stm32 • u/Unfair_Escape_2025 • 9d ago
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 • 9d ago
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 • 9d ago
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 • 10d ago
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 */
}