I dont need to ever let it go to user mode
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 dont need to ever let it go to user mode
Steven,
If you use a HalCoGen project template w.o. FreeRTOS you should be at main() in System mode which is essentially user mode registers but with Privilege.
This is what you want actually not svc mode as you might think, because you can insert a SVC call from System mode if you wish but you can't do that from SVC mode itself w.o. nesting.
If you are using one of the FreeRTOS templates then you should create your tasks using the xTaskCreateRestricted API and create the task to run w. Privilege. Otherwise they'll run in user mode. That's just the way that this RTOS is designed and makes good sense but you have to be aware of what its doing and use the appropriate API call for the mode you want to run in.