Guide / Tutorial

Can AI Reverse Engineer Real Firmware? Claude vs Cursor on a Multimeter

Can an AI turn a binary and a schematic into working open source firmware from a single request? An EEVblog engineer tried it on a 121GW multimeter with Cursor and Claude. One produced firmware that boots, the other bricked the install.

ClaudeThis guide is about Claude.
Can AI Reverse Engineer Real Firmware? Claude vs Cursor on a Multimeter

An illustrated summary of an EEVblog experiment: one request, a binary and a schematic, and two AI setups trying to write open source firmware for a real multimeter. What booted, what failed and what it means.

Reading map

  • The setup — the meter, how its firmware is installed, and the request.
  • Cursor’s first try — an error, a guess at the cause and the fix.
  • Claude’s run — what it did on its own.
  • Results on the real meter — what worked and what broke.
  • Verdict, caveats and FAQ.

The Setup

The question
The question

The test subject was the 121GW multimeter. Its schematics and its Windows and phone apps are public, but the manufacturer never released the firmware source, so there is no open version. The meter’s firmware is loaded from an SD card: you swap the card, hold the hold and mem buttons while powering on, and a fixed bootloader installs the new file. That makes experiments relatively safe, because the bootloader cannot be overwritten this way.

Inside the meter
Inside the meter

Inside, an STM32 processor drives the LCD segments directly, while a separate multimeter chip, the HY3131, does the actual measuring and has hundreds of registers. The request was short: use the reverse engineering plugin to create new open source firmware for this meter, attach the official binary and the schematic, keep the bootloader, and produce a final binary that duplicates the full functionality. His bar for success was modest: if it boots and does basic measurements, that is a win. A human, he notes, would need weeks or months.

Cursor’s First Try

Cursor's first error
Cursor’s first error

He started in Cursor with Grok 4.7 on high effort. The first run failed with a generic “agent encountered an error”, and a retry failed too. A drop-down message showed the request had been classed as offensive cyber activity before being judged a legitimate open source project on his own hardware. He suspected the words “reverse engineer everything” alarmed the model, while a friend suspected the cloud setup. The fix was to create a local project, install the plugin (which needed Node.js), start a new chat, because old chats do not receive new skills, and invoke the skill by name with a slash command. Cursor then started working, with a head start of roughly forty minutes going to Claude.

Claude’s Run

Claude at work
Claude at work

Claude (Opus 5.5) simply got to work. It analyzed the binary and the schematic, worked out the memory layout and how the HY3131 connects, and showed small previews of what it was reading. It asked permission to add Ghidra, an open source reverse engineering tool developed by the NSA, found that the bootloader occupies the first 24 KB, disassembled the image, matched pins to LCD segments and built a task list. It had not installed the reverse engineering plugin, so it used its own decompilation plus emulation approach and emulated the firmware to test it, since it had no meter to run it on.

In under forty minutes it produced MIT-licensed code, a first binary, a state table and a reverse engineering map. It read the calibration EEPROM and covered 25 modes and 76 ranges, but was missing pulse width, duty cycle, decibels and thermocouple conversion, and had never run on a real meter.

Results on the Real Meter

The binary sizes
The binary sizes
Claude’s firmware Cursor’s firmware
Binary size About 34 KB (official: 142 KB) About 3 KB
Booted Yes No
LCD Correct screen, range switch read, histogram updated Nothing useful
Measuring No: voltage stuck near 400 V, not talking to the HY3131 None: no range connected to the HY3131
Other Beeped in continuity mode, showed temperature overflow with open probes; later all segments lit and the meter went dead Its own report said it was not a working copy and not usable for dangerous voltages
Recovery Official firmware restored Official firmware restored
What worked on Claude's firmware
What worked on Claude’s firmware

Claude’s version loaded, mapped the segments correctly, read the range switch, updated the histogram and made a continuity beep, which he found impressive for one request. But it did not measure anything properly, and then it died. He does not know why; he suspects it wrote to the internal EEPROM and worries about calibration, although the bootloader protects against a real brick. Cursor‘s report said Ghidra had rejected the raw ARM image.

Verdict and Caveats

His verdict
His verdict

His verdict: from one request, a binary and a schematic, Claude got to a point where there is something to work with, which is a large amount of work for half an hour. If he continued the project he would start from Claude’s output; Cursor with the plugin failed completely.

His caveats: many variables differ (model, plugin, setup), Claude ran on medium effort rather than max, experts could likely do better on the first try, and the field changes every week. On usage, Claude used about 5% of its session in ten minutes and 32% by the end, with limits that reset during the day, while Cursor used about 7% and resets monthly, so a runaway loop can burn a whole month.

FAQ

Can AI really write firmware from just a binary and a schematic?

In this test, Claude produced firmware that booted and drove the display, but it could not measure anything properly. It is a starting point, not a finished replacement.

Why did Cursor’s first attempt fail?

The cause is unclear. The request was flagged as offensive cyber activity before being judged legitimate, and the cloud setup was also suspected. A local project, the installed plugin and a new chat fixed the startup, but the output still failed.

Is it safe to flash firmware like this?

The meter’s bootloader sits outside the firmware, so a bad image cannot overwrite it, but untested firmware can misbehave, including corrupting calibration data. It should never be used to measure dangerous voltages.

Was it a fair comparison?

No. The two used different models, tools and setups, Claude ran on medium effort, and it was a single informal attempt by a self-described beginner.

Quick Reference

Question Short answer
What was tested? Writing open source firmware for the 121GW multimeter from a binary and a schematic
Which setup booted? Claude (Opus 5.5) with its own decompile-and-emulate approach
What failed? Cursor with a reverse engineering plugin, and Claude’s measuring and stability
Tool used by Claude Ghidra
Key risk Untested firmware on hardware you rely on

Further Reading and Notes

  • All results are first impressions from one published test, with one request each. Diagrams are original.

This was one informal test by a self-described beginner, with different models, tools and setups, and the resulting firmware was not safe to use. Do not run untested firmware on equipment used to measure dangerous voltages.

Claude GUIDES

More Claude guides

Continue with practical guides about Claude.

View all AI Coding guides