r/stm32 • • 2h ago

New to Embedded & Feeling Lost – What Resources Would You Recommend?

0 Upvotes

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 • • 8h ago

Difference between datasheet and CubeMX

2 Upvotes

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 • • 11h ago

Emulation and Simulation

Thumbnail reddit.com
1 Upvotes

r/stm32 • • 16h ago

NUCLEO-F411RE ST-Link blinking red, Code 43 on some USB ports, not detected on MacBook Air M4

3 Upvotes

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 • • 2d ago

Hybridlink (Open Source ST-Link Emulator) Followup | STM32 Tutorial #107

Thumbnail
youtube.com
10 Upvotes

r/stm32 • • 3d ago

Devo fare un esame di sistemi embedded su una nucleo stm32g474re, mi sto aiutando com gemini ma dice idiozie, anche chatgpt... Mi sapreste consigliare il miglior modello di intelligenza artificiale per aiutarsi a programmare la stm32? Grazie

0 Upvotes

r/stm32 • • 3d ago

Follow-up: the H757 controller I asked about in June now runs a greenhouse

Thumbnail
gallery
20 Upvotes

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 • • 3d ago

I am building a visual MCU configurator, currently supporting STM32.

12 Upvotes

r/stm32 • • 3d ago

The Next Step After Learning the Fundamentals of STM32 What Should I Build?

8 Upvotes

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 • • 4d ago

I made my NVidia graphic Driver

Post image
0 Upvotes

r/stm32 • • 5d ago

Project work (confusion on future endavours)

0 Upvotes

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 • • 5d ago

STM32 Secure Bootloader: The Bootloader | Bootloader #2

Thumbnail
youtube.com
3 Upvotes

r/stm32 • • 6d ago

Trying to replicate STM32cubeIDE compiler command-line commands, but I'm receiving a 'here-string' error with the provided linker command.

3 Upvotes

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 • • 6d ago

Fast Clean-room Multiplarform C Run-Time for RTOS

Thumbnail reddit.com
0 Upvotes

r/stm32 • • 6d ago

[Review Request] Schematics for STM32F030x6 Minimalist Dev-board

Post image
7 Upvotes

r/stm32 • • 8d ago

document download blocks

0 Upvotes

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 • • 8d ago

Looking for Resources to Learn Microcontrollers & Microprocessors

13 Upvotes

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 • • 8d ago

Anyone actually using STM32s PLAY peripheral?

12 Upvotes

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 • • 8d ago

Help request with parallel-in serial-out shift register

2 Upvotes

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 • • 9d ago

USB-UART vs TCP

Thumbnail reddit.com
1 Upvotes

r/stm32 • • 9d ago

Epomaker RT100 Mini Display V104 — looking for a firmware dump or tested recovery method

2 Upvotes

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 • • 9d ago

Hybridlink - First Open Source ST-Link Firmware

Thumbnail
youtube.com
25 Upvotes

r/stm32 • • 9d ago

[Request] Firmware dump (.bin / .hex) for Anker 757 PowerHouse (A1770 Non-WiFi) - STM32F103VCT6

Post image
2 Upvotes

r/stm32 • • 11d ago

Stm32 f407x discovery board

Thumbnail reddit.com
1 Upvotes