Unable to open gcov related files

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unable to open gcov related files

8,555件の閲覧回数
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,542件の閲覧回数
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,516件の閲覧回数
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,504件の閲覧回数
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,501件の閲覧回数
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,470件の閲覧回数
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,402件の閲覧回数
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.