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/TMDS570LS31HDK: EEPROM programming in Bank 1 by program running in Bank 0

Part Number: TMDS570LS31HDK
Other Parts Discussed in Thread: HALCOGEN, TMS570LS3137

Tool/software: Code Composer Studio

Which 02.01.01  F021_API library should I be using in my build? The .map shows F021_API_CortexR4_BE.lib. Is this correct?

I cannot find details of these libraries return values e.g.  Fapi_isAddressEEPROM. It returns zero for both good and bad EEPROM addresses.

When attempting to access Bank 1 at 0x180000 in Code Composer I see ????????? and occasional  words. I can see Bank 0 ok. Why is this?

  • Hi Thomas,

    You can use either F021_API_CortexR4_BE.lib or F021_API_CortexR4_BE_V3D16.lib.

    The API usage, errata, and the reference guide are located in the library folder: C:\ti\Hercules\F021 Flash API\02.01.01

    TMS570LS3137 has 3 banks of flash. bank 0 and bank 1 are program flash, and bank 7 is the data flash or EEPROM. To program/erase the EEPROM, I suggest to use the FEE driver generated through the HALCoGen. The FEE user guide is in: C:\ti\Hercules\HALCoGen\v04.07.00\Docs

    Please use CCS to erase the bank1, then check if the content of bank1 is 0xFFFFFFFF.

    CCS: tools\on-chip Flash --> erase the entire flash

  • Now working ok now thanks.