Hi,
I have a LPC1788. I can get into the ISP using the reinvokeisp call from code (am disabling all interrupts before call), and can connect to it using FlashMagic to read the Device Signature etc.
Read Security shows CRP is 2 or 3. I think it's 3.
I had assumed that I could wipe the entire Flash even if it was level 2 or 3 using the "Erase all Flash+Code Rd Prot" option. Or the same option through the menu "Erase Flash" dialog/checkbox. When I run this it says Erase OK, but the device still maintains the same bootloader/protection. After power cycle.
Am I missing something fundamental here assuming I can wipe even a CRP 3 flash from the ISP?
Going behind the scenes to the ISP console, I used these commands which I thought are the closest to erase all flash:
U 23130 (Unlock)
0 = SUCCESS response
E 0 29 (Erase all sectors for 512K Flash)
9 = SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION
Am I trying the wrong command here or does anyone know why this response might be returned?
Thanks
RW
I have a LPC1788. I can get into the ISP using the reinvokeisp call from code (am disabling all interrupts before call), and can connect to it using FlashMagic to read the Device Signature etc.
Read Security shows CRP is 2 or 3. I think it's 3.
I had assumed that I could wipe the entire Flash even if it was level 2 or 3 using the "Erase all Flash+Code Rd Prot" option. Or the same option through the menu "Erase Flash" dialog/checkbox. When I run this it says Erase OK, but the device still maintains the same bootloader/protection. After power cycle.
Am I missing something fundamental here assuming I can wipe even a CRP 3 flash from the ISP?
Going behind the scenes to the ISP console, I used these commands which I thought are the closest to erase all flash:
U 23130 (Unlock)
0 = SUCCESS response
E 0 29 (Erase all sectors for 512K Flash)
9 = SECTOR_NOT_PREPARED_FOR_WRITE_OPERATION
Am I trying the wrong command here or does anyone know why this response might be returned?
Thanks
RW