Static and Restricted task creation pinned to core

Dario Lobos
Posts: 8
Joined: Wed Sep 10, 2025 6:24 pm

Re: Static and Restricted task creation pinned to core

Postby Dario Lobos » Thu Sep 18, 2025 1:37 pm


The read only is an attribute of FreeRtos x taskcreate restricted. In it can be allocated 3 memory regions with
As is shown in FreeRtos IDF

Systems that include MPU support can alternatively create an
MPU constrained task using xTaskCreateRestricted().
Not sure how clear I must make this: ESP-IDF DOES NOT INCLUDE MPU SUPPORT AND DOES NOT SUPPORT xTaskCreateRestricted().

In general, assume that 1. all memory in the ESP32 is accessible by any task on any core, and 2. if you have multiple tasks (on the same or different cores) you need to implement thread safety (using muxes, semaphores, queues, stream buffers) yourself.

If you actually post what you want to achieve (rather than how you think you can solve it), we can probably help you find some way to do it in a way that aligns with what ESP-IDF expects.
Thanks for your answer the confusion comes because function is in FreeRtos IDF manual. When I started to write the code I will ask any doubt.
Attached is the screenshot of the manual
Attachments
Screenshot_20250918-093301.png
Screenshot_20250918-093301.png (641.54 KiB) Viewed 345 times

MicroController
Posts: 2663
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Static and Restricted task creation pinned to core

Postby MicroController » Thu Sep 18, 2025 3:51 pm

Seems to be a "glitch" in FreeRTOS where this function is unconditionally declared although it shouldn't be (and is, correctly, not actually defined).

Who is online

Users browsing this forum: Applebot, Bing [Bot], coccocbot, Google [Bot], trendictionbot and 4 guests