My Journey of Recovering a Framework 13 Mainboard

Over the last couple of years I’ve gotten more and more curious about repairing electronics, and I figured: what better way to learn than by trying to fix computers? So I ordered three Framework mystery boxes:

  1. FW13 small mystery box - came with a screen, a bottom cover and a top cover.
  2. FW13 mainboard (Ryzen 7 7840U) - it powered up and the blink codes said it was posting, but the USB keyboard caps lock test showed no sign of life.
  3. FW16 mainboard - this one just worked! I set it up as my first Proxmox Backup Server, using the 1 TB SSD and one of the two 8 GiB DDR5-4800 sticks from my old gaming laptop. It’s been running great and idles at about 5W. The other 8 GiB stick went to debugging the FW13 board.

The FW16 mainboard running Proxmox Backup Server, sitting bare on top of a dustbin

Yes, that’s a dustbin. It works!

This post is about getting board #2 back to life.

The Framework 13 (Ryzen 7 7840U) mainboard from the mystery box

Where do you even start? Link to heading

I had no idea how people actually debug a board like this. I recorded the blink codes, but they didn’t tell me anything useful beyond “everything is fine”. At the same time, the caps lock test (basically a USB init test) wasn’t working, which meant the board wasn’t actually getting far enough through boot.

Voltages looked fine, so I didn’t think I was dealing with a dead component. I chatted with Claude about it and we landed on two ways in:

  • Closed Case Debugging (CCD) - get UART logs from the CPU and/or the Embedded Controller over USB-C, without opening anything up.
  • Reading the SPI flash chip directly - this is where the BIOS lives. If the firmware is bad, this is where I’d find out.

Getting the hardware together Link to heading

For CCD I needed a male USB-C breakout board. For the SPI flash I needed a WSON 6x8 probe clip. I also needed a faster SPI flash programmer. I had a CH341, but it’s slow, and holding a probe down on a tiny chip for that long is not fun (trust me, it’s even harder with sweaty hands!). It also only comes with a SOIC clip, which can’t grip a WSON chip since it has no legs.

My old CH341A kit: the programmer, a 1.8V adapter and a SOIC-8 clip

So I ordered a bunch of resistors, some USB-C male breakouts, a CH347 programmer and the WSON 6x8 probe from AliExpress.

While it shipped I got a little impatient and tried soldering thin strands of solder wick to the flash chip pins, so I could read it with what I already had. That didn’t work. The strands were too thin, and, well, solder wick does what it’s designed to do: it kept wicking the solder away. I’ve since ordered some enameled copper wire to try next time.

My failed attempt: thin strands of solder wick tacked to the flash chip’s pads

They look connected in the photo, but most of them were just resting on the pads without a real joint.

CCD: no output Link to heading

When everything arrived, I wanted to try CCD first. I really wanted to see the logs and understand what was failing instead of just guessing.

The adapter is pretty simple: a male USB-C breakout with 5.1kΩ pull-downs from CC1 (A5) and CC2 (B5) to GND, which puts the port into debug accessory mode, and 1kΩ series resistors on SBU1 (A8) and SBU2 (B8) for TX and RX. VBUS is left alone.

My DIY CCD adapter: a USB-C male breakout with CC pull-downs and series resistors on the SBU lines

I wired it to my Raspberry Pi Pico running the debugprobe firmware, which gives me a UART bridge, and opened it up in minicom. Nothing. No output at all.

My best guess is that CCD has to be enabled somewhere in the Insyde BIOS first, but I’m not sure yet. It’s on my list to come back to.

Reading the SPI flash Link to heading

The flash chip is a Winbond W25R256JW (32 MiB, 1.8V) in a WSON 8x6 package, marked UC7 on the board. You can even see the empty JSPI header footprint right next to it. Framework leaves it unpopulated to save cost.

The SPI flash chip (UC7) next to the unpopulated JSPI header

With the board unpowered and the RAM and SSD pulled out, I lined up pin 1 on the probe with the dot on the chip and held it down:

Holding the WSON probe down on the flash chip

The full setup: CH347 programmer, ribbon cable and me holding the probe very still

The CH347 and the WSON probe made this way easier. Each read took about 20 seconds at 15MHz, which is easy to hold a probe steady for. I read the chip twice and compared the hashes. If both reads match, you know the probe wasn’t slipping and the dump is good:

sudo flashrom -p ch347_spi -c "W25R256JW" -r dump1.bin --progress
sudo flashrom -p ch347_spi -c "W25R256JW" -r dump2.bin --progress
sha256sum dump1.bin dump2.bin

Detecting the chip, reading it twice and getting matching SHA256 hashes

Both hashes matched! Then I grepped the dump for a version string to see what was on the chip:

strings dump1.bin | grep -iE "0?3\.[0-9]{2}" | head -20

The original dump shows BIOS JFP30.03.03

JFP30.03.03, so the board was on BIOS 3.03. I saved that dump as a backup before touching anything.

Framework doesn’t give you a raw flash image to download. What you get is an update package with a signed .cap capsule inside it. Claude pointed me to Quantum’s Linux fork of InsydeH2O-extractor-2 (Quantum also has a great write-up on unbricking the same board), which pulls the raw image out of the capsule:

git clone https://github.com/quantum5/InsydeH2O-extractor-2.git
cd InsydeH2O-extractor-2
cmake . && make
./extractor Framework_Laptop_13_Ryzen7040_capsule_signed_allsku_3.18.cap
InsydeFlashExtractor v0.32+genBTC
File BIOSFILE.FD successfully extracted
File platforms.ini successfully extracted
File EC.BIN successfully extracted
File CERT.pem successfully extracted

BIOSFILE.FD is the full SPI image, and it should be exactly 33,554,432 bytes (32 MiB, the size of the chip). EC.BIN is the EC firmware, which comes up again later.

Flashing 3.18 Link to heading

I flashed it with flashrom:

sudo flashrom -p ch347_spi -c "W25R256JW" -w BIOSFILE.FD --progress

Flashing BIOSFILE.FD with flashrom and the CH347, finishing with VERIFIED

flashrom verifies the write by itself once it’s done, and it came back VERIFIED. The whole write took 51 seconds. The CH341 would have taken about 5 minutes, which is a long time to hold a probe on a chip!

I put the RAM back in, plugged in power and an HDMI expansion card, and, to my surprise, it booted instantly!

First boot after the flash: bare board with power and HDMI connected

Since there was no battery or internal panel connected, the first thing it did was ask if I wanted to switch to standalone mode, which lets the board boot without them. Yes please!

The BIOS offering to switch to standalone mode since no panel or battery is connected

And then I was in the Insyde BIOS:

The Insyde BIOS home screen on my monitor

BIOS 3.18, the Ryzen 7 7840U with 8 cores / 16 threads, and the 8 GiB stick at 4800 MT/s

The BIOS showed JFP30.03.18. The serial number and UUID showed 1234567890, which is expected after an external flash, since those live on the chip and the clean image doesn’t have them. The clock had also reset to 2023/01/01.

I changed a few settings and kept standalone mode enabled by default. With a working board, I could finally test the rest of the mystery box parts:

  • Bottom cover and top cover - keyboard and touchpad work exactly as expected.

The top cover with the keyboard and touchpad from the mystery box

  • Display - it’s damaged, with stripes and a dead chunk on the right, but it works well enough for debugging. I’m just happy it wasn’t completely dead!

The damaged display, still usable for the BIOS

BIOS info on the damaged display

Moving the backup server Link to heading

The FW16 board had been running my backup server completely bare, which was honestly a disaster waiting to happen. So I moved the Proxmox Backup Server SSD over to the FW13, since it’s actually enclosed now.

Proxmox Backup Server booting on the FW13, on the damaged display

The FW13 in its bottom cover, now living behind my desk as the backup server

One thing I didn’t expect: flashing the BIOS over SPI doesn’t update the EC firmware. So I updated the EC with fwupd from inside PBS afterwards, to keep the EC and BIOS versions consistent.

Gotchas Link to heading

  • The CH347 runs at 1.8V by default. My CH341 ran at 3.3V and needed a 1.8V adapter for this chip, so I assumed the CH347 would too. Putting the 1.8V adapter on the CH347 didn’t work. VCC came out at around 0.8V. Just use the CH347 directly.
  • Solder wick is not wire. It wicks the solder away from the joint, which is the whole point of it. Use thin enameled wire instead.
  • CCD doesn’t seem to work on the stock firmware. I assumed it would work out of the box. It might need to be enabled in the BIOS, but I need to spend more time on this. I’ll update this post if I figure it out.
  • Flashing the BIOS over SPI doesn’t touch the EC. Update the EC separately (I used fwupd) so the two match.
  • flashrom matches two chip definitions (W25Q256JW and W25R256JW) and refuses to continue until you pick one with -c. I used -c "W25R256JW".
  • There’s no raw BIOS download. You have to extract BIOSFILE.FD from Framework’s .cap capsule yourself, and it should be exactly 32 MiB.
  • Back up the original dump first. If the new image doesn’t work, the original is all you have to go back to.

Where things stand Link to heading

ItemStatus
FW13 mainboard✅ Boots on BIOS 3.18 after an external SPI flash
EC firmware✅ Updated via fwupd to match the BIOS
Top/bottom covers, keyboard, touchpad✅ Working
Display⚠️ Damaged, but usable for debugging
CCD / UART logs🔍 No output yet, probably needs enabling
Proxmox Backup Server✅ Moved from the bare FW16 board to the FW13

So what was actually wrong? Link to heading

Honestly, I still don’t fully know. Reflashing fixed it, but I wanted to understand why the old image didn’t boot.

When I dug further into my original 3.03 dump, Claude did some binary analysis on it and pointed out that the A/B copies in the flash didn’t match. As far as I understand it so far, the firmware keeps redundant copies of some of its regions, so one half can act as a fallback if the other goes bad. If the two copies disagree, something was clearly off with that image, which would fit a board that gets through memory training and then just hangs.

I’m still working out how the SPI flash is actually organized: where the PSP (Platform Security Processor) firmware lives, how the PSP finds it, and what runs before the x86 cores even start. On AMD, the PSP boots first and sets things up before the BIOS code runs at all, which is wild to me. I’ll write a separate post once I actually understand it.

What’s next Link to heading

That rabbit hole is exactly where I want to go next. Understanding how the flash is laid out and how the PSP and the rest of silicon init happen is basically the groundwork for coreboot. Now that I have a spare FW16 mainboard lying around, I’m hoping that’s where I can start contributing. Silicon initialization sounds really complex and interesting, and I want to understand what actually happens between power-on and the OS.


References Link to heading