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.
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