nilsener
Joined: 06 Dec 2005 Posts: 59
|
CCSLOAD / ICD-U64, erasing program memory problem |
Posted: Fri Dec 11, 2009 3:21 am |
|
|
Dear,
I try to erase the code protected program memory of a 18F2520 using CCSLOAD V4.022 and the CCS ICD-U64. CCSLOAD message is, that program memory is successfully erased but I found, that it isn't.
The chip didn't start up after erasing the program memory, it seems that it is really erased. But the real reason is, that the configuration fuses are changed (this is ok and comes from erasing the program memory) and this prevents start up. If I read back the configuration fuses I found, that the code protection bits are not reset as they should from erasing the program memory, an indication that no erase was performed. Then I write back ONLY the configuration fuses with MPLAB ICD2 and the chip starts up with the program that originally should be erased by CCSLOAD. So I am 100% sure, that program memory is not erased by CCSLOAD and if program memory is not empty I can not update the program with revised program.
I can not perform a bulk erase of the entire chip because if have to retain my EEPROM data that are code protected. So due to code protection unfortunately I can not read and save EEPROM data before performing a bulk erase of the entire chip. The 18F2520 has the capability to bulk erase the program memory and the EEPROM separately and if CCSLOAD initiates a bulk erase of the program memory it should work, but I don't know what CCSLOAD is doing.
Has anyone seen this problem with CCSLOAD before and maybe solved it?
Best Regards
nilsener |
|