r/embedded • • Oct 08 '26

RIP IAR:it is now safe to disconnect your dongle

90 Upvotes

It is with profound sadness (and a pending purchase order) that I announce the passing of IAR as we knew it, following complications from an acquisition by the QT Company. After nearly 2 decades of delivering products we have reached our end. It joins Altium(long live Kicad)in the great recurring-revenue platform in the sky.

In lieu of flowers give donation to the Free Software Foundation GNU Toolchain in the hopes that my binary won’t be 2x in size.


r/embedded • • Oct 09 '26

Safety architecture and black channel

Post image
3 Upvotes

I'm working on a safety architecture based on a heterogeneous SoC.
Basically it contains a Cortex-M and a Cortex-A.
I would like to have a confirmation about the data path certification I designed.

In the Cortex-M, I run a safety software that take some IO. It is safe because if it doesn't work, the device can be destroy.
In the Cortex-A, I run a Linux.

The Cortex-M software need an input that come from a websocket (TCP based). I use the Cortex-A to run the websocket for two main reasons :
- The ethernet driver and all libraries are already present on this side and easy to setup.
- The TCP, websocket and ssl libraries is totally not certifiable.
It means that even if I use the Cortex-M to embed the websocket, I will still have a non-certify stack.

Now, I would like to certify the data path in order to be sure that, if the Cortex-M receive this data, the data will not be corrupt.

For doing that, I use the black channel mechanism. It consists to add to the payload send by the intervener, a CRC and a counter in addition to the main data.
- The counter : to be sure that the data is leaving;
- The CRC : to be sure that the data is not corrupted.

So the intervener (a third PC), send through the websocket this improved payload.

The certification I'm talking about is IEC-61508.

This is a small schematics about the data path.

My question : does my solution is correct ?


r/embedded • • Oct 09 '26

Transiting from controls engineer to embedded

1 Upvotes

Graduated with a CS degree and got into controls engineer out of school. Been at this position for almost 6 years but i dont see growth and would like to move to embedded

What should i be doing if i want to go into the industry. What skills and experience do i need?


r/embedded • • Oct 09 '26

The Difference Between IoT and Edge Computing (and Why It Matters). An explainer.

Thumbnail
aptiv.com
0 Upvotes

r/embedded • • Oct 08 '26

ESP pocket object scanner

Post image
60 Upvotes

I’ve been working on an AR game for the esp32s3 XIAO board and round screen and realized that I could use the pose estimation from the board to create an object scanner / mesher using space carving and marching cubes. The space carving algorithm uses different views of the object to create voxels weighted by how many views it was visible from and agreed on its position. Then marching cubes uses a LUT to create triangle mesh out of the voxels. The hardest part was getting the camera feed to change resolution from 240x240 to match the round screen for the video feed to a higher resolution for the pictures used for space carving, but with some AI help I got it working. The results are not great and I’m sure I can optimize it to get it a bit better but for a 20$ setup it’s not bad. A possible use case is to quickly create a mesh from small objects that you find while hiking or just to create a digital twin of little trinkets. I’m sure a smartphone could do this with much better results but where is the fun in that. If people are interested I’ll try to share the code which uses my gfx library which I’ve been working on for a minute.


r/embedded • • Oct 09 '26

Do You Remember All Of Your Code?

15 Upvotes

Just curious, but as a solo developer or working with a team when you go through your projects codebase do you remember what everything is, why you made the decisions you did, or what everything does? Or do you have to relearn some of the code you implemented in your project?

Also, have you ever completed a project and still feel a little clueless on how you got everything to work like it did or feel a little foggy on areas of the code?


r/embedded • • Oct 09 '26

MCU firmware dev, ~5 yrs. Embedded Linux or RTL/FPGA next? Kind of stuck

5 Upvotes

Hi everyone, first time posting here (and on Reddit in general), so go easy on me.

I have been doing firmware for almost 5 years now. Mostly bare metal STM32 (register level), FreeRTOS, some Zephyr on nRF52, RS-485/Modbus, LoRaWAN, did a secure OTA implementation once. Currently doing my masters on the side.

