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/RM57L843: RM57 / TMS570LC43 - correct Memory settings in CCS and HALCoGen linker file

Part Number: RM57L843
Other Parts Discussed in Thread: HALCOGEN

Tool/software: Code Composer Studio

What are the edits you have to perform

  • in the HALCoGen generated linker cmd file

in CCS in

  • Arm Linker -> Advanced Options -> Linker Output -> Control wether ECC generation is on or off (and related entries on that tab)
  • Debug -> Flash settings

To have a program that loads and resets without the ERR pin being set?

I have CCS V 10, TI Compiler 20.2.1 LTS,  HalCoGen 04.07.01 and a LaunchPad XL2 (both a RM57 and a TMS570LC43 one) with XDS110 debugger on board

  • Jan Cumps said:
    To have a program that loads and resets without the ERR pin being set?

    Can you check what the ESM indicates is the cause of the error?

    In the past had the issues in Bus ECC ESM error signaled on TMS570LC4357 with cache enabled when read from a partially programmed cache line in flash, but I haven't tried recently with more recent HalCoGen or CCS versions.

  • It's related to the ECC. And specific to TMS570LC43 and RM57 with their specific ECC implementation.

    I can avoid it by

    • applying these changes on the command file (but these instructions are flagged obsolete and will be deleted end this year, with no pointer to active document):
    • set CCS Arm Linker -> Advanced Options -> Linker Output -> Control whether ECC generation... to ON
    • set CCS Debug -> Flash Settings -> Auto ECC Generation to OFF
    • Set ...... Align program segents to 64-bit .... to ON
    • Set .... Flash Verification Settings to None

    I'd like to see the "official" :) instructions though. I don't know if I'm doing this correctly or circumvent checks.

  • Hi Jan,

    These are the correct steps to use linker-generated ECC. There is a user guide for the linker (SPNU118) that describes this functionality in more details.

    Please also ensure that the main RAM is initialized as the first operation after power-up (before calling any function that requires context save/restore).

    The wiki pages are being retired by the end of this year, and we are gradually moving the relevant pages to application notes and/or code examples. I will add this one to the list as well.