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.

CCS/TMS320F28379D: Fapi_issueProgrammingCommand()function useing Fapi_AutoEccGeneration mode can't generate ecc code in flash

Part Number: TMS320F28379D


Tool/software: Code Composer Studio

Hi all,

I want to use hex file to update program.

I found the Fapi_issueProgrammingCommand()Function useing Fapi_AutoEccGeneration mode have no different resoult of flash program from Fapi_DataOnly mode.

I test the function in Flash Programming Example for F2837xD ,Release Date: Sun Mar 25 13:26:04 CDT 2018    CCSV7

The resoults of the flash program both have no ecc code, it cause my hex file program resoult different from JTAG program resoult,and the core can't run after restart.

I had tried  useing Fapi_calculateEcc() to generate ecc code.But the ecc code is always wrong, because of i don't know how to get the u64Data .

I need your help!

  • On the left is hex file data generated automatically by my project.On the right is the FLASH corresponding data after the project is burned by JTAG.

    The hex file data should be really valid data,and the high 8 bit data of each address should be the check data?

    What kind of check is it?  How i calculate it?

  • Hi

    It seems you are programming only low order bytes from hex file and ignoring high order bytes from i01 hexfile. Hex+i01 are hex files for PAGE 0. If you have any const data in PAGE 1, then you should also program i10+i11 files.

    Edward
  • Hi Edward

    You said it seems like my hex file is wrong.But I don't know how to generate the correct hex file.

    I only enabled hex generation and set the Intel hex output format.

    There are other configurations that need to be set?

    Thanks

    LiBinBin

  • Hi Edward

    I have found the correct configuration method

    Thanks your reply

    LiBinBin