GCOV Integration with ESP - IDF

Dakshk
Posts: 5
Joined: Tue May 21, 2024 11:02 am

GCOV Integration with ESP - IDF

Postby Dakshk » Tue Sep 24, 2024 7:14 am

Hello Guys, I am trying to generate gcov files, but not able to do so I am using ESP32c3 and ESP32-Wroom-32 both.

With the wroom board I have attached external Jlink and running openocd commands given in the example named "gcov", but getting error as shown in the image. If anybody has solved the issue, please respond.
Attachments
Screenshot 2024-09-24 122654.png
Screenshot 2024-09-24 122654.png (261.41 KiB) Viewed 1217 times

Dakshk
Posts: 5
Joined: Tue May 21, 2024 11:02 am

Re: [SOLVED] GCOV Integration with ESP - IDF

Postby Dakshk » Sat Sep 28, 2024 8:41 am

I managed to generate Coverage report for ESP32C3 by using in-built JTAG and This is how did it

-> Connect USB pins D+ and D- i.e. GPIO 19,18 with the Host system
-> Start a debugging session, in my case I used ESP-IDE
-> Run telnet session in another IDF terminal in the project folder of with you want the report
-> Execute "esp gcov dump" OR "esp gcov" command as given in example named "gcov"
-> Generate coverage report using gcovr tool

As there are issues in ESP-IDE I was not able to start debugging session in first place, also you will need to install gcovr tool, you can do it by running "pip install gcovr" command.
And you will have html file created in your build/coveragereport/ directory.

Who is online

Users browsing this forum: Google [Bot] and 59 guests