Crack a Protected MSP430G2230 MCU Flash Memory on an Eight-Pin Package
The hardest part of working on an MSP430G2230 is not the protection scheme, it is the pin count. The part ships in an eight-pin SOIC package with only four general-purpose I/O pins, so there is no room for a four-wire JTAG header without taking functional pins away from the board. Any engineer who wants to crack protected MSP430G2230 MCU flash memory has to solve probe attachment first, and everything else follows.
The pin budget on an eight-pin package decides the method
The MSP430G2230 is a 16 MHz mixed-signal part with 2 KB of flash, 128 bytes of SRAM, a 10-bit 200 ksps ADC with four channels, a universal serial interface for SPI and I2C, a 16-bit Timer_A, and only four I/O pins.
The pin budget on the eight-pin MSP430G2230 then reads like this:
| Pin group | Function | Consequence for recovery work | Note |
|---|---|---|---|
| Two debug pads | Spy-Bi-Wire data and clock | The probe must share the application pins | Two-wire protocol keeps the count low |
| Four I/O pins | Application port | Board state is unknown when the probe is attached | Hold the device in reset while probing |
| Two supply pins | Core and ground | Programming pulses and erase current need headroom | Brownout detector is fitted |
| Reset pin | Reset and NMI input | Also the first thing to control | Determines when the core is running |
A four-wire JTAG interface needs four dedicated lines, and those lines do not exist alongside the supply, the reset pin and the application pins. The two-wire Spy-Bi-Wire protocol is the only debug interface that fits, so its data and clock lines share pads the application already drives. That is the MSP430G2230 Spy-Bi-Wire pin sharing problem.
Crack protected MSP430G2230 MCU flash memory when the pins are shared
Attaching a probe to a board whose electrical state you do not control is the practical hazard of the MSP430G2230 eight pin package access route. The board may be unpowered, powered, held in reset or actively driving the shared pads. Holding the device in reset is the reliable answer, because it removes the application from the pads entirely. Supply headroom is the second question, since erase and program pulses can brown out the rail and abort a transfer part way through. Signal integrity is the third, so repeat reads until two agree, as the MSP430G2312 protected flash memory attack case describes.

Reading the two flash segments in a fixed order
Main flash is divided into 512-byte segments, and the MSP430G2230 flash segment recovery therefore covers two 512-byte blocks in main flash plus the two 128-byte information flash segments at 0x1000 to 0x107F and 0x1080 to 0x10FF, which hold calibration and lock data in TLV format. The order of the read matters: segment zero holds the reset and interrupt vectors at the top of the address space, so that block must be captured first, and the MSP430G2444 reverse engineering write-up applies the same rule. The MSP430G2513 flash unlocking case confirms that a two-wire port stays the practical option once the package is small.
What the four ADC channels do to a faithful dump
The 10-bit converter runs at 200 ksps with an internal reference, sample-and-hold and autoscan across four channels, and the ADC10 four channel calibration constants that describe it live in the information flash alongside the lock data. A dump that stops at the two main flash segments is incomplete in a way that is not obvious: the code loads, the timing is right, and the conversion results are slightly wrong, which reads like a component tolerance problem rather than a firmware one. The MSP430G2230 ADC10 four channel calibration data has to travel with the program image to reproduce the original measurements, a separation the MSP430G2212 flash program reverse reading write-up covers.

When the package has to be opened instead
If the debug port has already been closed by the security fuse, the pin budget stops being the limiting factor, because there is no port left to share. Decapsulating the part gives direct access to the die, and the array structure can be read cell by cell without any cooperation from the board or the probe. That route is slow and the part does not survive it, so it belongs after the software route has been shown to be closed, and this family has no bootstrap loader to try in between, as the MSP430G2252 MCU flash firmware recovery article explains for a part with more room.
To crack protected MSP430G2230 MCU flash memory, treat the eight-pin footprint as part of the problem: hold the core in reset, give the supply enough headroom for programming pulses, capture the vector segment first, and take the information flash with the code so the calibration travels with it. Where that route is blocked, our laboratory decapsulates the part and extracts the firmware from the die.