We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi All,
I am hoping to use GCC to compile code for the TMS570LS3137 or TMS570LS43x processor which are big endian Cortex-R4 and Cortex-R5F respectively.
I have found some old instructions here: TMS570LS and GCC compiler - Hercules safety microcontrollers forum - Hercules ︎ safety microcontrollers - TI E2E support forums. I will attempt to follow them today.
Can anyone provide some explanation of how to build GCC including the libraries for big endian? Is there a recent, pre-build set of tools that support these processors?
Thanks!
I've not tested with these devices, but do you not just need to add "-mbig-endian" to the compiler command line?
Which gcc release are you using? Arm provides the below:
https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-rm
You must compile everything with option -mbig-endian; however, if the big endian libraries are not present in the toolchain, then the linker will fail due to the built-in libraries being incompatible with the compiled code.