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.
I'm am trying to familiarize myself with the STC functions on the R4, and I was wondering if there was any example code for running the self-tests for this board.
Timothy,
Pls have a look at the safety diagnostic library, which should help you get started.
When I look at the list of supported devices, my TMS570LS20x does not appear there.
Timothy,
In the meanwhile, did you have a look at TMS570LS21x which is certainly a cheaper option and well supported too ?
Did you mean 12x? There isn't a 21x in the list. We did some special environmental testing on the TMDX570LS20SUSB kit and we are trying to test after the fact, so we can't switch at this point.
We understand that.
On trying to help another customer, I found something which could help you with a sample stc code for your device.
Please install Hercules safety mcu demos from the below link
http://www.ti.com/tool/hercules_safety_mcu_demos
Once installed, please look at the sample stc codes from the below location as a reference,
<>\ti\Hercules\Hercules Safety MCU Demos\4.0.0\TMS570LS2x_target_sources\demo-app\source\stc.c
The demo hangs when trying to program the binary, so I wasn't able to actually run it. I'm going to try to extricate the test code run it in my own project. It looks like the project itself is looking for an old version of CCS, so the demo probably needs to be rebuilt for the newer tools.
As I mentioned, pls use this as a reference code base and build the routines along side your project.