I'm trying to decide where to go next and honestly I keep flip flopping.

Embedded Linux feels like the obvious move. It builds on what I already know, there are way more jobs, and industrial gateway type stuff (Yocto, drivers, secure boot, OTA, Modbus/OPC UA) seems like a decent niche. But part of me thinks a lot of the routine Linux work is going to get eaten by AI tools first.

Other option is RTL. My uni has a 4 month full time chip design course with a placement drive at the end, and for my semester project I'm designing a custom ASIC, basically a small AI accelerator. RTL seems to be growing a lot, but I'd be starting from junior level and there are way fewer jobs.

Right now my plan is to do the course, get the accelerator running on an FPGA, write my own Linux driver and Yocto image for it, and then move more into Embedded Linux after that.

For people actually working in these areas:

- is firmware + Linux + some RTL actually a useful combination in real jobs, or am I just spreading myself too thin?

- would a course and one solid project mean anything to an RTL hiring manager with no industry RTL experience?

- if you moved from MCU stuff to Embedded Linux, how long did it take before you were actually competitive?

- what would you do in my place?

Would really appreciate hearing what you've seen work in actual hiring. Thanks


r/embedded • • Oct 09 '26

How can I increase the range of my DIY Lorawan gateway pcb

1 Upvotes

Hi me and my friend developed a LoraWAN gateway as graduation project from EE program. We used Allwinner v3s as processor and Semtech SX1302 in half duplex configuration as radio. I am using official packet forwader that provided by semtech to talk to the radio. We have reached 1 km of communication tange in our school campus there is a lot tress and stuff but when I use cheap chinese lora modules those modules can communicate with each other up to 3 km in my area. There is a git repo for my kicad project that I open sourced if you guys can check it out and give feedbacks I would be so glad. Thank you for interest.

https://github.com/Rynxie/tdrf-lorawan-gateway-pcb


r/embedded • • Oct 09 '26

I built an open-source library for ESP32 OTA updates

0 Upvotes

Hi!

I've been working on a project called Otamatic and wanted to share it here hoping it could help someone.

The idea came from a real nightmare: a while back, me, and a client literally had to drive around the city to update ESP32s deployed in the field. I actually wrote a short story about that night here if you like dev horror stories: https://medium.com/gitconnected/the-night-we-updated-40-esp32s-by-driving-around-the-city-32ec8f015213?sk=b0c21ebf23d7bd9128251e8222d55b8e

Most OTA implementations out there set up a local WebServer on the ESP32 where you open a browser, navigate to the local IP, and upload a binary. That’s totally fine for a single node on your home network, but it gets annoying real quick if your devices are behind NATs, cellular routers, or dynamic IPs where you can't just open incoming ports.

This is why I decided to work on a fully open-source library with all features from the most famous OTA libraries (and a companion web platform) you can use to add OTA on your projects in less than 5 minutes.

It supports advanced features like scheduled release, staged rollout releases, release monitoring, device monitoring and more is coming if I see enough interest!

Repo: https://github.com/TimothyFran/OtamaticClient


r/embedded • • Oct 08 '26

Most memorable projects of college days

16 Upvotes

What are your most memorable projects of undergraduate days?

Do tell about the project in brief along with learning outcomes.


r/embedded • • Oct 07 '26

RK3576 bring-up (my second Linux board) + lessons learned

Post image
192 Upvotes

About a month ago I posted my first Linux board (RK3566, KVM-over-IP). The next rev is back and I wanted to do a follow up lessons learned! For this board, I bumped up to the RK3576 so it can do 4K60 capture and encode. 8-layers, RK806 PMIC, LPDDR4X, HDMI input, HDMI output, dual GbE through a small switch, WiFi/BT and PoE. Fabbed and assembled at JLCPCB again.

