SLAU893B October 2023 – July 2024 MSPM0C1103 , MSPM0C1103-Q1 , MSPM0C1104 , MSPM0C1104-Q1
Devices that contain more than one bank support swapping of the MAIN regions of the banks within the address space. This mechanism 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 512KB main flash split across 2 banks (256KB each).Bank and Region | Address Space Before Swap | Address Space After Swap |
---|---|---|
BANK0 MAIN | 0x0000.0000 – 0x0003.FFFF | 0x0004.0000 – 0x0007.FFFF |
BANK1 MAIN | 0x0004.0000 – 0x0007.FFFF | 0x0000.0000 – 0x0003.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: