Other Parts Discussed in Thread: CONTROLSUITE, UNIFLASH
My problem is basically the same with this post, which is secure bootloader that can update the code in the secure flash memory. When the bootloader trys to update the code, it seems that CPU resets and jumps to the pointed application address from bootloader.
I followed the solution that is posted in the link above (the code below), but I could not update FLSEM register value to make semaphore enabling for zone 1.
DcsmCommonRegs.FLSEM.all = 0xA501; // 0xA502 for Zone2
I also tried to update the FLSEM register while I was debugging with CCS manually, but it also failed to update the FLSEM register value.
In summary, I have two questions:
- To update FLSEM register, is there any other step to follow before updating the register?
- Resetting CPU is expected result when semaphore is not enabled, and it will fix the issue by enabling semaphore?
Thanks,
Justin