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.

TMS320F28069: .hex flash checksum is different with .out

Part Number: TMS320F28069

Dear all,

I was debugging on F28069 CLA, I used CLAsinPU and CLAcosPU in the CLA code, everything is fine when I use .out file to burn the device. But when I use C2000 hex utility to output the hex file and burn it into the device, the code cannot run as expected. When I use the .out file to program the device, I see the flash checksum is 7818, but when I use the hex file, the flash checksum is 5282. But when I don't use CLAsinPU and CLAcosPU in the CLA code, everything is fine, the flash checksum of .out file and .hex file are the same.

I used the latest CLA_math_Library, and copy the Cla1mathTables from flash to RAM. Can you please tell me what is the problem?

Thanks.

BR,

Facai

  • It may be related to the load and run address of the CLA. But I am not quite sure. If you keep the RUN address of the CLA functions in flash, do you still have the same issue? Do you have any other ram functions in your code?

    Perhaps the flash checksum is not including the CLA code since it is running from RAM. Is this possible? What do you mean by "flash checksum?"

    sal
  • Sal,

    I can calculate the flash checksum in the CCS when I connect the device. The main issue is that every thing of .out file is ok, but when I use C2000 hex utility to turn it into hex file and burn the hex file into the device, the CLA cannot work. Is there any thing i need to take care when i use the hex2000 ?

    Thanks.
  • There is nothing I am aware of, but C2000 engineers are not the experts of the hex utility. Can you post a question on the Tools forum?

    I will see if I can get an expert to respond here.

    sal
  • Facai,

    C2000 Hex utility generates separate hex files for page 0 and page 1. This may be the reason for your issue - not sure.
    You will notice a warning from the hex utility about this when you compile. If you load only one hex file, you will miss the other page's contents in the Flash. To avoid this issue, map all the initialized sections to page 0 in the linker command file.

    Let us know if this does not help.

    Thanks and regards,
    Vamsi
  • Facai,

    Since we did not hear from you in a week, we are closing this post. Hope the info helped you.
    You can open a new thread as needed.

    Thanks and regards,
    Vamsi