Note: TI ships the devices with a blank CCFG sector, but possibly with bit patterns from flash production test still in the main sectors.
- Perform SWD connect and reset device (through SWD reset or pin reset) to enter SACI
- Perform SACI_CMD_FLASH_ERASE_CHIP command
- Program in image using a sequence of SACI_CMD_FLASH_PROG_MAIN_SECTOR commands and/or one or more SACI_CMD_FLASH_PROG_MAIN_PIPELINED commands
- Optionally verify that the image is correctly programmed using one or more SACI_CMD_FLASH_VERIFY_MAIN_SECTORS(crc32_calculated_or_extracted_from_image)
- Program in the CCFG sector using SACI_CMD_FLASH_PROG_CCFG_SECTOR. If the user record is in use, either:
- Program the user record now as part of the SACI_CMD_FLASH_PROG_CCFG_SECTOR command
- Program the user record in a separate step using SACI_CMD_FLASH_PROG_CCFG_USER_REC command
- Leave the user record unprogrammed for the later commissioning step
- Program in the SCFG sector using SACI_CMD_FLASH_PROG_SCFG_SECTOR
- Optionally verify the CCFG sector using SACI_CMD_FLASH_VERIFY_CCFG_SECTOR and/or the SCFG sector using SACI_CMD_FLASH_VERIFY_SCFG_SECTOR
- Device can now be reset with SACI_CMD_BLDR_APP_RESET_DEVICE, after which the device boots into application and/or any configured bootloader