Hi,
I was trying to write PINMUX register. But I was told to be a fault operation. The FLTADDR displays the address of the PINMUX register and FLTSTAT shows 2 (User write) in the TYPE field. I doubted that maybe I was in user mode thus can't write PINMUX register. So I want to to the PSR register, which is used to control the operating mode as said in the processor manual. However, I was unable to find such a register in the debug window. Is it possible this version of ARM in omapl138 doesn't have this register?
Since I wrote the PINMUX register right after the emulator was connected to omapl138, so no operating modes was changed after the emulator was connected. This means in the emulation state, our programming is in user mode instead of supervisor mode. So how can I switch to supervisor mode without generating an interrupt? Do I have to modify the boot file that was used by emulator? If I do, what and where is the boot file emulator is using?
Does anybody know this?
Thanks,
Fu