Tool/software: Code Composer Studio
Hi,
I tried to change boot.asm located C:\ti\ti-cgt-arm_16.9.1.LTS\lib\src\boot.asm from
MRS r0, cpsr BIC r0, r0, #0x1F ; CLEAR MODES ORR r0, r0, #0x10 ; SET USER MODE MSR cpsr_cf, r0
to
MRS r0, cpsr BIC r0, r0, #0x1F ; CLEAR MODES ORR r0, r0, #0x1F ; SET SYSTEM MODE MSR cpsr_cf, r0
but after load, the debugger stops at the beginning of main(), the mode of ARM returns to USER mode.
Why does ARM mode return to the user mode?