Hi DSP/BIOS experts,
We have a special application for DSP/BIOS and some questions. We use DSP/BIOS 5.42.1.9.
What we have to do is to make a "non realtime algorithm" realtime capable. We start a thread with an algorithm running. This thread is allocating some memory. We save information about allocation in a structure. Another task controls the algorithm task with a timeout. If a timeout occurs the control task will call TSK_delete() for the algorithm task.
Our idea was to generate a function "algorithm_free" that frees allocated heap memory. It should be called by a system wide delete function like described in the DSP/BIOS manual.
Question: What happens if the algorithm task is in a system function like malloc while deleting? Is it possible? Could the system crash?
Question: Is it common to create realtime behaviour in that way or are there other possibilities to stop the task? The algorithm itself is not able to check the time.
On the other hand we have some global variables in the algorithm class that we have to reinitialize. The variables are in the .cinit section and get initialized at startup time.
Question: Is it possible to reinitialize them by doing the same like the startup code?
Thanks for your answers!
Best regards,
Volker