Part Number: HERCULES_SAFETY_MCU_DEMOS
Hi All,
I am working on SafeTI diagnostic library with RTOS. The MCU we are using is TMS570LC43xx .
I am facing some problem that
Before main function (" _c_int00() and afterSTC()") all the initialization done in Supervisor mode "ARM_MODE_SVC 0x13". But for initialization of RTOS schedular we need to run processor in system mode "ARM_MODE_SYS 0x1F".
I have tried to change from SVC to system mode but the code is going to reset SWRST. i have tried to change in SL_Init_R5Registers(); and SL_Init_StackPointers(); also. but no result.
Q1. How we can change mode from supervisor mode "ARM_MODE_SVC 0x13" to system mode "ARM_MODE_SYS 0x1F".
Q2. After switching from supervisor mode "ARM_MODE_SVC 0x13" to system mode "ARM_MODE_SYS 0x1F", can we run all the SL test cases in TASK?
Thanks and regard
Pankaj Verma