Skip to content

A CLion template project for pico board (rp2040) with debugging

License

Notifications You must be signed in to change notification settings

artronics/pico-clion-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLion Raspberry Pi pico template project

Project template for pico board. It uses picoprobe and openocd for debugging.

Getting started

Follow pico getting started guide. Appendix A of this pdf contains instructions and wiring to get started with picoprobe.

Open this project using CLion. Add an PICO_SDK_PATH=<path-to-sdk> to your cmake profile: cmake profile

Your CLion project is now ready for use. You can build the project and upload the generated file. If you followed the picoprobe guide you can start debugging but, first you need to create an openocd config:

Debugging

openocd OpenOCD plugin, only accepts one single file. This means we can't add separate files for board and interface like what you see in the pico documentation. The solution to this is to create a custom file and then source all required files. openocd_pico.cfg file serves as our config.

This repository contains the svd file. You can use this file to see the current value of registers: svd

To get serial console, you need to first install "Serial Monitor" plugin and then create a new connection: serial config output: serial console

About

A CLion template project for pico board (rp2040) with debugging

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published