Unable to open gcov related files

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Unable to open gcov related files

8,527 次查看
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 项奖励
回复
6 回复数

8,514 次查看
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 项奖励
回复

8,488 次查看
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 项奖励
回复

8,476 次查看
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 项奖励
回复

8,473 次查看
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 项奖励
回复

8,442 次查看
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 项奖励
回复

8,374 次查看
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.