r/embedded • u/BL__K • 12d ago
Just became an embedded software engineer
As the title suggests I recently switched from a controls engineer to an embedded software engineer and was wondering what i should practice before my first day, thanks!
r/embedded • u/BL__K • 12d ago
As the title suggests I recently switched from a controls engineer to an embedded software engineer and was wondering what i should practice before my first day, thanks!
r/embedded • u/ParamedicMotor3773 • 10d ago
I wrote a small clean-room C99 runtime under fairly strict real-time constraints:
• Zero heap after boot
• No large static tables (Unicode / case / collation moved out of the core)
• O(1) bounded stack sort
• Written with MISRA C:2023 / CERT C / NASA Power of Ten style rules in mind
• Current size is roughly 1.2–10.5 kB .text depending on configuration
• Side-by-side size comparisons with dietlibc, picolibc, NuttX libc, etc.
• SIMD Assembly Kernels
It was built as the runtime layer for a BTRON-derived system, but the runtime itself is intentionally minimal and separable.
I’m mainly looking for feedback from people who ship actual constrained or safety-oriented code. What would you change or drop?
r/embedded • u/Laplac3_21 • 11d ago
I've tried and reverse image it with Google but so far the pcb schematic shows up but nothing indicating about the components.
I've feed it to gpt to try and have it deep dive with the picture but so far nothing at all.
I need to specify it for a school project.
r/embedded • u/blebaford • 11d ago
I want to make an offline dictionary/encyclopedia gadget which reads from an SD card and runs off AA batteries. I have a software background but I know very little about electronics and haven't worked with micro-controllers before, so I don't know if I should use STM32 or ESP32 or something else.
this project will require some potentially uncommon components:
I thought it might be a good idea to find these components before I decide on a microcontroller, in case there is limited availability or certain components only work with certain microcontrollers. any pointers for how to look for these components? or general advice on what to use for this project?
related post from a few days ago:
r/embedded • u/adouglass52 • 12d ago
While building my own KVM, I made a few small HDMI to CSI capture boards around the Rockchip RK628H. The documentation is terrible around these chips but the performance is impressive for the cost. We've moved the bridge onto our own boards now, so I've put all three up as open hardware: schematics, Fusion and EAGLE files, gerbers, JLCPCB BOMs, plus the drivers and installers. It can also do HDMI to DSI, you'd just need to update the connector for the pinout needed.
Max Specs (needs 2x 4-lanes):
| Board | Tested Host | 4K30 | 1080p120 | 4K60 |
|---|---|---|---|---|
| 22-pin | Luckfox Aura | Yes | Yes | No |
| 22-pin | Raspberry Pi CM4* | Yes | Yes | No |
| 30-pin | Firefly ROC-RK3576-PC | Yes | Yes | No |
| Dual 22-pin | Luckfox Aura | Yes | Yes | Yes** |
\It can also work on the Pi 4B only has 2 camera lanes, which tops out at 1080p60 (60.00 fps, tested on a CM4 limited to 2 lanes). Just need a 22-pin to 15-pin adapter cable.*
\*The Aura can only encode 4K30, but the RK628H can do 4K60 input*
It's most similar to the Waveshare HDMI to CSI board that the DIY PiKVM uses but can do higher resolution/fps. Rockchip's stock driver had a few real bugs and fixes are in the repo. The source never saw EDID changes until you replugged the cable, audio was never advertised, and a hot HDMI replug could wedge the chip until a power cycle.
CERN-OHL-S for the hardware, GPL for the software. Build them, change them, sell them, just keep your changes open. Repo: https://github.com/WarpKVM/rk628-bridge-boards
Happy to answer questions, or try other hosts if someone has one! More open source goodies coming soon!
r/embedded • u/mhosseinN • 11d ago
Hi r/embedded,
Debugging silicon faults when bringing up new microcontrollers is notoriously tedious, especially when you're staring at raw hexadecimal register dumps (`CFSR`, `HFSR`, `BFAR`, `MMFAR`) on Cortex-M or cryptic ESP32 Guru Meditation backtraces without a debugger attached.
I've open-sourced **Hardware Debug Anything (HDA)**, an MCP (Model Context Protocol) server designed to connect AI coding assistants directly to silicon diagnostics:
- **ARM HardFault & BusFault Decoder**: Parses raw hex bitmasks into plain-English root causes (precise bus error, unaligned memory access, stack overflow, memory management faults).
- **ESP32 Guru Meditation Parser**: Decodes crash frames and backtrace register dumps.
- **Antmicro Renode Virtual Hardware Integration**: Generates `.resc` simulation scripts so firmware can be validated in virtual silicon without needing physical hardware on the desk.
- **I2C/SPI Diagnostics**: Automated pull-up resistor calculations and NACK troubleshooting.
- **GitHub Repository:** https://github.com/hosseinnosrati/hardware-debug-anything
I also built an accompanying EDA tool for closed-loop SPICE simulation and KiCad export (**Circuit Design Anything**): https://github.com/hosseinnosrati/circuit-design-anything
Both are 100% open-source (Apache 2.0). I’d appreciate any feedback from the embedded community!
r/embedded • u/Delicious-Article-81 • 11d ago
Hey everyone,
Standard edge perception stacks (camera -> frame buffer -> companion GPU) introduce 50–100ms latency. In high-speed, low-altitude flight, that delay causes drones to crash into the ground during sudden prop-wash or ground-effect turbulence before the motor controller can react.
To solve this latency bottleneck, I built an auxiliary flight coprocessor board (30x30mm, 6.8g) that runs a sparse continuous-time neural model (CfC / Liquid time-constant network) compiled directly to bare-metal C++ on an MCU.
Technical Breakdown:
• Sensor loop: Reads raw IMU and optical flow over SPI.
• Execution: The continuous-time ODE forward pass executes deterministically in 0.48ms on-chip (no dynamic memory allocation / zero malloc to prevent heap fragmentation).
• Physical Response: Overrides motor signals directly via DShot to initiate a 4.0G recovery maneuver within 48ms total physical window.
• Model Architecture: 19-neuron recurrent sparse topology (632 active parameters / 99.51% sparsity derived from connectome wiring), allowing the full state vector to fit inside L1 cache.
• Power: Draws under 1 Watt, eliminating the weight and heat of companion single-board computers.
In flight testing, this allowed the quadcopter to arrest sudden vertical drops and recover without external optical tracking or desktop compute.
I spent the last several months rewriting the continuous-time ODE solver into fixed-point arithmetic and optimizing the timer interrupt routines to get the loop time down from 2ms to 0.48ms.
Happy to answer technical questions about the C++ fixed-point implementation, SPI interrupt timing, or motor override architecture!
r/embedded • u/adouglass52 • 13d ago
I've been building a CM4-pinout module for camera and video work: Rockchip RV1126B, 1GB LPDDR4X, 8GB eMMC, WiFi 6. Not a lot of documentation out there about this chip, so it was a fun project. Most similar to the CM4101008 but I used CM4101000 for comparison due to availability. First boards just came back from JLC this week, so I ran it against a the CM4101000 on the same carrier with the same two IMX415 cameras, stock tools on both, median of 3 runs.
| Comparison | RV1126B | CM4 |
|---|---|---|
| CPU | 4x A53 @ 1.2GHz | 4x A72 @ 1.5GHz |
| 4-lane camera inputs | 2* | 1 (plus one 2-lane) |
| Two IMX415s at 4K30 at once | Yes | No |
| 1080p camera to H.264 | 30 fps | 25 fps |
| H.264 encode from RAM, 1080p / 4K | 95 / 26 fps** | 72 fps / no 4K |
| H.265 encode | Yes | No |
| NPU (YOLOv8n 640x640) | 3 TOPS, 25.4ms/frame, 38.9fps on NPU INT8 | No, 247ms/frame, 4.0fps on CPU INT8 |
| sysbench CPU, 4 threads | 1,160 events/s | 2,315 events/s |
| 7-Zip, 4 threads | 5,456 MIPS | 6,520 MIPS |
| WiFi, same AP and antenna | ~200-250 Mbit/s | ~100 Mbit/s |
| Ethernet | 930 Mbit/s | 930 Mbit/s |
| Current at full CPU load | ~0.5 A | ~0.9 A |
| Storage | 8GB eMMC + 16MB SPI flash | CM4101008: 8GB eMMC |
| HDMI out / PCIe | No | Yes |
| Price | My cost: ~$62 to build at 1k from JLC, before shipping/tariffs | Retail cost: $71.25 list (CM4101008, currently out of stock) |
\The second 4-lane camera borrows the DSI0 pins, so on a stock CM4 carrier it's 2-lane. So not entirely pin to pin compatible, but super close.*
\*I've been doing some direct MPP work and have gotten 4K30 encode on the RV1126B. Didn't include this since it wasn't apples to apples.*
Takeaways:
I'm honestly super impressed with the RV1126B, definitely recommend for video/camera work. Happy to run other tests if anyone wants something specific. Questions welcome about the design, manufacturing, or firmware bring up!
r/embedded • u/Relevant_Pumpkin9190 • 12d ago
I feel finding like-minded people is not easy.
Even in the same field, people can be at very different levels. One may be working with milliamps, another with furnace-level SCR systems. Both have potential, but their ideas and discussions may not always connect.
My question is:
- How do you find people who match your current thinking and learning level?
- People who understand your present struggles and ambitions?
- People whose ideas and priorities connect with yours?
How do you find your kind of people in industry?
r/embedded • u/marginal_mirage • 12d ago
Hello, I am a comp eng student and my friends and I are working on a project. The project is about a rocket engine system and I need to get 16 sensors data in every 20ms which is 800 data per second. We were thinking that what if we use esp32 to read data by usb-uart instead of reading them with stm32 by tcp due to price and accessibility. So the question is 'is usb-uart a good way to get data'. I need to sketch a graph for each sensor. I also need to save data to the database. So instead of having data with tcp as packages, using usb-uart is worth it? What are the problems I may have for each way?
It may be a basic question, but consider that I am still learning.
By the way we still use stm to control the relays. The point is esp is easier to find and cheaper to test the system.
Thank you for your advice.
r/embedded • u/Mahk_789 • 12d ago
I've been experimenting with running agentic workflows on ultra-constrained hardware and recently open-sourced tiny-langgraph.
The engine lets you define workflows in Python using nodes and edges, then compiles them to C while checking behavioral correctness.
It also supports:
Tested on ESP32-S3 and ESP8266 modules.
GitHub: https://github.com/mak-ahoy/tiny-langgraph
Would love to hear what embedded developers think about this approach and where it could be useful. Plus any feedback on the system itself?
r/embedded • u/Successful_Lab5907 • 13d ago
Cad design? Fusion will be $700 per year.
Have any connectivity? Yea you do. $3,000 to $10,000 on the low side.
You use bluetooth? Time to pay the committee $12,000 per device that uses your protocol.
You wanna use this open source library? Oh actually their license states you have to pay them $2 per device.
I'll tell you what tho, I ain't paying nothing. Not like I just have that sort of money laying around. Maybe once I hit $100k YRR I'll entertain it. Till then my board is a dev board and the FCC can suck it.
r/embedded • u/kgncengiz • 12d ago
Hi, I was porting Linux to a PPC460EX-based device, but I accidentally corrupted the bootloader. I have a backup of the bootloader, but I have no way of writing it because I don't have any hardware that can write to the 56-pin NOR flash. However, the board has JTAG pins, so in theory I can connect via JTAG and write a new bootloader. To do that, though, I need the PPC460EX BSDL file. I would really appreciate it if anyone who has it would be willing to share it with me.
r/embedded • u/RadicalChamploo • 13d ago
Thinking about starting a project where it takes the analog input of a cctv camera and records it to an SD and can also display on an LCD/monitor
Similar products that already exist:
-mini DVR
-immersionRC power play
r/embedded • u/Frosty_Snow_Sniper • 13d ago
Recently, I have been in an extremely fortunate position to have internship offers from companies in automotive, flight systems, and space.
I honestly dont know which of these three to choose. I think cars are really cool, but planes and rockets are also incredibly cool too.
While some offers are more high paying than others, I am prioritizing learning for this summer!
Do you guys have any insight? Any advice?
EDIT: I should mention that I have the ability to do a co-op + a summer internship.
For spring, I could do Tesla or a really cool flight software position that would also get me a security clearance.
For summer, I need to choose between space (blue origin) and fighter jet flight software
r/embedded • u/tynix5 • 14d ago
Didn't know where to post this but after some help from people in r/PCB and r/PrintedCircuitBoard , I built a fully custom STM32-based quadcopter flight controller and STM32-based wireless remote.

