3.6.1 Defining an Executable RAM Region

The BMXIRAML and BMXIRAMH registers define the area of RAM, where RAM execution is allowed and writing is prohibited. RAM addresses inside of the executable memory range are write-protected to prevent corruption of code in RAM during execution.

To load a new set of code into RAM, first the BMXIRAML and BMXIRAMH registers need to be set in a way that does not cover the RAM being updated. Once the code is loaded into RAM, set the BMXIRAMH and BMXIRAML registers to bound the RAM execution range. Once these registers are set, the CPU can jump into that RAM area for code execution.