6.4.3.6 Updating the Active Partition Using a Bootloader

  1. Erase and program the entire inactive partition as described in Programming the Entire Inactive Partition (Dual Partition Modes).
  2. Read the FBTSEQ Configuration register of the active partition.
  3. Decrement the value by one and write to FBTSEQ of the inactive partition.
  4. Force a partition swap:
    1. 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.
    2. If a CPU stall is not acceptable, execute the BOOTSWP instruction.