Hi,
I am trying to generate the Unit tests of an application i have developed to run on some ARM cores. I have defined the UT with unity but now I would like to run them on target and see code coverage.
I am using the VISION SDK from TI and the compiler ARMCL. I have seen, there is a compilation option "--gen_profile_info" to add instrumentation to the code in orden to generate the code coverage report.
I am trying to test this on an example from texas instruments included in the Vision SDK: bsp_examples_i2c
make PLATFORM=tda3xx-evm PROFILE=release BUILD_DEPENDANCY_ALWAYS=yes bsp_examples_i2c
and the compilation is described in the mk-file as follows:
armcl --gen_profile_info -ppd=$(DEPFILE).P $(_CFLAGS) $(INCLUDES) $(CFLAGS_DIROPTS) $(COMPILEMODE) $<
I get no error during compilation but nothing happens. According to the theory with this compilation option a .pdat file shold be generated with the profile info.
Did anyone ever made a code coverage report using the ARMCL compiler and knows how to use this compilation option? Am I missing sth?
Thanks!
Javier