CMake Error: The current CMakeCache.txt directory #### is different than the directory #### CMake has a cache which will have wrong paths after you move or rename a project. To clear it in Visual Studio Code: Settings icon > Command Pallet > Enter “CMake:Delete Cache and Reconfigure”
All posts by
Flash Memory
Flash memory size The RP2040 auto-detects its flash memory size on powerup (assuming you are using an IC that supports the method it uses). Max flash size: 16MB (128Mbit) Using flash memory for data storage The entire memory is readable and writable from code. Your program is stored from address 0x00000000. The free area after […]
Heartbeat timer
A non-irq based heartbeat timer In your main loop Heartbeat timer function
.Timers general
Resources https://raspberrypi.github.io/pico-sdk-doxygen/group__hardware__timer.html
IO Pins Geneal
IO Pin documentation https://raspberrypi.github.io/pico-sdk-doxygen/group__hardware__gpio.html Inputs Outputs
Moving or renaming a project
CMake has a cache which will have wrong paths after you move or rename a project. To clear it in Visual Studio Code: Settings icon > Command Pallet > Enter “CMake:Delete Cache and Reconfigure”
Picoprobe debugging using another Pico
Guides The RPi page on how to do it is here. The guide is in “Appendix A: Using Picoprobe” of the Pico Getting Started Guide. Installing OpenOCD and Picoprobe on Windows You can follow the guide, or you can use the pico-setup-windows tool kindly created by ndabas below which offers an automatic way to do […]
Reset Flash memory
The reset the RP2040 flah memory see this page here.
.Pico boards general
Product Information https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html
Programming Setup
Special Pins Boot Jumper / Flash CS Pin Pull up resistor to +3.3V is not normally needed. RP2040 has built in pull up, but included as DNF as it is possible that different flash memory IC’s may have an issue with it floating at powerup before the RP2040 pull up is engaged. If needed then […]