6.4.3.6 Updating the Active Partition Using a Bootloader
- Erase and program the entire inactive partition as described in Programming the Entire Inactive Partition (Dual Partition Modes).
- Read the FBTSEQ Configuration register of the active partition.
- Decrement the value by one and write to FBTSEQ of the inactive partition.
- Force a partition swap:
- If CPU stalls are not a concern, perform a device Reset. Since the inactive partition has a lower Boot Sequence Number, it will become the active partition after the Reset.
- If a CPU stall is not acceptable, execute the BOOTSWP instruction.