HI All,
I am trying to use FREE RTOS in cortex R5 dual core MCU.
Initially the MCU is in Supervisor mode. But in main function, i want to be a processor mode will be in system mode(0x1F).
But i do not find any instruction how to switch from supervisor mode(0x13) to system mode(0x1F).
Why we need to switch from supervisor mode to system mode if both are working in privilege mode because for the unitization of the RTOS, scheduler should be in system mode.
Can any one please tell me how to switch from supervisor mode to system mode.
I have tried to switch but the system will be reset automatically after change in system mode.
have see the mode in CPSR register.
Thanks and regard
Pankaj verma
The code looks correct to me, but as I said, I don't believe this is really what you want to do...
Your application should run in SYS mode (ideally USR mode), and the RTOS in SVC mode, with independent stacks. The RTOS will manage switching between applications.
Regards. Ronan