Tool/software: Code Composer Studio
Hi Experts,
I have observed a problem where I have a program that is compiled in little endianism for the Hercules RM57L8x device. In the CCS setting I have also enabled the hex generation. If I load the .out file in CCS then there is no problem in terms of loading and execution. However, if I load the same program in CCS using the generated hex file then the data is all swapped. For example, a data of 0xAABBCCDD loaded using .out will appear as 0xDDCCBBAA using hex file. The swapping causes the execution to immediately crash.
I have tried the same program but compiled for BE-32 (big endianism) on the TMS570LC43xx device. The TMS570LC43xx and the RM57L8x are the same silicon but the TMS570LC43xx is a big endianism product variant. The program is successfully loaded and executed using either the .out or the .hex file.
The only issue is loading the hex file for a little endianism device.
I have prepared the problem description in more details in the attached document with various screenshots of the flash contents. I'm not sure if I have missed any switches in CCS in order to load the hex file successfully. Please let me know if there is any switches in CCS to do this properly or during hex generation.RM57L8x Program Loading using hex file in CCS.docx
If you need the CCS project to analyze I will also upload the same.