Other Parts Discussed in Thread: AM3359
We are trying to make booting from an SPI Flash memory functional without the GEL file on DRA604. The project we are experimenting with was created as an empty C project in the CCSv5.5 with AM3359 selected as the target platform. The SPI did not work out-of-the-box so we are loading the executable into SRAM using a J-Link Base JTAG probe.
The problem seems to be that the default state of the Thumb bit in CPSR register is set to 1, while the first instruction of the resulting application is a 32-bit instruction (read of CPSR, see the attached disassembly screenshot). The code works properly when we manually change the Thumb bit to 0.
The compiler parameters set by the project are the following:
-mv7A8 --code_state=16 --abi=eabi -me --include_path="C:/ti/ccsv5/tools/compiler/arm_5.1.1/include" -g --define=am3359 --diag_warning=225 --display_error_number --diag_wrap=off
We tried both --code_state=16 and --code_state=32 with no luck.
Is there any way to change the default state of the Thumb bit, or is there an option to compile in a way that the CPSR read instruction would work under the Thumb mode ?

