This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

core MPU and peripheral MPU

Hi,

how to understand the peripheral MPU on RM48L, what is the difference between the core MPU and peripheral MPU? (Peripheral central Resource control)

  • Hi Eric,
    Are you talking about the memory protection registers implemented in the PCR module? For example, registers such as PMPORTSETx or PPROTSETx?
    These registers control whether or not the masters can write to the corresponding peripherals or peripheral memories in user mode or privilege mode. For example, you can configure only privilege mode is allowed to write to SPI module. The protection is done at a module granularity. If the SPI is protected in privilege mode then no masters can write to it in user mode. Please note that other than CPU all other masters like DMA, HTU, FTU can only operate in user mode. With the MPU protection configured in the PCR, this means that DMA/HTU/FTU can never write to the SPI.

    For the core MPU I think you are referring to the MPU inside the CPU. You can configure the CPU's MPU to protect memory based on a range of memory addresses. You can configure the core MPU so that the CPU can only 'read' or 'write' or 'read/write' or 'none' to any specified regions.