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.

flash ecc error injection (--ecc flag)



Hello,

I am trying to use the flash ECC and confirm that I have code to count the occurrence of single and multibit errors. I can step through the checkFlashECC function alright. (in fact I actually only know how to count the multibit errors...for the single bit errors in RAM I was able to use the esmHighInterrupt but I don't think I can for flash or if the FMC has the groups that I want to use to track errors)

I saw on http://processors.wiki.ti.com/index.php/Linker_Generated_ECC#Error_Injection there's a compiler flag of --ecc to purposefully inject single and multibit errors. However, I can't find where in code composer I can add this flag. 

I tried changing the command-line pattern under the ARM compiler in properties to ${command} ${flags} ${inputs} --ecc:data_error=0x100,0x01 however I just get an output saying ">> WARNING: invalid compiler option --ecc:data_error=0x100,0x01 (ignored)"

Is there a way in CCS to usee the --ecc flag that I just haven't found? There are a lot of options in there and perhaps I've glossed over it in my search.

Thanks!

  • Which version of CCS and the TI ARM compiler are you using?

    I think that the --ecc flag flag was only added in a "recent" ARM compiler version, and that the CCS project properties only display the options which are supported by the compiler version selected in the CCS project.

    E.g. with a CCSv6 project using TI ARM compiler v5.1.5 the Linker Output project properties shows options for ecc flags:

    Whereas if the TI Compiler version is changed to v5.0.8 the Linker Output project properties no longer shows the ecc options:

  • Thanks Chester - turns out I just was looking in the wrong part (compiler options instead of linker options). I'm using CCS v5.5 and it's right where you pointed out in the screentshot.