Hi Sheng,
thanks for the suggestion. LDRA offers a trial version, so we should be able to evaluate this tool with the nios 2 eds. Lets see how this plays out.
Still, it would be interesting what tools generally could be used for this job. Interestingly, the gcc compiler offers the ability to profile code-coverage (i think by using the -fprofile-arcs -ftest-coverage flags) together with the gcov tool. This tool is also included in the nios2-eds (nios2-elf-gcov and nios2-elf-gcov-tool). As the necessary .gcda files are created on the target system (i.e. the embedded nios 2 system), this approach does not work out-of-the-box. Is there some way those files can be stored in some kind of embedded file-system (maybe on the connected EPCQ-flash), and then be transferred after the program is run on the target system?
Best regards,
JOSC