I need some help, please.
I'm trying to setup Visual Studio Code on my Raspberry Pi 4. I'd like to be able to use Code to program my Pico & other RP2040 boards using C/C++.
I successfully installed the Pico SDK & I can use Geany & a Terminal window to program my Pico using a Raspberry Pi Debug Probe. I used these commands:
I can't get VS Code to work though....
I scanned the setup for kits using <CTRL + SHIFT + P> That yeilds:
Successfully loaded 2 kits from /home/pi/.local/share/CMakeTools/cmake-tools-kits.json
I don't know what's going on.... or what to do next.
VS Code shows 3 problems:
1. #include errors detected based on information provided by the configurationProvider setting"
2. "cannot ope source file "pico/version.h" (dependency of "pico/stdlib.h")
3. "CMake Error at CMakeLists.txt:9 (pico_add_extra_outputs) Unkonwn CMake command "pico_add_extra_outputs"
For error #1 I can see the configurationProvider setting in the C/C++ Configurations. It shows "ms-vscode.cmake-tools"
--should this be different since I'm using Raspberry Pi OS?
For error #2 I don't know what to do. The blink project is in the folder
/home/pi/pico/pico-examples
When I use Geany & Terminal the compiler has no trouble finding pico/stdlib.h
Suggestions?
For error #3 I don't know what's going on.
I tried attaching screenshots but got an error stating the files are too big.... Weird -- they are only 540KB....
If someone can help me setup VS Code it will be greatly appreciated!
I'm trying to setup Visual Studio Code on my Raspberry Pi 4. I'd like to be able to use Code to program my Pico & other RP2040 boards using C/C++.
I successfully installed the Pico SDK & I can use Geany & a Terminal window to program my Pico using a Raspberry Pi Debug Probe. I used these commands:
Code:
make -j4openocd -f interface/cmsis-dap.cfg -f target/rp2040.cfg -c "adapter speed 5000" -c "program blink.elf verify reset exit"
I scanned the setup for kits using <CTRL + SHIFT + P> That yeilds:
Successfully loaded 2 kits from /home/pi/.local/share/CMakeTools/cmake-tools-kits.json
I don't know what's going on.... or what to do next.
VS Code shows 3 problems:
1. #include errors detected based on information provided by the configurationProvider setting"
2. "cannot ope source file "pico/version.h" (dependency of "pico/stdlib.h")
3. "CMake Error at CMakeLists.txt:9 (pico_add_extra_outputs) Unkonwn CMake command "pico_add_extra_outputs"
For error #1 I can see the configurationProvider setting in the C/C++ Configurations. It shows "ms-vscode.cmake-tools"
--should this be different since I'm using Raspberry Pi OS?
For error #2 I don't know what to do. The blink project is in the folder
/home/pi/pico/pico-examples
When I use Geany & Terminal the compiler has no trouble finding pico/stdlib.h
Suggestions?
For error #3 I don't know what's going on.
I tried attaching screenshots but got an error stating the files are too big.... Weird -- they are only 540KB....
If someone can help me setup VS Code it will be greatly appreciated!
Statistics: Posted by ttu_Don — Mon Aug 12, 2024 8:24 pm