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.

TI ARM Compiler Qualification Kit COVFILE error

I am trying to use the AFETI_CQKIT qualification kit to see if the TI ARM compiler we use passes certification for ISO-26262. Our compiler version is 18.12.2. I downloaded the appropriate version from this page https://www.ti.com/tool/SAFETI_CQKIT and followed the instructions from this file https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-8hBM7URwaD/20.2.x/ti_cgt_arm_18.12.2.LTS_validation_results.pdf. I'm at the part where you run the build with the instrumented compiler. Currently, I'm getting the error:

BullseyeCoverage 8.15.39 error 15: Cannot find /working_dir/test.cov. COVFILE is not set, errno=2. Executable is armcl

I am on linux, and have not run the Windows executable that comes with the kit. I'm not sure if that matters or not. Also, I set the environmental variable "COVFILELIST" per the instructions, so that isn't the problem.

When I set COVFILE to the indicated file (/working_dir/test.cov) and create an empty file, I get the error:

BullseyeCoverage 8.15.39 error 18: Not a BullseyeCoverage file or wrong version: /working_dir/test.cov: ''. Executable is armcl

How can I get through this step of the qualification process?

  • Have you used below instructions?
    https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-8hBM7URwaD/20.2.x/coverage_testing_instructions.pdf 

    If so then could you please send the environment settings for COVFILELIST?

    Something like this:
    COVFILELIST=/home/gmiller/bincov/armcl.cov,/home/gmiller/bincov/armcg.cov,/home/gmiller/bincov/armacpia.cov,/home/gmiller/bincov/armopt.cov,/home/gmiller/bincov/armasm.cov,/home/gmiller/bincov/armlnk.cov,/home/gmiller/bincov/armhex.cov,/home/gmiller/bincov/armofd.cov,/home/gmiller/bincov/armdis.cov,/home/gmiller/bincov/armlibinfo.cov,/home/gmiller/bincov/armabs.cov,/home/gmiller/bincov/armar.cov,/home/gmiller/bincov/armxref.cov,/home/gmiller/bincov/armembed.cov,/home/gmiller/bincov/armpdd.cov,/home/gmiller/bincov/armclist.cov,/home/gmiller/bincov/armnm.cov,/home/gmiller/bincov/armpprof.cov,/home/gmiller/bincov/armadv.cov,/home/gmiller/bincov/armdem.cov,/home/gmiller/bincov/armilk.cov,/home/gmiller/bincov/armstrip.cov

    test.cov is invalid for our use case where we provide *.cov files for each toolchain binary

  • Yes, that's the document I was following. I accidentally linked the wrong document in my original post.

    Running back through the process though, I realized that I wasn't using "export" (on Linux) when setting the COVFILELIST environment variable. Once I set it using:

    export COVFILELIST=/ti-cgt-arm_18.12.2.LTS/bin/armcl.cov,/ti-cgt-arm_18.12.2.LTS/bin/armacpia.cov,/ti-cgt-arm_18.12.2.LTS/bin/armopt.cov,/ti-cgt-arm_18.12.2.LTS/bin/armcg.cov,/ti-cgt-arm_18.12.2.LTS/bin/armasm.cov,/ti-cgt-arm_18.12.2.LTS/bin/armlnk.cov,/ti-cgt-arm_18.12.2.LTS/bin/armilk.cov,/ti-cgt-arm_18.12.2.LTS/bin/armhex.cov,/ti-cgt-arm_18.12.2.LTS/bin/armabs.cov,/ti-cgt-arm_18.12.2.LTS/bin/armadv.cov,/ti-cgt-arm_18.12.2.LTS/bin/armar.cov,/ti-cgt-arm_18.12.2.LTS/bin/armclist.cov,/ti-cgt-arm_18.12.2.LTS/bin/armdem.cov,/ti-cgt-arm_18.12.2.LTS/bin/armdis.cov,/ti-cgt-arm_18.12.2.LTS/bin/armembed.cov,/ti-cgt-arm_18.12.2.LTS/bin/armlibinfo.cov,/ti-cgt-arm_18.12.2.LTS/bin/armnm.cov,/ti-cgt-arm_18.12.2.LTS/bin/armofd.cov,/ti-cgt-arm_18.12.2.LTS/bin/armpdd.cov,/ti-cgt-arm_18.12.2.LTS/bin/armpprof.cov,/ti-cgt-arm_18.12.2.LTS/bin/armstrip.cov,/ti-cgt-arm_18.12.2.LTS/bin/armxref.cov

    The errors were gone after that.