SLAU962A December 2025 – June 2026 MSPM33C321A , MSPM33C321A-Q1
Swapping of the MAIN regions of the banks within the address space enables two versions of application firmware to be programmed into the device without the firmware needing to know which physical bank it exists in.
Table 5-10 gives an example of the mapping before and after a bank swap is requested for a device with a 1024KB main flash split across 2 banks (512KB each).
| Bank and Region | Address Space Before Swap | Address Space After Swap |
|---|---|---|
| BANK0 MAIN | 0x0000.0000 – 0x0007.FFFF | 0x0008.0000 – 0x000F.FFFF |
| BANK1 MAIN | 0x0008.0000 – 0x000F.FFFF | 0x0000.0000 – 0x0007.FFFF |
After a device reset, the MAIN region of the lower bank is always mapped to the lowest address space. The application software is responsible for determining if a bank address swap is to be applied. The bank address swap control is contained within the SYSCTL module; see the SYSCTL chapter for register and bit definitions. During an address swap, the application software must meet the following constraints: