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/C2000WARE: Piccolo Microcontroller - Flash ECC test

Part Number: C2000WARE


Tool/software: Code Composer Studio

Hello,

I am trying to test ECC functionality by introducing bit errors through Code composer Studio.

In CS Studio I am using introduce bit errors option in Linker Output to generate bit errors.

1. As per the Syntax --ecc:data_error=(symbol+offset|address)[,page],bitmask  I have given the location address ( --ecc:data_error=(test_variable+0|0x80000)[,0],1 ) to generate errors but I got below error.

Error 255 and Error 2 with message '0x80000)[' is not recognized as an internal or external command

2. when i give 0x80000,0,1 to generate error at 80000 location i got below error.

error specified at 0x80000 does not lie within an initialized section.

I tried with all the addresses mentioned in the linker command file, but still i am facing above error.

Flash ecc is enabled in my software.

Kindly let me know how to solve above issue.

Let me know if more details required.

Thank you.

Regards,

Bhageerath.

  • Bhageerathreddy Seri said:
    Error 255 and Error 2 with message '0x80000)[' is not recognized as an internal or external command

    In the syntax description the characters (), [], and | are all descriptive.  Do not use them when writing the option parameters.  

    Bhageerathreddy Seri said:
    error specified at 0x80000 does not lie within an initialized section.

    The word address 0x80000 on page 0 must exist, and correspond to an initialized section like .text.  Check the linker map file.  My guess is that it exists on page 1, but not page 0.  

    Thanks and regards,

    -George

  • Hi George,

    The address 0x80000 exists on page 0, so i tried with giving input as 0x80000,0,1 but still getting the same error.

    Error message :: error specified at 0x80000 does not lie within an initialized section.

    I checked the .text section in map file, I found .text.1 section (its on page 0) and respective address is given in introduce bit error section.

    input : 0x080000,0,1
    error : error specified at 0x8217c does not lie within an ECC input or output range null: error specified at 0x8217c does not lie within an ECC input or output range

    Thank you.

    Regards,
    Bhageerath
  • Unfortunately, I am unable to reproduce the problem.  Please submit the linker command file, and a resulting linker map file.  Put them together in one zip file and attach that to your next post.

    Thanks and regards,

    -George

  • cmd_map_files.zipHi George,

    please find the files in the attachments.

    Thank you.

    regards,

    Bhageerath.

  • Bhageerathreddy Seri said:
    The address 0x80000 exists on page 0

    Unfortunately, that is not the case.  Your linker map file shows ...

    MEMORY CONFIGURATION
    
             name            origin    length      used     unused   attr    fill
    ----------------------  --------  ---------  --------  --------  ----  --------
    PAGE 0:
      RAMM0                 000000f5   0000030b  00000000  0000030b  RWIX
      RAMLS0_2              00008000   00001800  00000000  00001800  RWIX
      RAMLS3                00009800   00000800  00000000  00000800  RWIX
      RAMLS4                0000a000   00000800  00000004  000007fc  RWIX
      BOOTLOADERVERSION     00081fff   00000001  00000000  00000001  RWIX
      BEGIN                 00082000   00000002  00000002  00000000  RWIX
    

    This means the addresses 0xa005 to 0x81ffe are not used.  

    Therefore, the linker is correct to say "0x80000 does not lie within an initialized section".

    Thanks and regards,

    -George