Best practice for Memory management and RTOS tasks
Posted: Thu Apr 29, 2021 4:23 pm
Hi everyone,
I am writing an app that is highly dependent on the big objects/classes stored in the external PS-RAM.
Since I can't have the classes as a static variable so I need to find the best way to pass-in the object.
my first thought was to make a static pointer pointing to the class in the PS-RAM and then use inside the TaskFunction or it would be much best if I pass the pointer to the object when creating the TaskHandle (xTaskCreatePinnedToCore)?
thanks,
I am writing an app that is highly dependent on the big objects/classes stored in the external PS-RAM.
Since I can't have the classes as a static variable so I need to find the best way to pass-in the object.
my first thought was to make a static pointer pointing to the class in the PS-RAM and then use inside the TaskFunction or it would be much best if I pass the pointer to the object when creating the TaskHandle (xTaskCreatePinnedToCore)?
thanks,