GCov User Guide according to mcuexpresso help guideline

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

GCov User Guide according to mcuexpresso help guideline

1,667 Views
HCPATEL99
Contributor II

According to GCov User Guide I have setup for my board IMXRT1170(evk) in MCUXpresso IDE v11.4.0.

But I coudn't generate properly ".gcno"  and ".gcda" files.

Below setting I have done in MCUXpresso.

1) C/C++ Build/ Settings / MCU C Compiler /Debugging/ Generate Gcov information.

2) Added macro "--coverage " C/C++ Build/ Settings /MCU Linker / Miscellaneous.

After this If I build and run the application.

I got below error.

Error Description:

libgcov profiling error:/home/harsiddh/Documents/MCUXpresso_11.4.0_6224/workspace/evkmimxrt1170_mipi_dsi_compliant_test_cm7/Debug/board/pin_mux.gcda:overwriting an existing profile data with a different timestamp

 

Please give your guidance for same.

Thanks In Advance.

 

Labels (1)
0 Kudos
Reply
1 Reply

1,653 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello HCPATEL99,

I couldn’t find mention of the GNU coverage tool gcov on the MCUXpresso documentation. However, there are very good posts on this topic on the MCUonEclipse blog.

https://mcuoneclipse.com/2021/02/01/tutorial-gnu-coverage-with-mcuxpresso-ide/

I see that you have interacted on this blog entries with some replies so I’m adding this link in case it helps another community user.

Regards,
Gustavo

0 Kudos
Reply