2 ms·
tl;dr: The processor protects data accesses to the internal flash while the hardware debugger is connected so people with hardware access can't read out the cod
by ajross 7y ago
tl;dr: The processor protects data accesses to the internal flash while the hardware debugger is connected so people with hardware access can't read out the code and config. But this protection only applies to the data side of the Harvard architecture buses. The instruction bus is used by the hardware to fetch the reset vector on a hardware reset. But the vector table is under software control. So by changing the reset vector to point to an arbitrary address in flash, then resetting the CPU under the debugger, you can get it to load your desired word from memory into the PC.
Pretty clever.