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.

CCS/AWR1642: Why does ARM mode not change?

Part Number: AWR1642

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?

6472.boot.asm1680.Test.zip