Hi,
because BOOT ID and program is in the same Partition, i through flash driver to erase or rewrite the BOOT ID area, and then let sbc reset the MCU, but it generate IVOR1 errors and cannot reset. is there any other way?
Well, if you want to change Boot ID by reprograming the flash al the time, have in mind flash retention (theres limited number of program/erase cycles on flash). Refer to datasheet.
This is really not the way.
usually: You have BOOT ID for bootloader and then if no SW update is available, you will jump to the application.
because i want to next power up the mcu can auto search the 2nd BOOT ID, and run the program, then i do not jump from the 1st BOOT ID
Do you want it just once? When you program micro in your fab? Or you want to do it repeatedly?
regards,
Peter