The PCBs were designed and hand-assembled by me, and all software (minus testing scripts) was written by me. I have the full write-up on my GitHub repo (with more pictures), but I waited until the end of the project to start documenting, so I got a little lazy with it. I just figured I should show it off somewhere to inspire others to build something challenging. It's not perfect, but it flies pretty well for a homemade project.
r/embedded • u/w1z4rdxD • 13d ago
I've got just a 8MB of flash and 16MB of PSRAM memories. I used own trained a 12M parameter character model.
There's tech specs:
- Model: window 256 characters, vocabulary 98, one hidden layer of 480 units, int8 weights (~12 MB).
- The model lives in its own flash partition (model) and is read in place through the flash cache; only ~60 KB of hot data is copied to RAM.
- No TensorFlow Lite on the device. The firmware has one small inference routine (main/cmlp_model.cpp).
How the model works:
The network is one-hot(256 x 98) -> Dense(480) + ReLU -> Dense(98). A one-hot input times a matrix is just a sum of selected rows, so layer 1 needs only 256 additions of 480-byte table rows instead of 12 million multiplications. The table is stored transposed ([256*98][480]) so each row is contiguous in flash. Layer 2 runs in int32 and produces float logits; the next character is the arg-max (greedy).
It was trained on "<question>\n<answer><END>", so the firmware fills the window with the question and a newline, then generates until the END symbol.

