RAM execution disable
RAM execution disable utilities can be used to disable execution from RAM and other selected memory regions.
RAM execution disable utilities are useful to protect against code injection attacks. These utilities make use of MPU to disable execution from RAM and other selected memory regions.
|Configures internal SRAM as non-executable and enable MPU. |
|sl_status_t||sl_mpu_disable_execute (uint32_t address_begin, uint32_t address_end, uint32_t size)|
|Configures an address range as non-executable and enable MPU. |
Configures internal SRAM as non-executable and enable MPU.
- This function configures the MPU in order to make the entire RAM as non-executable (with the exception of the functions marked as ramfunc).
Configures an address range as non-executable and enable MPU.
- Configures a MPU region in order to make an address range as non-executable. The memory region must have a size of at least 32 bytes.
Beginning of memory segment.
End of memory segment.
Size of memory segment.
- 0 if successful. Error code otherwise.