Detailed Description

MPU basic utilities.

Functions

void sl_mpu_disable_execute (uint32_t address_begin, uint32_t address_end, uint32_t size)
void sl_mpu_disable_execute_from_ram (void)

Function Documentation

void 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.

Note
This function configures the MPU in order to make an address range as non-executable. The size of the memory region must be at lease 32 bytes or bigger.
Parameters
address_begin Beginning of memory segment.
address_end End of memory segment.
size Size of memory segment.

Enables simplified MPU driver. Configures memory address as non-executable.

Definition at line 177 of file sl_mpu.c .

References mpu_compute_region_data() , and mpu_region_size_encode() .

void sl_mpu_disable_execute_from_ram ( void )

Configures internal SRAM as non-executable and enable MPU.

Note
This function configures the MPU in order to make the entire RAM as non-executable (with the exception of the functions marked as ramfunc).

Enables simplified MPU driver. Configures internal SRAM as non-executable.

Definition at line 81 of file sl_mpu.c .

References mpu_compute_region_data() , and mpu_region_size_encode() .