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.

RTOS/TM4C1294NCPDT: MPU support in TI-RTOS

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello,

I would like to start using MPU to detect/prevent unwanted accesses to specific memory areas; I've seen that TI provides drivers related to MPU peripheral.

Do you know if TI-Rtos supports this feature? I think the best would be that OS is able to change MPU settings dynamically in the scheduler in order to provide accesses privilege depending on the current context. That would make possible to define accessing ranges for each task/interrupt.

Best regards.

Lorenzo

  • Hi,
    I will transfer your question to our TI-RTOS expert. I don't think there is MPU support by the TI-RTOS for Cortex-M4 processors. I will let the expert confirm on this. If that is the case, you will need to use the TivaWare to configure the MPU.
  • Lorenzo,

    There is no SYS/BIOS kernel support for dynamic MPU manipulation to protect an execution context on a Tiva device.

    There is an “MPU” kernel module that is typically used to statically initialize an MPU at boot.  This MPU module is used on other Cortex M4F devices, but hasn’t been tested on the Tiva devices.  Asking around internally, we expect this module should work for Tiva, but this is not certain.  If you want to look at the MPU module you can find a description by opening Bios_APIs.html in the “docs” subdirectory of the kernel installation, and navigating to:  ti.sysbios.family.arm.MPU

    Regards,
    Scott

  • Fyi...I've played with the MPU module on Tiva. I used it to detect stack overflows with good success.

    Todd