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.

Compiler/TMS570LS0714: Ti-cgt-arm_16.9.6.LTS is behaving suspiciously, set the endian as big, code of TMS570 doesn’t work

Part Number: TMS570LS0714
Other Parts Discussed in Thread: TI-CGT

Tool/software: TI C/C++ Compiler

Hi team,

Customer used the following FLAGS to do the compile and link, but unfortunately when they set the endian as big, their code doesn’t work, if they set the endian as little, their code works well. After they read the DEVID register, the PLATFORM ID is 5h. They confirm the IC is TMS570, not RM device. Could you help to check the following FLAGS and give some comments? Thanks a lot.

 ---------------------------------------------------

Compiler: ti-cgt-arm_16.9.6.LTS

Device: TMS570LS0714

COMPILER FLAGS:

-c -mv7R4 --code_state=32 --float_support=VFPv3D16 --enum_type=packed --preproc_with_compile -i%V7_LIBDIR% --opt_level=off --endian=big

 

LINKER FLAGS:

--run_linker --heap_size=0x800 --stack_size=0x800

 --search_path="C:\ti\CODECO~1.0\ccsv7\tools\compiler\TI-CGT~4.LTS\lib"

 --search_path=%V7_LIBDIR%

 --reread_libs

 --warn_sections --rom_model -be32

-o %APPLICATION%.out -m %APPLICATION%.map -x linker.cmd

--library=volcano7.lib --library=rtsv7R4_T_be_v3D16_eabi.lib

 --entry_point=_c_int00

 

I am using following compiler and linker flags when compiling in little endian format:

COMPILER FLAGS:

-c -mv7R4 --code_state=32 --float_support=VFPv3D16 --enum_type=packed --preproc_with_compile -i%V7_LIBDIR% --opt_level=off --endian=little

 

LINKER FLAGS:

--run_linker --heap_size=0x800 --stack_size=0x800

 --search_path="C:\ti\CODECO~1.0\ccsv7\tools\compiler\TI-CGT~4.LTS\lib"

 --search_path=%V7_LIBDIR%

 --reread_libs

 --warn_sections --rom_model

-o %APPLICATION%.out -m %APPLICATION%.map -x linker.cmd

--library=volcano7.lib --library=rtsv7R4_T_le_v3D16_eabi.lib

 --entry_point=_c_int00