Question
Problem with programming protected device
Posted on December 19, 2011 at 00:07
Hello. I have problem with upgrading program in my own bootloader.
When procesor is not read-out protected, everything is going ok (verify says ok). Problem occurs when I set <Read-Out Protection> in RFlasher7 (using Ride7 and RLink programmer). Internal program is erased ok (mass erase) but it stops after first full word programming command (flash controller returns FLASH_FLAG_BANK1_WRPRTERR). In Option Bytes non of the WRP0-WRP3 is set (all have 0xFF). Where is a problem ? And one more guestion: Are option bytes erased during mass erase command ? Should I set up readOutProtection again after mass erase command ?