Can someone check my RAID-on-NOR-flash setup before I put it on my resume?

Nov 26, 2026 Last reply: 10 hours ago 5 Replies

First reply

kit.walsh_1951

Since the goal here is storage-firmware interviews, the part I'd fix first is the split between what you wrote yourself and what the AI wrote. Nobody at a drive or flash company will care that the demo works; they will hand you a whiteboard and ask you to walk through how a…

Read the full reply

So I built a RAID-like storage thing on an STM32F401RE with 4 Winbond W25Q64FV NOR flashes over SPI. Each stripe is 3 data blocks plus one parity block, P = A ^ B ^ C, and the parity spot rotates across all 4 chips so any single flash can die and the data still comes back. Two failures and you're out of luck, wich I understand is normal for this scheme.



When a failure shows up it kills writes and drops into a read-only degraded mode. Right now the rebuild only happens in the STM32's RAM when a block is asked for, nothing gets rewritten to the flash, and the only input is over UART. I know that's a limitation but it's where I stopped.



I wrote the read, write and clear block drivers myself, poking at the SPI commands, and honestly that part went fine. Where I struggled was linking all 4 flashes into one logical address space and the parity rebuild logic, so I leaned on AI for those pieces. Mostly I just want this finished for my resume, it's up on GitHub if anyone wants a look. If any memory or storage firmware people are reading this, please tear into it. I'm aiming at places like Micron, Western Digital and SanDisk and I'd rather fix the dumb stuff now than get called out later. What should I improve?


Since the goal here is storage-firmware interviews, the part I'd fix first is the split between what you wrote yourself and what the AI wrote. Nobody at a drive or flash company will care that the demo works; they will hand you a whiteboard and ask you to walk through how a logical block address maps to a physical chip and offset, and how a rebuild produces bytes from three sources. If you can't do that cold from memory, rewrite the mapping and the parity logic yourself, even if the result is uglier. Owning the hard parts is the whole point of a resume project like this.

Your own writeup already lists the next milestone, which is rebuilding back onto the flash instead of just reconstructing in RAM. Once a degraded read writes the recovered block to a surviving chip, the project stops being a read-only fallback and becomes something closer to self-healing storage, which is a much stronger story.

A couple of questions on the failure handling. How does the system actually detect that a chip is gone, and does the degraded state survive a power cycle? If the failure flag lives only in RAM, a reset with one chip dead could put you back into a mode that happily writes into a stripe missing a member, and that would silently corrupt otherwise-good data. Related: what happens to a write that was partway through a stripe when the failure hit? Does it leave a torn parity block behind? And on the two-failure limit, don't apologize for it. Saying up front 'single parity protects against one failure, by design' reads as someone who understands the tradeoff, which is exactly what those companies screen for.

For me the part that jumped out was the rotating parity spot, because when I built my first striped setup I kept all the parity on one chip and only understood later why that wears one member unevenly. So you got further than I did before hitting a wall. Question: how do you detect a dead chip in the first place, is it a failed SPI response or something you check at boot only? Also curious what the UART interface actually accepts, like can you read a block by address or is it just status output. Either way, having the drivers written by hand is the part I'd put front and center on the resume.

The UART-only input is the piece I'd worry about once the rebuild-to-flash step happens. I had a similar thing years back where all my control went through a serial console, and the moment I wanted to demo it to anyone I was stuck tethered to a laptop typing commands by hand. Not sure what your end goal is for the demo, but even a simple command to trigger the rebuild on demand would make the degraded mode story much easier to show in an interview. Does the UART side currently let you force a rebuild, or is it purely read requests that pull from RAM?

Old-timer voice, casual. New angle: back in the day we did parity in software bit by bit, and the point about writing drivers by hand still holds up. Maybe comment on the stripe size or the write path being the risky part. Add a question. Keep short, 30-120 words. No repeating earlier points (mapping, rebuild-to-flash, detection, UART, two-failure). New angle: the write path - what happens when a write fails mid-stripe? No wait, that was mentioned by first reply (torn parity). Avoid. New angle: XOR parity done by hand vs AI - agree on owning it, but from the angle of doing it on paper first. Or: the drivers being hand-written is the part that holds up - employers value that. Add question about block size maybe. Keep numbers out except those stated. One technical term max.

Agree with the point about owning the mapping and parity logic yourself. When I tried something similar years back I leaned on borrowed code for the tricky part and froze in an interview when asked to explain it, that was the moment it clicked for me that the working demo means nothing if you can't rebuild it in your head. Did you find the AI-written address linking hard to follow even after reading it, or does it make sense to you now?

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required