This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to do code coverage analysis on ARM Cortex-M0?

Hello,

we are using ARM core cortex-M0 in our chipset and we would like to enhance our FW code quality by having a view on the code coverage of our test suite.

What are the available tools, hw / SW? what could be the advantage to adopt a M0+ core instead of M0?

Is there also some solution available on HW simulation environment?

Thanks

Parents
  • Hi Alexis,

    Assume you captured the PC value in a file during Verilog simulation, is that correct?

    If you are using DS-5 (or Keil MDK), you can generate a disassembled listing using

    fromelf -c -d -e -s my_test.elf > my_test.lst

    Being a geek, I would create a simple Perl script that go through each line of code, extract the PC value and see if it is covered in the text file containing PC values.

    regards,

    Joseph

Reply
  • Hi Alexis,

    Assume you captured the PC value in a file during Verilog simulation, is that correct?

    If you are using DS-5 (or Keil MDK), you can generate a disassembled listing using

    fromelf -c -d -e -s my_test.elf > my_test.lst

    Being a geek, I would create a simple Perl script that go through each line of code, extract the PC value and see if it is covered in the text file containing PC values.

    regards,

    Joseph

Children