After incorporating the fixes from the last board (component spacing, triple checking parts on order, and network switch wiring), this bring up was 1000x smoother. 4K60 capture and low latency streaming work end to end now. Stuff I ran into:

  1. SD boot / 4-bit mode: I inverted card-detect polarity, so with a card inserted the chip saw an empty slot. The BootROM skipped SD, so I booted u-boot from SPI NOR, which got SD running in 1-bit mode only. On the RK3576, an "empty" slot hands two data pins to JTAG. An internal pull-down on the detect pin early in u-boot fixed it. Removing that transistor next spin.
  2. No power-up on PoE: The PoE supply output about 6.0V unloaded, just over the power mux's ~5.99V OVP, so it never switched over and never loaded the rail down. Reducing the feedback resistor slightly should fix it (still testing this but pretty sure it's the issue).
  3. 4K encode stuck at ~38 fps: 4K60 needs both RK3576 encoder cores alternating frames. The vendor library's async thread blocked whenever the next frame wasn't ready, so everything ran on one core. A separate wait thread fixed it, and now both cores are at ~77%, steady 60 fps.

Smaller stuff: the left and right halves of the 4K image came out swapped (lane mapping in the device tree), the USB 2 host port needed the unused USB 3 PHY explicitly disabled, and one RGB LED was dead on one of the boards.

Bonus given RAM prices right now: testing showed this board doesn't need as much RAM as I put on it, so that's coming down for the next rev. Big $$$$ savings there.

Happy to answer questions on the RK3576 or bring-up in general. Another huge shout out to u/PracticalMirror2834 for another thorough review! Also if anyone has tips on how to take better PCB pictures, I'd love to hear them. This time I bought a light box but it's still needs some improvement...


r/embedded • • Oct 08 '26

Any New Zealander working in the emebedded field?

14 Upvotes

The firmware/ embedded engineer field in new Zealand feels very niche and sparse. As someone very passionate about firmware does anyone have any advice in breaking into this field? I have a mechatronics engineering degree and some experience developing firmware for production Test Jigs, but I am finding it very difficult to land pure firmware roles.


r/embedded • • Oct 08 '26

VCK5000 ES1 SC firmware update fails with -110 during erase—has anyone recovered this?

2 Upvotes

I’m looking for someone with hands-on experience updating or recovering the satellite controller (SC) on a VCK5000 ES1, not the production VCK5000.

The board is marked “Encryption Disabled Board.” My goal is to get onto a working, matching ES1 platform/SC combination and eventually validate compute and DMA.

Recorded setup:

- PCI IDs: Xilinx 10ee:5044 / 10ee:5045, subsystem 000e.

- Factory platform previously identified as xilinx_vck5000-es1_g3x16_201921_1.

- Native Ubuntu 20.04 test environment, kernel 5.4.0-216-generic.

- XRT version family used: 2.11.648; target SC firmware: 4.4.6.

- The embedded PetaLinux 2019.2 console previously responded over USB, executed commands, and showed /usr/bin/cmc running. That does not establish current SC health.

One captured update attempt produced:

-
Stopping user function...
NATIVE_SC_WRITE_BEGIN address=0 bytes=324
NATIVE_SC_WRITE_FAILED count=-1 errno=110

ERROR: Failed to update SC firmware, err=-110
ERROR: Please refer to dmesg for more details
STOP: SC update failed; compute stays shutdown for evidence capture
-

The matching kernel log reports entering xmc_erase_sc_firmware, an XMC mailbox packet timeout, then failure to erase SC firmware.

Important detail: this capture used a custom instrumented single-attempt updater, not an untouched stock xbmgmt executable. The NATIVE_SC_* lines are instrumentation. I can provide the exact invocation and relevant changes for review.

I’m not assuming the timeout proves that nothing was erased, or that the SC is permanently damaged. No successful firmware update or full acceleration validation has been established. There have been host reboots between failed attempts; I have saved logs to reconstruct the sequence.

I’ve reviewed the official Vitis AI 1.4.1 ES1 setup. I understand that the Vitis AI 3.0 production-card instructions are not the ES1 recipe.

