Hello Guys! How can I use FreeRTOS Queue inside __NOINIT section?
Im building ring buffer with Queue and want to keep values after software restart, but how to tell to 'xQueueCreate()' to not "reinit" or not "fill with zeros"?
Just put __NOINIT_ATTR QueueHandle_t queue; not work (maybe because queueCreate()) .
FreeRTOS Queue in __NOINIT
Re: FreeRTOS Queue in __NOINIT
Any one can help me? I need queue inside rtc_ram (NOINIT) to create temp buffers
-
- Posts: 9746
- Joined: Thu Nov 26, 2015 4:08 am
Re: FreeRTOS Queue in __NOINIT
Not sure if that's possible... if I recall my FreeRTOS internals correctly, queues have things like pointers to other FreeRTOS structures inside. Even if you find a way to simply blindly restore the memory used, those pointers may not be valid after you've restarted your program.
Re: FreeRTOS Queue in __NOINIT
Thanks Sprite! Im going to create a ring buffer class and check if it works, instead of using Queues.ESP_Sprite wrote: ↑Tue Feb 01, 2022 1:20 amNot sure if that's possible... if I recall my FreeRTOS internals correctly, queues have things like pointers to other FreeRTOS structures inside. Even if you find a way to simply blindly restore the memory used, those pointers may not be valid after you've restarted your program.
Who is online
Users browsing this forum: No registered users and 83 guests