3.6.2 Locking an Executable RAM Region
The BMXIRAMHWR and BMXIRAMLWR bits enable or disable write permissions for the BMXIRAMH and BMXIRAML registers, respectively. These bits can be set/cleared by code. This is a temporary write disable of these registers allowing some protection against unintended writes to these registers.
The BMXIRAMHLK and BMXIRAMLLK bits disable and lock write permissions for the BMXIRAMH and BMXIRAML registers, respectively, until the next Reset. These bits can be set by code but only clear on Reset. Once set, writing to the BMXIRAMx registers until the next Reset locks the current RAM executable range. This can be used to prevent RAM execution until the next Reset or to lock the current code in RAM until the next Reset.
