如图所示,我在MSP432E401Y的TRM中看到想要修改NVIC Registers中的值,必须要求软件处于privileged mode模式,请问TI的工程师,我如何让软件处于privileged 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.
如图所示,我在MSP432E401Y的TRM中看到想要修改NVIC Registers中的值,必须要求软件处于privileged mode模式,请问TI的工程师,我如何让软件处于privileged mode?
您可以看一下用户指南内的说明
1.4.1 Processor Mode and Privilege Levels for Software Execution 以及 1.4.2 Stacks
MSP432在reset之后就会进入Thread mode,而后可以通过CONTROL register来设置是否是privileged
Thread mode
Used to execute application software. The processor enters thread mode when it comes out of reset.
Handler mode
Used to handle exceptions. When the processor has finished exception processing, it returns to thread mode.
In thread mode, the CONTROL register (see Figure 1-12) controls whether software execution is privileged or unprivileged. In handler mode, software execution is always privileged.