12.6 Application Transition

After loading and authenticating a valid image, the ROM firmware must perform several additional setup steps before transitioning to the application.

  1. Remap interrupt and exception vectors to the application space addresses.
  2. Set the SEC_BOOT_DONE configuration register bits.
  3. Jump to application code at FW_IMG_DST_ADDR.

The ROM firmware programs the SECBOOTDONE bits to 0b11 when the firmware image is validated and before switching to the application. The BOOTSTATUS bits will be programmed with the firmware at each step and will indicate firmware status while trying to load the firmware.

Table 12-4. BOOT_STATUS[4:2] – Primary Status Codes
CodeValue Description
DSU Mode
TMODE_PE0x02System is in Parallel Execution Mode
TMOD_LOCK_DOWN0x03System is in Test Lock Down Mode; check for secondary status code.
Secure Boot
SYS_FW_AUTH0x04System is currently authenticating the firmware; do nothing.
SYS_FW_LOAD0x05System is loading or programming the firmware image; do nothing.
SYS_APP_MODE0x06System is in application mode; a firmware image is loaded and is running.
SYS_LOCK_DOWN0x07System is Locked down; check secondary status.
Table 12-5. BOOT_STATUS[1:0] – Secondary Status Codes
CodeValue Description
TMOD_LOCK_DOWN
TMOD_8_100x00System is in TMOD 8 or TMOD 10. Proceed with Factory reset.
ERR_BAD_TMOD0x01System does not support this test mode; reset the device.
SYS_LOCK_DOWN
SYS_LD_ERR_FW_AUTH_FAIL0x00Reset the device and program a valid firmware image.
SYS_LD_ERR_NO_FW_IMG0x01Reset the device and program a valid firmware image.