Support for FreeRTOS-MPU functions in ESP32-S3

marcelounisb
Posts: 3
Joined: Wed Aug 23, 2023 2:02 pm

Support for FreeRTOS-MPU functions in ESP32-S3

Postby marcelounisb » Mon Mar 04, 2024 4:25 pm

Hello,

I'm using ESP32-S3 for a project, and the FreeRTOS-MPU features would be of great use.
While trying to use the "xTaskCreateRestricted", however, it appears to be undefined. Looking into the task.c file, this function is indeed not compiled due to the macro portUSING_MPU_WRAPPERS. Does ESP32-S3 support these features? Some extra configuration is needed? If not, is there any other API developed to use the MPU?

Thanks in advance,
Marcelo.

ESP_Sprite
Posts: 9052
Joined: Thu Nov 26, 2015 4:08 am

Re: Support for FreeRTOS-MPU functions in ESP32-S3

Postby ESP_Sprite » Tue Mar 05, 2024 1:51 am

No, we do not support the MPU functionality of FreeRTOS. Some features of the MPU (e.g. no-executable data / non-writable code) are implemented by ESP-IDF itself, but there's no concept of privileged tasks. We have code for privilege separation, but this is still beta-quality and I'm not sure if it compiles for current ESP-IDF versions.

Who is online

Users browsing this forum: Baidu [Spider], cdollar, Google [Bot] and 175 guests