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.
GCOV Integration with ESP - IDF
GCOV Integration with ESP - IDF
- Attachments
-
- Screenshot 2024-09-24 122654.png (261.41 KiB) Viewed 1213 times
Re: [SOLVED] GCOV Integration with ESP - IDF
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.
-> 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: Bing [Bot] and 65 guests