r/stm32 • • Jan 27 '21

Posting is now public

16 Upvotes

Feel free to post your stm32 questions, creations, and ramblings


r/stm32 • • 3h ago

EmbiMind MCP: an approval-gated MCP server for ARM embedded workflows

Thumbnail
reddit.com
1 Upvotes

r/stm32 • • 14h ago

Thoughts on using AI as a mentor/guidance for learning STM32 and other ecosystems?

6 Upvotes

Hi, I come from a traditional EE background (I didn't learn any embedded systems / OS / Computer architecture in college). I am trying to learn the peripherals on microcontrollers, starting with serial communication protocols. In my personal project for learning, I have a basic setup where I plan to have an Arduino UNO connected to an STM32F4 discovery board over a bi-directional serial interface (starting with I2C) and both will utilize their independent UARTs to print the internal messaging to separate terminals.

Unfortunately, I have no mentors or anyone to teach me this stuff so I've been trying to read documentation / example code in addition to using AI as a code reviewer. So I write some code and have AI review it without giving me direct answers. I'm honestly not sure if this is a good process because I feel like I am learning but it is AI coming up with the explanations and catching the bugs that I am not seeing...which gives me a false sense of growth.

I tried to ask a similar question on the main embedded systems subreddit but people seem quite hostile over there...


r/stm32 • • 10h ago

I open-sourced our STM32 C cellular library (Quectel EC200U / MeiG SLM320) with HTTP, MQTT, SMS, sockets, and PC unit tests

Thumbnail
reddit.com
0 Upvotes

r/stm32 • • 11h ago

Difficulty level doubts

Thumbnail reddit.com
1 Upvotes

r/stm32 • • 1d ago

Zephyr Blinky sample works on STM32 Nucleo-F401RE, but west flash exits with status 1 due to OpenOCD errors

Thumbnail reddit.com
2 Upvotes

r/stm32 • • 1d ago

[Showcase + Source code + STL files for 3D print] Velocity controlled image based vision servoing

3 Upvotes

r/stm32 • • 2d ago

STM32 Secure Bootloader: Hidden Flash | Bootloader #4

Thumbnail
youtube.com
4 Upvotes

r/stm32 • • 3d ago

Relevant STM32U5 datasheets/reference manuals/programming manuals?

3 Upvotes

Hi, I am fairly new to STM32 programming and was wondering if someone could please let me know what are / where I can find / link me any relevant STM32U5 datasheets, reference manuals, and programming manuals? As of right now, for the most part, I am currently able to do stuff with tutorials, but it would be great if I could get confirmation that I'm doing stuff correctly through relevant documentation.

Thanks!


r/stm32 • • 3d ago

Why there are no good public 1-Wire-over-UART+DMA implementations on STM32 (and what I found when searching)

0 Upvotes

There's a recurring claim that 1-Wire is convenient to do over UART: 1 bit = 1 UART byte, and the hardware shift register takes care of the timing itself. It sounds nice, so I went through the public implementations that specifically use DMA. The result: the approach works, but there are no production-grade implementations, and it's not because nobody finished one -- the approach itself doesn't promise anything good.

What actually exists

  • taburyak (STM32, HAL) -- UART+DMA: 8+8 bytes of RX/TX per 1-Wire byte. Problems: infinite loop waiting on the HAL driver status, UART re-init with a baud change on every reset and transfer, reading an uninitialized variable in the conversion-complete check, strong pull-up on a separate pin, alarm search stubbed out.
  • shpegun60 -- a rework of taburyak: state machine, 5 ms timeouts, 4 retries. Problems: blocking ROM search, inverted conversion wait (the condition is effectively always true), manual DMA stop; identical bit-packing functions and comments reveal the common ancestor.
  • foxhounddm (C++/HAL) -- a single TX+RX DMA for the whole transaction. Problems: reset via blocking transmit and receive with a 1 ms timeout, while a byte at 9600 takes 1.04 ms; custom non-standard search; GPL-3.0.
  • controllerstech (STM32 HAL) -- a tidy multi-sensor example, but no DMA at all: RX interrupt plus a blocking wait for TX completion. That's not UART+DMA.
  • lwow (MaJerle) -- 281 stars, MIT, actively maintained. The README promises DMA, but the STM32 backends have none: the HAL variant is Receive_IT + blocking Transmit + RxState wait, the LL variant polls TXE/RXNE/TC byte by byte. So in practice it's UART without DMA.

A GitHub search for "onewire uart dma" returns literally a handful of repos: three small ones (0-10 stars, half of them derived from each other) and lwow, whose DMA exists only in the README. So there's simply no sample to build a "best practice" from.

Why the architecture can't reach production

  1. 1 bit = 1 UART byte. An 8-byte DMA buffer carries exactly 1 byte of data. DMA saves interrupts, but not the number of slots or the time: a 9-byte scratchpad is 72 slots of ~87 us each, i.e. about 6.3 ms regardless of DMA.
  2. Reset requires switching baud 9600 <-> 115200. DMA is useless here, and reinitializing UART on every reset is expensive and fragile.
  3. Fixed sampling point. UART samples at 1.5 bit times, i.e. 13.02 us at 115200, while the DS18B20 window is 15 us. That leaves ~2 us of margin: baud, clock or filter error eats it up.
  4. Overdrive is impractical. ~1 Mbit/s UART over real wires with framing errors is a project of its own, not "just set a different baud rate".
  5. DMA remains a transport with synchronous waiting. For every slot or byte, someone has to wait for a flag; so you end up with blocking waits (taburyak), a state machine with timeouts (shpegun60), or interrupts. The advantage over bit-banging melts away.

Bottom line

The lack of good UART+DMA implementations is not a conspiracy or laziness, it's a niche: the approach only wins on peripheral availability (no free timer or pin), and it pays with a fixed sampling point, a baud switch on reset, an external strong pull-up and manual error handling. For a narrow case (short line, DS18B20, standard speed) you can build a production version, but it means rewriting about 70% of the transport: transactional DMA, callbacks, BRR, error policy, HIL, and it still won't be a universal 1-Wire master.

If anyone knows a production-grade UART+DMA implementation, please share -- I'd be glad to take a look.


r/stm32 • • 4d ago

Two AS5600 encoders work individually but fail after ~15 seconds on separate STM32 I²C buses

Thumbnail reddit.com
1 Upvotes

r/stm32 • • 5d ago

[Request for Feedback] stm32f4-skel-gcc: An annotated tarter project for bare-metal STM32 with GCC

Thumbnail
github.com
3 Upvotes

r/stm32 • • 5d ago

Pump is not getting ON

Post image
2 Upvotes

r/stm32 • • 5d ago

Where do AI coding skills/agents fall short for hardware/software development work?

1 Upvotes

I am an embedded engineer works on hardware and software, and I've been been exploring Claude for firmware. The generic embedded skills I've found two: jeffallan embedded systems [skills](https://github.com/Jeffallan/claude-skills/tree/main/plugin/skills/embedded-systems) and general inspiration from [voltagent](https://github.com/VoltAgent/awesome-claude-code-subagents) which are decent starting points, but in my opinion, then fall short in a quite many places as project grow. for example:

  1. Hardware-specific details
  2. Debugging
  3. Context cost
  4. Project structure

So I started my own [Plugin](https://github.com/00thirdeye00/Claude-Skills-Embedded), with a shared core plus per-platform pieces (STM32 first), and I'm still unsure about several design choices:

  1. Does splitting by platform make sense, or is one all-in-one skill set easier to maintain?
  2. At what point does a skill set be over-engineered?
  3. How to benchmark a embedded system development specific claude skill?

r/stm32 • • 6d ago

I’ve made a custom DSP platform (with open-source schematics)

Thumbnail
youtu.be
9 Upvotes

Hi everyone,

I’ve made an STM32-based DSP system-on-module for Eurorack synths I called the “audio core”. I used it in our newest module that will be available to preorder soon, and made the schematics public and available for everyone to use on our GitHub! Here’s the link: https://github.com/bartinstruments/open-source


r/stm32 • • 6d ago

Minimoog-Inspired Polyphonic MIDI Synthesizer | STM32 Tutorial #108

Thumbnail
youtube.com
5 Upvotes

r/stm32 • • 6d ago

Zte h288a

0 Upvotes

I try uart on the h288a but dram but i dont get a shell any help?


r/stm32 • • 7d ago

STM32H523 board centered around CAN FD bus. What modules should I build for it first?

Thumbnail
gallery
67 Upvotes

Renders of a board I've been designing, prototypes arrive next week.

It's built around an STM32H523 and a CAN FD bus. Power and CAN daisy-chain over a 5-pin connector (7–36 V), so add-on modules can just plug in down the line. It also has an onboard DAPLink debugger on its own USB-C, plus a second USB-C on the H5 that works as host or device.

Next I want to build CAN FD modules for it. What would you want first? I'm thinking things like a high-res ADC, a precision DAC, motor controllers, or a bus power/monitor module, but I'm curious what people would actually use.


r/stm32 • • 7d ago

Kaba / Gilgen SLA (PCB 0639-131) - Fujitsu MB96F346ASB Flash dump needed

0 Upvotes

Hello everyone,
I'm currently working on repairing an automatic sliding door controller board from Kaba / Gilgen (Model: SLA, PCB Code: 0639-131).
Unfortunately, the original microcontroller had to be replaced, and due to an unfortunate accident, the old chip was discarded, so I couldn't read its content beforehand. The board is now fully powered (VCC is stable at 4.90V), but the new Fujitsu/Cypress MB96F346ASB (16FX family) is completely blank.
Is there anyone on the forum who might have a flash dump (.hex or .bin) for this specific board/MCU combination? Or perhaps a working dump from a similar Kaba SLA controller?
Any help, advice, or pointer would be hugely appreciated since replacement boards are extremely expensive.
Thank you in advance!
Best regards,
Seb


r/stm32 • • 7d ago

I built an STM32-based real-time flight navigation system with an artificial horizon and integrated map display

6 Upvotes

Hey everyone!

I wanted to share one of my embedded systems projects — a real-time flight navigation system built around the STM32H747 microcontroller.

The idea behind this project is to explore how modern aircraft cockpit instrumentation and navigation interfaces can be implemented on an embedded hardware platform.

Key features:

  • STM32-based embedded architecture
  • Real-time flight instrumentation and artificial horizon visualization
  • Integrated navigation and graphical map display
  • Embedded firmware development
  • Hardware–software integration

The project combines my interests in embedded systems, aerospace engineering, avionics and graphical interface development.

This is currently an experimental prototype, and I'm looking forward to further improving its functionality, performance and graphical interface.

I'd love to hear your thoughts, technical feedback and suggestions for improvement, especially from those working with STM32, embedded graphics or avionics systems.

What features would you add to a system like this?


r/stm32 • • 7d ago

MCUs with NPUs, what would you actually use them for?

Thumbnail reddit.com
3 Upvotes

r/stm32 • • 8d ago

Kaba / Gilgen SLA (PCB 0639-131) - Fujitsu MB96F346ASB Flash dump needed

2 Upvotes

Hello everyone,

I'm currently working on repairing an automatic sliding door controller board from Kaba / Gilgen (Model: SLA, PCB Code: 0639-131).

Unfortunately, the original microcontroller had to be replaced, and due to an unfortunate accident, the old chip was discarded, so I couldn't read its content beforehand. The board is now fully powered (VCC is stable at 4.90V), but the new Fujitsu/Cypress MB96F346ASB (16FX family) is completely blank.

Is there anyone on the forum who might have a flash dump (.hex or .bin) for this specific board/MCU combination? Or perhaps a working dump from a similar Kaba SLA controller?

Any help, advice, or pointer would be hugely appreciated since replacement boards are extremely expensive.

Thank you in advance!

Best regards,

Seb


r/stm32 • • 9d ago

STM32 Secure Bootloader: Relocated Application | Bootloader #3

Thumbnail
youtube.com
5 Upvotes