Hi! I want to improve debugging of rpi pico and try to enable Profiling. Something going wrong and build failed. VGDB tell me that some files is missing, but they don’t.
../../../pico-sdk/src/rp2_common/hardware_timer/timer.c:8:10: fatal error: hardware/irq.h: No such file or directory
8 | #include “hardware/irq.h”
C:/Users/kochnevsv/AppData/Local/VisualGDB/EmbeddedEFPs/Profiler/ProfilerDriver_RP2040.cpp:3:10: fatal error: pico/stdio/driver.h: No such file or directory
3 | #include “pico/stdio/driver.h”
Then i turn on Chronometer, but it always show me 0sec.
Thanks for confirming your license key. We have linked it to your forum profile.
Profiling the PicoSDK-based projects indeed requires a bit of additional setup. We have just published a tutorial explaining everything step-by-step. Feel free to follow it and use it as a working reference. Please make sure you are using the latest VisualGDB 5.6 release (not the Beta).
The Chronometer relies on the DWT cycle counter in order to determine how much time has passed between events. It will indeed not work if any part of your code (e.g. the instrumenting profiler) also uses it. You can find out the exact GDB commands used by VisualGDB to read and reset the cycle counter by checking the C:\Program Files (x86)\Sysprogs\VisualGDB\TimestampProviders\DWT.xml file.
This reply was modified 1 month, 1 week ago by support.
I’m having trouble installing version 1.3.0 of SDK. There is no choise in drop down menu on tab “Pre-package Release” and “Git Tag”. I downloaded it manualy and tried to add from “Existing Checkout”. The next tab “Project Sample” does not contain any examples and i can’t continue…