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/TMS320F28075: Generating and Programming ECC on the TMS230F28075 Card Controller

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

Hi,

I wanted to try out the ECC feature on TMS320F28075 using the Card Controller board. But there is a error message when debug the project with the following message,

------------------------------------------------

"C28xx_CPU1: File Loader: Verification failed: Attempted to write past the end of memory at 0x1080000@Program"

"C28xx_CPU1: GEL: File: C:\Users\chongkt\workspace_v7\blinky_cpu01_ECC\CPU1_FLASH\blinky_cpu01_ECC.out: Load failed."

------------------------------------------------

============================================================

Below are the steps I took,

1) I used the "blinky_cpc01" project from C2000Ware -> "C:\ti\c2000\C2000Ware_1_00_01_00\device_support\f2807x\examples\cpu1\blinky\cpu01"

2) I edited the "28075_FLASH_link.cmd" to generate the ECC content

---------------

....

/* Flash sectors */

FLASHA : origin = 0x080002, length = 0x001FFE /* on-chip Flash */

FLASHB : origin = 0x082000, length = 0x002000 /* on-chip Flash */

...

...

ECC_FLASHA : origin = 0x01080000,length = 0x000400, ECC={ input_range=FLASHA

algorithm=F021 }

ECC_FLASHB : origin = 0x01080400,length = 0x000400, ECC={ input_range=FLASHB

algorithm=F021 }

......

---------------------

3) Build Project and then go to Run->Debug to program and run the code

4) CCS prompted not able to complete the programming of code with the following message,

"C28xx_CPU1: File Loader: Verification failed: Attempted to write past the end of memory at 0x1080000@Program"

"C28xx_CPU1: GEL: File: C:\Users\chongkt\workspace_v7\blinky_cpu01_ECC\CPU1_FLASH\blinky_cpu01_ECC.out: Load failed."

Is there any step missing or incorrect, please advise, thank you very much.

Best Regards

MC

 

 

  • Mathew,

    Please use AutoEccGeneration option in the CCS On-chip Flash Plugin GUI to program the ECC.  

    We decided to support ECC linker options only for F280049x and onwards.  

    F28M35x, F28M36x, F2837xD, F2837xS and F2807x devices does not support this feature.  Documentation updates are in progress to reflect this.

    Thanks and regards,
    Vamsi

  • Hi Vamsi,


    As regards to the"AutoECCGeneration" option, is this option being default and can be found from,
    1) Right Click on project folder->Properties, under the "Debug"->"Flash Settings" ===> "Auto ECC Generation" to be checked?

    I noted that this option is default to enabled.


    Question,
    1) so if this option is checked, can I say that user NEED NOT change anything on the "28075_FLASH_Ink.cmd" file?


    My issue is that CCS cannot complete the process of programming the needed program onto the hardware and the error messages are
    C28xx_CPU1: File Loader: Verification failed: Attempted to write past the end of memory at 0x1080000@Program
    C28xx_CPU1: GEL: File: C:\Users\chongkt\workspace_v7\blinky_cpu01_ECC\CPU1_FLASH\blinky_cpu01_ECC.out: Load failed.


    Do you have any document or example on ECC to share with me?

    Thank you.

    Regards
    Matthew
  • Matthew,

    You can find the AutoEccGeneration option in CCS debug view -> Tools -> On-Chip Flash GUI.  It is enabled by default.

    If this option is used for programming ECC, you don't need to make any changes to the linker command file.

    You can find documentation about ECC in TRM (see section 2.12.10 Error Correction Code (ECC) Protection in http://www.ti.com/lit/ug/spruhm9c/spruhm9c.pdfand Flash API reference guide (C2000Ware_1_00_01_00\libraries\flash_api\f2807x\docs).

    Thanks and regards,

    Vamsi