6.4.2.2 Selecting a Partition
In Dual Partition modes, there are two methods of determining which partition will be mapped to the active Ppartition and executed: the Boot Sequence Number and the BOOTSWP instruction. The P2ACTIV bit (NVMCON [10]) can be used to determine which physical partition is the active partition. If P2ACTIV = 1, Partition 2 is active; if P2ACTIV = 0, Partition 1 is active.
The BOOTSWP instruction is used to swap active and inactive partitions without a device Reset.