Content originally posted in LPCWare by jdurand on Mon Nov 05 23:48:33 MST 2012
Quote: ToBeFrank
That's not correct. I have my own bootloader that lives in sector 0, and it can reprogram itself using IAP. Did you mean the M0 parts don't have VTOR? Note that they do have SYSMEMREMAP to remap the vector table into RAM, though.
How do you do that? I've asked around and keep getting pointed back to the manual that says:
"The boot sector can not be prepared by this command. "
UM10441, Table 309
and
"The boot sector can not be erased by this command. "
table 311.
Also the app-note on secondary bootloaders the other person mentioned.
BTW: I found my other problem, wasn't the debugger, just one register short on a push. I can now erase and reprogram sectors 1 and up, but can't touch sector 0.