Tool/software:
Hello
I need to implement stackover flow protection mechanism using ERAD, do we have example for this?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello
I need to implement stackover flow protection mechanism using ERAD, do we have example for this?
Hi Ahashem,
There is no ERAD module on the F280015x device. We have an app note in which you can refer to on how to implement without ERAD.
Best,
Ryan Ma
Hello Ryan,
So the referring to Online Stack Overflow Detection on the TMS320C28x DSP is a mistake in the Safety manual?
Ahashem,
The linked app note is applicable for all C2000 devices, but especially those WITHOUT ERAD HW block.
The C28x HW analysis unit that is mentioned in that app note is available on the F280015x, and does not use ERAD. The SW code that is linked in that app note will work on F280015x as well.
Best,
Matthew
Hello Mettthew,
In the thread Ryan referred to the following app note
is this the correct app note i should follow or I should follow the app note mentioned in the safety manual
Hi Ahashem,
SPRAD47 is a pure software technique to monitor stack usage be calling a function to periodically check how much your “assumed allotted” stack got used.
SPRA820 uses the C28 CPU’s internal ERAD-like block . There are two internal EBC-like modules in the C28. They are called ACU and DCU. This technique is also monitoring a small region at the end of the stack assuming no code will ever be accessing this.
Yes. These are alternatives to use ERAD, but come with limitations. SPRA820 in C28 is almost the same as using ERAD, except that you can only do masked range compares and not magnitude comparison.
In C28, you really cannot cover the case where the Stack-pointer itself got corrupted and the stack access got made to some totally unrelated memory area.
Best,
Ryan Ma