Hi,
In TMS570 TRM I am seeign some registers/bits are only configurable in privileged mode. Pls let me know how to configure (write) such registers/bits.
Thanks & Regards,
Ajay.
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.
Hi,
In TMS570 TRM I am seeign some registers/bits are only configurable in privileged mode. Pls let me know how to configure (write) such registers/bits.
Thanks & Regards,
Ajay.
Hello Ajay,
The mode referred to here is the CPU (Cortex-R4) operation mode. You find information about CPU operation modes in R4 TRM from ARM at the link below.
http://infocenter.arm.com/help/topic/com.arm.doc.ddi0363e/DDI0363E_cortexr4_r1p3_trm.pdf
Section 2.3 describes different operation modes.
Modes other than User mode are considered Privileged Modes and device registers with Privilege access only can be accessed in these modes.
Regards.
Ajay,
I would like to add the following.
Out of reset, the CPU is in Supervisor mode (SVC) this is a privilege mode.
Access to any peripheral registers (Read or Write) are possible.
Usually in this mode, the device initialization is done.
Once your device is configured, it is recommended to switch the CPU mode to User mode.
User mode is the only mode without privilege.
Access to protected register will cause a data abort only if you try to write to such protected registers. Read access will not cause any abort.
Best Regards,
Jean-Marc