Unable to open gcov related files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to open gcov related files

4,085 Views
sandra22
Contributor II

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.

0 Kudos
6 Replies

4,072 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

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.

0 Kudos

4,052 Views
sandra22
Contributor II

Hi Daniel,

The gcov window does not open and I do not see any error message also. I have attached two screenshots for your reference. 

Thanks!

0 Kudos

4,040 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

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.

0 Kudos

4,037 Views
sandra22
Contributor II

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

0 Kudos

4,006 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

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.

0 Kudos

3,938 Views
sandra22
Contributor II

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.