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.

RE: Change from the privileged mode to user mode

Other Parts Discussed in Thread: TMS570LS20216

Hi sunil,

I need to switch TMS470 to privilege mode !!

Please reply ASAP

Thanks

  • Hi Madhav,

    I take it that you are using the TMS470 R1B1M MCU in your application, based on your other post. This MCU uses the ARM7TDMI processor. After reset, the CPU is in a supervisor mode, which is a privileged mode. Once you place the CPU in the user mode, you can switch back to a privileged mode only via an exception.

    The easiest way to cause an exception and handle it gracefully is by using a software interrupt (SWI). There is a similar post referring the TMS570LS20216 MCU. You can find it here. The information in that post also applies to the R1B1M MCU (using the SWI instruction).

    Please let me know if this information is not adequate.

    Regards, Sunil

  • Hi Sunil,

    I use SM470 which has same ARM7 core as TMS470. I want to use one sector (top sector) of internal flash memory (f05a) to store my calibration data. I have modified link command file and reserved the top sector for data. I use f05a's device driver library f05a.a to access this flash memory. However this device driver requires no interrupt during it access to internal flash memory time. If I use intrinsic functions to disable and enable interrupt, I have to switch to privileged mode. What is your suggestion for this situation?

    Thank you!

    Lisa