diff --git a/Debricking-Proxmark3.md b/Debricking-Proxmark3.md index 6505cec..448e57e 100644 --- a/Debricking-Proxmark3.md +++ b/Debricking-Proxmark3.md @@ -99,4 +99,26 @@ and you will get OpenOCD prompt ####Write the new firmware Assuming your in the root of the Proxmark source code repository, and have already compiled the firmware issuing the make command. * `flash write_image ./armsrc/obj/fullimage.elf` -* `flash write_image ./bootrom/obj/bootrom.elf` \ No newline at end of file +* `flash write_image ./bootrom/obj/bootrom.elf` + +####Troubleshooting +I can't overwrite my flash and get the error "Lock Error Bit Detected": +``` +> flash erase_sector 0 0 15 +status register: 0x1048b205 +Lock Error Bit Detected, Operation Abort +failed erasing sectors 0 to 15 +``` + +In this case you need to clear the protection on that bank (or banks). This can be done as follows: + +``` +flash protect 0 0 15 off +flash protect 1 0 15 off +``` + +When successful, you should see a message as follows: +``` +> flash protect 0 0 15 off +cleared protection for sectors 0 through 15 on flash bank 0 +```