Embedded Systems (@embedsys)

Embedded Systems @embedsys 2026-11-27T08:38:01.000Z

Embedsys Weekly #138 is out πŸ“¬ β†’ vibecoding an FPGA inference chip β†’ x86 quirks, from the 4004 to the 486 β†’ U-Boot verifies one rootfs, linux mounts another β†’ a spinlock on 32-bit ARM β†’ USB 3 and USB 2 on one USB-C port hand-picked, every friday. link below πŸ‘‡ https://t.co/DAHVPbkXSK

24 3 2472 2 2
Embedded Systems @embedsys 2026-11-28T18:49:43.000Z

A 1977 pinball flipper drops its coil current from ~10 A to under 1 A at the top of its swing. No transistor. No firmware. A switch and a second winding do the job. This interactive guide walks through the playfield of Gottlieb's Solar City (1977), an electromechanical table where relays, solenoids and a cam motor run the game. You can click each figure to operate the mechanism, with synthesized relay clicks if you turn the sound on. The flipper is my favourite part. Gottlieb wound two coils on one spool: - power winding, ~1–1.7 Ξ©, snaps the flipper up in about 25 ms at 25V AC - hold winding, ~6–8 Ξ©, put in series when the End-of-Stroke switch opens - the seated steel rod raises the inductive impedance, so the current falls under 1 A Why bother? Players trap the ball by holding a flipper up for 10 to 15 seconds. At 10 A, the coil enamel would melt. The drop targets are clever too. Each one is a physical memory bit: the sunken blade keeps its leaf switch closed, so no relay is needed to remember the hit. If you drive solenoids from an MCU today, the problem is the same: a strong pull to move, a weak one to hold. Part II moves down to the cabinet: transformer, relays, the 1/3-turn score motor and the Bonus Unit running the rules without a microprocessor. A nice follow-up to the relay history from issue #112. Power management for actuators is older than the microcontroller. https://how-old-pinball-machines-work.mattmakai.com/

0 0 97 2 0
Embedded Systems @embedsys 2026-11-28T17:33:00.000Z

Did you miss this article I wrote almost a week ago? It's interesting to read how FreeBSD one of the most stable and reliable OS implemented assertions https://x.com/embedsys/status/2124477778279973303

@embedsys

Do your asserts vanish in release builds? FreeBSD chose the other default in 1999: one-line KASSERTs, armed wherever its developers run the code. 27 years of commits, and what firmware teams can take from it. https://x.com/i/article/2124440774511108096

5 1 385 1 0
@embedsys reposted
Shawn Tan πŸ‡²πŸ‡ΎπŸ˜·πŸŒπŸ‰ @sybreon 2026-11-28T09:44:11.000Z

Another example is to pass the same variable into a function by reference, one const and the other not. E.g. int x; func(&x, &x); Where func(int * a, const int * b);

@embedsys

const in C doesn't promise a constant. It promises that the compiler won't write to the variable for you. Piyush Itankar shows it with two experiments. Assign 'X' to a const char c directly: the compiler refuses. Cast &c to a char * and write through the pointer: it compiles, and c now prints X. His summary: const tells the compiler to generate only loads for that variable, never stores. Whether the memory itself is read-only is another matter. In his test, c sat at a writable address, so the write went through. What I'd add for firmware developers: the C standard makes a write to a const object through a non-const pointer undefined behavior. "It worked on my machine" is the worst possible result here. The article hints at it in its closing puzzle. Remove volatile, rerun, and the same memory location shows two different values. The compiler trusted const and used the value it already knew, while memory said something else. On a microcontroller, where the object lives matters too. A const global often ends up in flash, where that write won't behave like a RAM write. A local const on the stack is plain RAM. Treat const as a contract with the compiler. Real memory protection comes from your linker script and your MPU. https://inpyjama.com/post/c-constant-is-not-constant/

0 1 253 0 0
Embedded Systems @embedsys 2026-11-28T14:10:00.000Z