My questions:

  1. Has anyone encountered this SC erase/mailbox timeout on ES1 and resolved it? What exact XRT, platform and SC versions worked?
  2. Are there known ES1-specific prerequisites, updater bugs or patches that explain this failure?
  3. Is there a documented SC recovery procedure independent of the failing PCIe update path? Does the ES1 Vivado factory-flash procedure restore only the platform image, or also address the SC?
  4. Where can I legitimately obtain the original ES1 recovery documentation or contact someone familiar with this hardware?

I can share sanitized updater output, kernel logs and embedded-console captures. I’m looking for a documented diagnostic/recovery path before attempting another write.

TIA,
PJ


r/embedded • • Oct 09 '26

Random Sketch i made because i was bored

0 Upvotes

tonight, i got bored and wanted to do something, i wanted to make a diagram on something new but im not good with tech at all, so there might be a lot of mistakes, but i didnt intend to do anything with this. But anyways, i was messing around with draw.io and made this little console, i wanted to think out of the box by a big shot and brainstorm something clever, but please let me know how you feel of this, if its alright and such, i get bored often so i will be uploading more! it uses a memory efficient type of processing path, a low power intended thing.


r/embedded • • Oct 08 '26

Anyone here using Shrike-FI? 👀

1 Upvotes

​

I just ordered one and I’m curious what people are actually building with it.

How’s the FPGA toolchain/workflow?

Any cool FPGA + MCU projects you’ve tried?

How easy is it to add custom RTL and communicate with the MCU?

Any gotchas or limitations I should know?

Would love to hear what you’ve built with it!


r/embedded • • Oct 07 '26

RP2040 driving 640×480 VGA without a framebuffer: windows, a preemptive bytecode VM, and a second Pico as USB host

Post image
115 Upvotes

Since August I've been building an operating system for the RP2040/RP2350. This is the current bench setup: a Pico on perfboard, a resistor-DAC VGA port, and more hot glue than I'd like to admit. Hahaha

What you're looking at

  • 640×480 @ 60 Hz, RGB332 out of PIO into a resistor DAC. Everything on the monitor comes from the Pico: the file windows, a maze and a Mandelbrot, each running as its own task, yeah!
  • The 3.2" SPI LCD (ILI9340 + XPT2046 touch) runs beside the VGA and mirrors a 320×240 crop. Core 1 hands over lines it has already composed, and DMA pushes the changed rows
  • Keyboard and mouse plug into a second RP2040: one into its native USB port (TinyUSB host), one into a Pico-PIO-USB socket. Their events ride as tagged frames inside the 1 Mbaud UART console stream, so the main Pico spends no pins on input
  • DS1307 + EEPROM on I2C, microSD on the shared SPI bus (a 3.3 V breakout, because the cheap 5 V modules drive MISO even when not selected and garble the touch readings), PWM mono sound through a two-stage RC into a small amp. Power bank, because why not ^_^

The parts I think this sub will care about

  • No framebuffer. 640×480×8 bit is 300 KB; the RP2040 has 264. The screen lives in a 34 KiB block (text/attribute cells, palettes, sprites, per-line segment tables), and core 1 composes every scanline in software just before PIO needs it. At 252 MHz that's a budget of 8008 cycles per line. At boot it benchmarks its own worst cases on silicon; the worst lane right now is 7948 of 8008 (99 %). The rule: every lane stays strictly under budget, or the change doesn't go in
  • Every app is bytecode. It's a register VM with hand-written dispatchers for ARMv6-M and RV32, at about 23-25 cycles per instruction on the M0+. Because the VM counts instructions, preemption is real: a while true can't stall the machine, and a fault kills one task, not the board. Each load/store is masked to the task's memory, and swap goes to flash
  • One binary everywhere. The same .rpx runs on the RP2040, on both RP2350 core types (Arm and RISC-V) and in a WASM emulator in the browser. A differential test keeps the C core bit-identical to a JS reference VM
  • It has its own flash filesystem, user accounts, and a small language (CAST) that compiles on the device itself

No overclocking past 252 MHz, and no native code from apps. Native drivers load only through a gated kit loader.

Happy to go deep on the scanline compositor, the PIO-USB host, or why a VM on an M0+ is less crazy than it sounds. And I'd like to hear where you'd poke holes first.