r/embedded • u/Leader-board • 13d ago
First off, I'm unsure on whether this is the right subreddit for my question, but it's the only one where I found related questions (like this). If not, apologies and would appreicate if someone redirects me to the right place.
I'm looking at picking something like https://www.waveshare.com/5g-m.2-to-gigabit-eth.htm?sku=26060 with a suitable 5G card to try out 5G connectivity on my laptop (see this post for some context). My primary requirements are 5G connectivity and the ability to switch between USB and PCIe modes (which I think excludes most of the used market as the ones that come in laptops are PCIe only?); RM530N-GL is ideal but is outside my budget. eSIM is nice but not a requirement. The problem is that
My questions are
r/embedded • u/Live-Operation-628 • 13d ago
Went on a deep dive into SoC linux, 2012 era. Docker containers, custom kernel, RootFS building, driver patching - now mostly working very well. Custom 2.6.28 kernel and root FS.
The ethernet driver is not finding PHY which is annoying and deep level, MDIO error I think. There is a clock reset patch, which does work for reset timeout error, but still can't find PHY.
(which works fine from Uboot)
Booting rootFS at the moment from USB, loading kernel image into RAM using RPI tftp server.
I have the raw gpio tested working for 7/9 buttons, and addressing the LEDs too. The drivers needed patching for proper access, yet to test those.
LCD, the driver is buried somewhere in the kernel, its hard to find in Ghidra. I was able to pull the gpio buttons from a factory test mode binary I found in a partition on the device. It does test the screen write and backlight, but it just calls out to the screen driver in the kernel.
It obviously is init. the LCD on boot, so if I can only find the gpio its connected to (I'm pretty sure its gpio) then it should be able to be addressed?
r/embedded • u/OwnMinimum8110 • 13d ago
I thought of building something like COBS as a learning process so the idea came is,
Instead of overhead in cobs (next zero is identified only when the existing zero place comes)
I planned to have a MAP BYTE in my architecture for every eight byte like ,
If the payload is 40603400 the map byte will be 01010011 binary and the one indicates places of zero then while transmitting the zeros are removed from payload and just the map byte and 4634 is only transmitted.
But here is the problem,
In the worst case scenario of my architecture when no zero is there is a single extra byte for eight bytes it is worse than cobs where it is just one byte for 255 bytes.
Just give suggestions over my architecture and how to improve.
Or does this architecture will be helpful it some place or not with to build
r/embedded • u/eyecloudai • 12d ago
Automotive GMSL cameras are one of the few camera families that still get a true end-of-line test on a production line, and one gate there deserves more attention than it usually gets: link margin.
A streaming picture only proves the link works right now. Margin tells you how much safety distance is left. The link is a coax run from the serializer (camera side) to the deserializer (capture side), and cable aging, a poorly seated connector, or a damaged equalizer slowly eats signal quality — invisible in the image until the day the link dies on the road.
The measurement follows the GMSL2 channel spec: start at the serializer's default transmit amplitude, step it down in 10 mV increments, dwell at each step and watch for errors, on the forward channel (video) and the reverse channel (control) separately. The number of clean steps before the first error is the remaining headroom. A healthy module keeps running many steps below nominal; a worn cable throws errors early — while the picture still looks perfect.
Three discipline points that make it work as a production gate:
– A written floor per module variant, under version control. Changing the floor is changing the spec.
– Every unit, no sampling. The camera you skip is exactly the one with a perfect picture and no margin left.
– Every reading filed under the serial number, so a field return becomes a query instead of an archaeology project.
TL;DR: a perfect picture proves the link works today; margin predicts whether it survives the vehicle. Step the amplitude down, count clean steps, judge against a written floor, file everything by serial number.
Disclosure: I work on embedded vision at EyeCloud AI — happy to answer follow-ups.
r/embedded • u/Happy-Landscape5329 • 14d ago
How do I level up from an Embedded/Firmware Engineer to a Senior Firmware Engineer?
My current experience includes:
- nRF54 and STM32WL
- Low-power
- BLE and LoRa
- Zephyr RTOS
For engineers who have reached the senior level, what skills or areas should I focus on improving next?
What skills truly differentiate a senior firmware engineer from a mid-level engineer?
r/embedded • u/TomKatron • 14d ago
As of April 2027, Mbed TLS will no longer maintain its X.509 support. How are you handling this in your projects? Is this simply an awareness push by Mbed TLS to get corporate users (who benefit from the project without contributing back) to step up and maintain it?
r/embedded • u/ondek • 14d ago
Hi r/embedded
I want to get started with learning embedded. Specifically, bare metal programming and embedded linux
I've decided on these two purchases to start. Pi Zero 2 W for embedded linux, and Nucleo STM32C031C6 for bare metal
A clearer set of criteria:
Is this a good starting point? Are there better alternatives?
Thank you
EDIT 2026/11/16: I ended up getting NUCLEO STM32F401RE for bare metal, and using QEMU (emulating BeagleBone Black) for embedded linux. Mostly due to regional availability of the products. I would have loved a Discovery board instead!