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/RM42L432: When using linker generated ECC, compilation of program failed.

Part Number: RM42L432

Tool/software: Code Composer Studio

Hello,

I am working on the platform of RM42L432, and CCS7.1.0.

As the following website described, I compiled program and the following error occured.

processors.wiki.ti.com/.../Linker_Generated_ECC

Please help and how to solve this problem. Thanks.

  • sorry, attach the error message again.

    <linking>

    error #10099-D:program will not fit into available memory.placement with alignment fails for section ".ecc2"

    error #10010:errors encountered during linking: "*.out"not built.

  • Hello Lilly,

    The compiler included with CCS now calculates the ECC as part of the compiler process. There is no need to use the linker command file efine the generation of ECC. If you would like to continue with the linker ECC generation method, you will need to disable ECC generation in the compiler options/setup with CCS.
  • Thanks for your  reply. Yes, I indeed want to use the linker command file to enable the generation of ECC and have already disable ECC generation in CCS. But the linking error still occured. So for RM42L432 is there example of linker command file or how to clear the following error? By the way our system is using the safeTI of V2.3.1.

    <linking>

    error #10099-D:program will not fit into available memory.placement with alignment fails for section ".ecc2"

    error #10010:errors encountered during linking: "*.out"not built

  • Hi Lily,

    Can you post your linker command file so I can have a look at it?
  • Yes, the following attached file is linker command file.Please check.

    https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/312/5732.SL_5F00_RM42L432_5F00_NoOS_5F00_sys_5F00_link.7z

  • Hello Lilly,

    I assume you are still experiencing this issue. I will review your settings on Monday and get back with you. My apologies for the delayed response.
  • Hello Lilly,

    I wanted to update you that I am still looking into this issue and have not identified the root cause of the issue. I will update when I have more information.
  • Lilly,

    The issue is the size you have specified for the FEE section. It must be a multiple of 8.

    In your case, you have defined FEE as such:

    FEE (R)    : origin=0xF0200000 length=0x00000064 vfill=0xFFFFFFFF /* For FEE testing, Valid only for sample

    And the subsequent ECC generation command as such:

    ECC_FLA7(R)         : origin=0xF0100000 length=(size(FEE) >> 3) ECC={algorithm=algoR4F021, input_range=FEE}

    the expression size(FEE)>>3 will calculate to 0xC which is 1 byte short of what it should be due to the fact the size is not a multiple of 8.

    Update the FEE definition as below and everything should be fine:

    FEE (R)    : origin=0xF0200000 length=0x00000068 vfill=0xFFFFFFFF /* For FEE testing, Valid only for sample

  • Hello Chuck,
    Thank you for your reply. I will try according to your answer.
    Thanks and regards,
    Lily