MPU RAM execution disable utilities
Simple utilities to disable execution on certain memory regions.
Simple utilities to disable execution from RAM and other selected memory regions. Useful to protect against code injection attacks.
|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.