adding information about error protection on flash

redbeard 2017-04-10 18:43:18 -07:00
parent 570b70d609
commit 07acc85baf

@ -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`
* `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
```