Hi,
After following the tutorial on code coverage (https://mcuoneclipse.com/2021/02/01/tutorial-gnu-coverage-with-mcuxpresso-ide/), .gcda files are generated. But, nothing happens when I try to open one of the .gcda files.
However, I am able to open the existing file from the project FRDM-K64F_gcov_bm (https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_gcov....
MCUXpresso IDE version: 11.5.0
Board: NXP K64F
OS: MacOS (BigSur)
Thanks in advance.
Hello
Can you send me some pictures about what happens when you open the file? Any error message could help.
Does the gcov graphical view opens?
Best regards, Daniel.
Everything seems to be okay.
If you clean the project, build it, run the application and finally you try to open the files, does it still doing nothing?
You should see some results or at least the graphical view should open.
Could you please help me confirm that you are not missing any steps of the tutorial?
Best regards, Daniel.
Hi,
Yes, I tried again. Cleaned the project, built it and try to open the file. Still the window does not open. I have attached the .gcda file from my project in earlier response. Just to confirm, you are able to open these files.
Please note, the .gcda file from the blog (https://github.com/ErichStyger/mcuoneclipse/tree/master/Examples/MCUXpresso/FRDM-K64F/FRDM-K64F_gcov...) opens as expected.
Thanks
Probably you will need to install some extra coverage tools to make your project compatible. Please take a look to these websites, here you’ll find some information that can be useful to solve your problem.
https://mcuoneclipse.com/2017/06/18/adding-gnu-coverage-tools-to-eclipse/
https://gcc.gnu.org/onlinedocs/gcc/Gcov.html
Best regards, Daniel.
Thanks for the response.
The IDE already has these packages installed.
But, it finally works now. I had to specify -fprofile-arcs -ftest-coverage in the 'other debugging flags' options. Just clicking the generate gcov information under debug did not work.