A 4-20 mA loop can tell your PLC the temperature. It can't tell it the lens is dirty or the sensor is about to fail. Dr. Steve Arar's article on All About Circuits traces how industrial sensor links grew past that limit: 4-20 mA, then HART, fieldbus and IO-Link. The part I liked most is the concrete one. TI's loop-powered RTD transmitter reference design, built around four ICs: - ADS1220 24-bit sigma-delta ADC, measuring the RTD ratiometrically - MSP430G2513 for calibration and PT-100 linearisation from a lookup table - DAC161S997 to set the loop current - TPS7A4901 LDO taking the 10-35 V loop supply down to 3.3 V The whole transmitter runs off the two wires that carry its output. A nice power design exercise for firmware people. Then HART: FSK at 1,200 Hz and 2,200 Hz on top of the loop. The average is zero, so the analog value stays untouched. Clever, but limited to 1,200 baud and mostly point-to-point. Fieldbus brought speed and less cabling, but it was too expensive for a proximity switch. IO-Link (IEC 61131-9) covers that last meter. The "live zero" at 4 mA is still my favourite trick: a broken wire reads 0 mA, never a valid low value. Are you still designing 4-20 mA front ends, or has IO-Link reached your sensors? https://www.allaboutcircuits.com/technical-articles/the-evolution-of-industrial-sensor-communication-from-4-20-ma-to-io-link/

3 0 362 0 0
Embedded Systems @embedsys 2026-11-28T13:57:30.000Z

Read x86 opcodes in octal and the encoding starts to make sense. Mark Hopkins argued it on alt.lang.asm in 1992, and his post lives on as a GitHub gist. His claim: every byte is three octal digits, and each octal group encodes a family of operations, a legacy of the 8080, 8085 and Z80. The arithmetic example is the convincing one. Opcodes 0P0 to 0P5 share one shape, and the middle digit P picks the operator: 0 add, 1 or, 2 adc, 3 sbb 4 and, 5 sub, 6 xor, 7 cmp The byte after the opcode follows the same logic: xrm, where r is the register and x and m the addressing mode. The same P digit comes back in the immediate forms 200, 201 and 203. He doesn't spare Intel: "The authors of 8080 and 8086 references (including Intel's own references) are apparently not aware of the octal nature of their own machines." Bold, but his tables back him up. He admits one exception: the 16 condition codes, which read better in hex. You may never write x86 by hand. You will still read hex dumps, disassembly and fault traces. A mental model that turns a big table into a few rules is worth having. Did you know x86 was octal at heart? https://gist.github.com/seanjensengrey/f971c20d05d4d0efc0781f2f3c0353da

17 3 696 1 0
Embedded Systems @embedsys 2026-11-28T08:46:16.000Z

Every embedded engineer has a capacitor skyscraper somewhere in their past πŸ—οΈ Reply this with your own: stacked parts, dead-bug chips, magnet-wire spaghetti, the bodge that somehow shipped. We'll feature the best ones in the next issue.

@yashiro_ld

ε›žθ·―γ‚¨γƒ³γ‚Έγƒ‹γ‚’γŒδΈ€εΊ¦γ―η΅Œι¨“γ™γ‚‹ζ‰€ζ₯­ https://t.co/EasxHebkbr

7 0 661 0 0
Embedded Systems @embedsys 2026-11-28T08:39:00.000Z

Dalibor FarnΓ½ needed over a year to build a working Nixie tube prototype. This maker gave himself 2 weeks, in his own shop. The last Nixie factories closed in the 80s, and most of the know-how went with them. The first steps of the build are full of good engineering choices: - No glassblowing: a 2 mm thick borosilicate test tube, sealed in a milled aluminum "puck" with vacuum-rated epoxy - Three pins only, one anode and two cathodes: a proof of concept - No solder inside: in pure argon, anything that outgasses poisons the tube, so the pins are spot-welded to the nickel cathodes - Cathodes cut with a 60 W MOPA fiber laser. Many low-power passes left too much heat in the strip; more power at a lower frequency gave a clean cut. I like how he frames every step as a material, energy and geometry problem. It works far beyond lasers. The video is sponsored by the laser maker, so take the tool praise with that in mind. Have you ever tried to build a vacuum tube yourself? https://youtu.be/v1iEvRrmtfM

5 0 709 0 0
Embedded Systems @embedsys 2026-11-28T07:44:16.000Z

This project has blown up over the last few days. Everyone's talking about it, and for good reason. It's wild.

@embedsys

