diff --git a/.vscode/settings.json b/.vscode/settings.json index cad7657..795eb39 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,22 @@ { - "cmake.configureOnOpen": false + // These settings tweaks to the cmake plugin will ensure + // that you debug using cortex-debug instead of trying to launch + // a Pico binary on the host + "cmake.statusbar.advanced": { + "debug": { + "visibility": "hidden" + }, + "launch": { + "visibility": "hidden" + }, + "build": { + "visibility": "hidden" + }, + "buildTarget": { + "visibility": "hidden" + } + }, + "cmake.buildBeforeRun": true, + "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", + "cortex-debug.openocdPath": "/home/kzerbe/pico/openocd/src/openocd" } \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index a95af52..c2a81eb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,6 @@ target_link_libraries(${CMAKE_PROJECT_NAME} hardware_i2c ) -pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 0) -pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 1) +pico_enable_stdio_uart(${CMAKE_PROJECT_NAME} 1) +pico_enable_stdio_usb(${CMAKE_PROJECT_NAME} 0) pico_add_extra_outputs(${CMAKE_PROJECT_NAME})