Other Parts Discussed in Thread: CONTROLSUITE
Hi, here is my understanding of the flow after a device is reset.
1. All the things a device do after reset is determined by the reset type, bootmode select pin and related registers, right? And it's all written in boot ROM and cannot be modified, right? For example, after reset, the device will always fetch the instruction resides in 0x3FFFC0, not anywhere else and the instruction resides in 0x3FFFC0 can't be modified, right?
2. The code in the BOOTROM will detect the reset source. If it's POR, it will "adjust clock divider to /1"-"device configuration"-" RAM initialization" - "continue default boot flow". So the code in BOOTROM is just like a "switch case" or "if else", right?
3. "Default boot flow" starts from detecting if the emulator is connected, right? If it's stand-alone boot and the boot mode is boot to flash, then the device will go to the main() code reside in flash, right? If it's sci boot mode then it will configure the sci peripheral, load code to flash, and then go to the main() code just loaded in flash, right?
4. For the whole process from reset to main() code start, We can only choose, but not modify, right?
5. Is the code in Boot ROM visible?