Hi there
My corporation is ready to use the functional safety microprocessor to develop new product, the model of the microprocessor is TMS570LS3137PGE.
Question 1: I’m trying to test the “CPU Self-Test Controller(STC) Module”, but I have many doubts. Now, I want to use the Selt-Test module, I know that I need to save the CPU state. Also, in this manual, I found the “8.8.2 Context Saving” give the register I need to save. the picture follow below.
I also observe that in the sys_selftest.c , it have a function “void selftest(void)”. In my opinion , between the ”USER CODE BEGIN(9)” and “USER CODE END” save the CPU registers, between the ”USER CODE BEGIN(10)” and “USER CODE END” ,putting saved value to the CPU registers. I wonder is it right?
The question is how do I write code between the ”USER CODE BEGIN(9)” and “USER CODE END” and between the ”USER CODE BEGIN(10)” and “USER CODE END” to save the corresponding registers. Can you give me an example?
Question 2: Additional, I find the CCM and STC in the HALCoGen(path:TMS570LS3137PGE—SAFETY INIT—Self test Enable) can’t be run in debug mode, So I switch the mode to “Realse” mode, It still can’t run. How do I run the code with “Enbale CPU Self test” and “Enable CCM Self test”?
I have a request that can you give me your e-mail, so that we can have a convenient communication. Additional, my english is poor, I hope you can understand what I mean.
Thanks in advance. Zhu Zhenglong