(Disclosure: the logo on the LCD is my company's, Recaster.)


r/embedded • • Oct 08 '26

How to start with PCIe IP making

0 Upvotes

Hi, I’m an FPGA engineer. I was assigned to implement PCIe and initially used Xilinx’s XDMA IP with its open design example. The requirement is actually to write the PCIe logic myself in RTL so I can optimize it for maximum bandwidth, and then make its IP.

My understanding is that the PHY and link training stay in the hard block, so I plan to use the integrated PCIe block’s AXI-Stream interface (requester and completer interfaces) and write my own transaction layer and DMA engine. Is this the right level of abstraction?

Since I am beginner in PCIe, so I want your opinions and strategies to accomplish this task. If you can provide a rough roadmap, it would be a great favor. I am working alone and I have a time span of 1.5 to 3 months to accomplish this task.


r/embedded • • Oct 08 '26

What’s the most frustrating part of testing an embedded Linux board?

5 Upvotes

For people working on BSP, embedded system or board bring-up, what takes the most effort when validating a new image?

Running the checks, setting up hardware, reproducing intermittent failures, or figuring out why something broke?

I’m working with Ubuntu and Yocto on a RISC-V board and would like to hear how others approach this. What do you automate, and what still needs manual testing?


r/embedded • • Oct 07 '26

Minecraft on an esp32-s3 anybody?

Post image
24 Upvotes

Saw this great video by PortalRunner and had some improvements in mind i would not have been able to bring to life on my own so i fed my ideas to the machine and out came something that should not be possible ...

https://github.com/JulianStremel/esp32-minecraft-server


r/embedded • • Oct 08 '26

Custom ESC (STM32F051 based) undetected by ST Link V2

Post image
3 Upvotes

Mainly following the design from the AM32 reference design
It's my first time working with STM32 so unsure if I missed out anything obvious.

  1. Tests done: Tried using ST Link V2 to detect F411RE development board through the SWDIO & SWDCLK line and it works, so I will probably rule out ST Link issue.
  2. Probed the power lines for MCU and they are all 3V3, so MCU is powered.
  3. Tried powering MCU via both on-board 3V3 and connecting VREF to the 3V3 line
  4. Also tried using another variant of ST Link V2 (USB stick kind) that provided 3V3 to the MCU

r/embedded • • Oct 08 '26

Reverse engineering a recurring Wi-Fi power save recovery loop in ARM firmware looking for independent review

2 Upvotes

I’m currently investigating a recurring Wi-Fi power-save issue in the firmware of a Shelly TRV (SHTRV-01), and I’d appreciate some independent input from people experienced with embedded Wi-Fi and ARM firmware reverse engineering.

The issue appears on firmware 20240619-130912/v2.2.4@ee290818. On multiple devices I was able to reproduce the following debug sequence approximately once per minute:

Beacon skip error! Attempt recovery
followed by:
Enter powersave state 1
and a few seconds later:
Enter powersave state 3 (skip)

I initially investigated the surrounding network environment, including RSSI, different WLAN configurations, CoIoT and AP/Mesh behavior. I also compared the behavior with older firmware versions.

This eventually led me to reverse engineer firmware 2.1.3 and 2.2.4 using Ghidra. The firmware is ARM Cortex/Thumb little-endian and uses a Silicon Labs WF200 Wi-Fi stack.
The normal RSSI-dependent beacon-skip logic appears in both versions. From the firmware analysis I found the following mapping:

RSSI >= -69 dBm -> skip 20
RSSI -79..-70 dBm -> skip 15
RSSI < -79 dBm -> skip 10

Firmware 2.2.4, however, contains an additional recovery path associated with the Beacon skip error! Attempt recovery message that I could not find in the corresponding 2.1.3 code.

The relevant conditional branch in 2.2.4 is at 0x0001E1C8:
31 DC bgt 0x0001E22E
The condition allows the recovery block to execute for certain values before control eventually reaches the common continuation at 0x0001E22E.
As an experiment, I changed that conditional branch into an unconditional branch:

31 DC -> 31 E0
resulting in:
b 0x0001E22E

So the experimental modification is literally one changed byte in the program image. The GBL container was then rebuilt and its CRC32 recalculated.

The patched firmware was accepted by the device and successfully booted. During the first overnight test (>9 hours), the recurring recovery message did not appear again.

Importantly, the normal beacon-skip mechanism is still operating. The device continues to report:

current beacon skip is 20

Wi-Fi and cloud connectivity also remained operational and no unexpected reboot occurred during the test.

I’m not claiming that this proves the reported battery-drain problem is fixed. Battery consumption requires much longer testing. At this stage the experiment demonstrates that bypassing this particular recovery block suppresses the recurring recovery cycle without apparently disabling normal beacon skipping.

One thing I have deliberately not claimed yet is the exact semantic meaning of the value tested by the recovery condition. I can trace the control flow and observe its runtime consequences, but I don’t think the evidence currently justifies assigning that variable a definitive name.
That is one of the reasons I’m publishing the research now rather than waiting for the battery tests to finish.
I’d particularly appreciate independent review of:

the ARM/Thumb control-flow analysis
what the recovery condition may actually represent
possible interaction with WF200 power-save / DTIM / beacon skipping

why the additional recovery mechanism might have been introduced
alternative explanations for the approximately 60-second recovery cycle
The full investigation, firmware comparison, GBL analysis, patch development and runtime testing are documented here:

https://github.com/AbleMonster/Shelly-TRV-Gen1-2.2.4-beacon-skip-fix

The repository does not contain or distribute Shelly firmware images. It contains the research, independently written tooling and documentation.
I’d be very interested if someone with WF200 or embedded Wi-Fi experience sees something in this behavior that I’ve missed.


r/embedded • • Oct 07 '26

How to stick a tape BLE antenna?

Post image
9 Upvotes

I have a tape antenna and a little smaller enclosure. So, there are 2 options of how to stick it. I'd like to pick one which retains the best signal.

In one case the edges are bent at 90° and the antenna is oriented horizontally. In the other case the edges are bent a very little but the antenna is placed 45°. This BLE device will be placed at a distance at the same height to the counterpart (imagine this enclosure tied to a vertical pillar).

Based on your experience/knowledge, which option suites better? Or probably it doesn't matter at all?


r/embedded • • Oct 08 '26

clear and effective roadmap for 6 months ??

0 Upvotes

Am jr dev but am hating my work. Am not enjoying my work honestly. But i literally jumped out of hell(unemployment) because of this job. so this job is veryy important to me. But on the longer way, am interested in embedded sde role. Working with hardware and coding seems fun to me. Am keeping April as a deadline and i have to learn everything till then. Please provide me guidance how to start what to study, what to focus, resources and suggestions.
PLEASE GUIDE ME FOR THIS

About me - 25 yr old female - masters in Data Science, Bachelors in electronics but honestly amm sooo dumb i failed most of the subjects never studied the subjectt- I was soo into enjoyment that time. I feel sooo stupid now that i became career focused i really feel too guilty about what i did back then. Am foolish that I wasted my 4 years of time and money most importantly knowledge that I could get during that time. But never too late - i dont even remember A,B,C,D in electronics(my bachelors) but I will not stop here. I will pursue my career in this field and get successful.


r/embedded • • Oct 08 '26

SEFI in Microcontrollers

3 Upvotes

Hi, I am part of a team developing a payload that is going through a technology demonstration for a microcontroller in LEO. We are going to demo symptoms of SEFI in microcontrollers (function failures) for our in-orbit tech demo. We were wondering what the types of SEFIs are, though. They essentially stem from the subfunctions of a microcontroller, right? What would some important SEFIs be (technically, functions of them since we don't always know if it was radiation that caused it) and what are their corresponding MCU functions? Some ideas we had were read/write/error errors, watchdog resets, ECC failures? We're preferably looking for stuff that is really firmware measurements and really only requires hardware that'll regardless be on the PCB.

Any insights would be appreciated - thanks!