Linux in a browser tab, at a shell in 0.3 s, with a real MMU. unkernel compiles the Linux 7.x kernel itself to WebAssembly (arch/wasm with Sv39 page tables) and emulates only user space: unmodified aarch64 Alpine and Debian binaries. That split is the clever part. Most "Linux in the browser" projects emulate a whole PC (faithful but slow), reimplement the syscalls in a runtime, or drop the MMU and rebuild every program. Here kwemu, a small aarch64 CPU written in Zig and linked into the kernel, walks the kernel's own page tables. A syscall just returns to the kernel, which runs as native wasm. The numbers back it up: getppid in about 170 ns (110 ns native, 1.7 Β΅s under qemu-system), and fork + exit + wait in about 60 Β΅s, against about 70 Β΅s natively. The README is honest about the trade-off. CPU-heavy code stays well behind native, even with a JIT that makes real work 1.6 to 2.3 times faster than the interpreter. There's no strace or gdb yet, and no IPv6. For embedded folks, I see a nice way to poke at a real kernel (/proc, cgroups, ext4, the TCP/IP stack) without any hardware, and a portable sandbox for scripted tests: the CLI reports how the guest ended in its exit code. Would you use it for training or for CI? https://github.com/pithings/unkernel

10 1 734 0 0
Embedded Systems @embedsys 2026-11-28T07:37:45.000Z

const in C doesn't promise a constant. It promises that the compiler won't write to the variable for you. Piyush Itankar shows it with two experiments. Assign 'X' to a const char c directly: the compiler refuses. Cast &c to a char * and write through the pointer: it compiles, and c now prints X. His summary: const tells the compiler to generate only loads for that variable, never stores. Whether the memory itself is read-only is another matter. In his test, c sat at a writable address, so the write went through. What I'd add for firmware developers: the C standard makes a write to a const object through a non-const pointer undefined behavior. "It worked on my machine" is the worst possible result here. The article hints at it in its closing puzzle. Remove volatile, rerun, and the same memory location shows two different values. The compiler trusted const and used the value it already knew, while memory said something else. On a microcontroller, where the object lives matters too. A const global often ends up in flash, where that write won't behave like a RAM write. A local const on the stack is plain RAM. Treat const as a contract with the compiler. Real memory protection comes from your linker script and your MPU. https://inpyjama.com/post/c-constant-is-not-constant/

45 3 2248 6 1
Auto @Autobb_ 2026-11-28T03:27:59.000Z

The open-source community needs verifiable data deletion (and no-copy guarantees) on consumer GPUs. H100+ have confidential computing. Regular 4090/5090s don’t. Until we have open, auditable solutions for that gap, safe non-custodial agent/compute rental stays incomplete.

@embedsys

24 KB. That's the whole operating system, written in pure assembly, and its only job is to run an LLM. It boots in under 100 ms on x86-64 and chats with Qwen3-0.6B. No Linux, no libc, no C, no Rust. If you've ever wondered what an OS really does at boot, the repository is a lovely tour of bare-metal x86: 1. Multiboot 1 entry 2. Switch to 64-bit long mode 3. Identity mapping with 2 MiB huge pages 4. Every core brought up through Local APIC INIT-SIPI-SIPI 5. Drivers for COM1 serial, 80x25 VGA text, a PS/2 keyboard and PIT-calibrated timing All in 4,167 lines of OS code, on top of the shared math and transformer routines. The numbers: 134.9 tokens/s decode with 16 vCPUs under KVM, 23.5 tok/s on one. The output is byte-for-byte identical to the author's Linux build. The author credits the huge pages for beating both that Linux build and llama.cpp. I'd like to see that comparison on more machines before I take it as general. It's not embedded in the MCU sense: it needs AVX2 and a 614 MiB model in RAM. But to learn what happens between power-on and the first prompt, it's hard to beat. Would you read 4,000 lines of assembly to see how an OS boots? https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os

1 0 328 1 1
Embedded Systems @embedsys 2026-11-27T15:18:40.000Z

Matt is this guy that you want to learn from if you are into chip design. Check it out (not affiliate)

@matthewvenn

The Zero to ASIC courses are the best known, highest rated and still the only ones to include a guaranteed tapeout. Making it easier than ever to get started, the courses take you step by step to the moment you’re holding your own custom silicon in the palm of your hand. Over 800 people have taken my courses and I consistently get feedback like this: β€œPeople are very helpful in the course, on the discord server, the community is really awesome. The amount of stuff available to dig into is really amazing.” Kilian β€œThe Zero To ASIC course took me on a fantastic journey from drawing and simulating a MOSFET, formal verification leading up to implementing a custom design with an open PDK and completely open source tools.” Jamie Iles β€œThe course helped me to understand how digital designs are produced in industry. If you're interested in electronics, take this course - I mean it's an amazing course!” Andrey This weekend, start your journey from Zero to ASIC, and save $150 with the code Z2ABF26X

537 21 25036 2 0