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: 9772
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.

ClockToshi
Posts: 9
Joined: Thu Nov 16, 2017 9:09 pm

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

Postby ClockToshi » Mon Sep 23, 2024 7:52 pm

@ESP_Sprite

Do you know if there is currently a stable/non experimental/supported way on esp32-s3 to take advantage of the separation features?

For example, say I want to run a complicated parser isolated, at the moment all I could find was the esp privilege Separation framework which has not been updated for a couple of years.

Is the separated flash partition for the code a requirement for an separated task?

thank you

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

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

Postby ESP_Sprite » Tue Sep 24, 2024 2:42 am

ClockToshi wrote:
Mon Sep 23, 2024 7:52 pm
Do you know if there is currently a stable/non experimental/supported way on esp32-s3 to take advantage of the separation features?
Not to my knowledge.

Who is online

Users browsing this forum: No registered users and 81 guests