From f38309d31185736a371341b4fc99582934726e7e Mon Sep 17 00:00:00 2001 From: Kevin Thomas Date: Thu, 18 Sep 2025 14:11:45 -0700 Subject: [PATCH] update for first iter --- 0x0001_hello-world/.gitignore | 5 +- .../.cortex-debug.peripherals.state.json | 1 - .../.cortex-debug.registers.state.json | 1 - .../.vscode/c_cpp_properties.json | 36 +-- 0x0001_hello-world/.vscode/cmake-kits.json | 15 ++ 0x0001_hello-world/.vscode/extensions.json | 16 +- 0x0001_hello-world/.vscode/launch.json | 104 ++++----- 0x0001_hello-world/.vscode/settings.json | 51 ++-- 0x0001_hello-world/.vscode/tasks.json | 127 +++++++--- .../{main.c => 0x0001_hello-world.c} | 0 0x0001_hello-world/CMakeLists.txt | 54 ++++- 0x0001_hello-world/pico_sdk_import.cmake | 80 +++++-- 0x0001_hello-world/rom_disasm.txt | 217 ++++++++++++++++++ 0x0001_hello-world/rp2350_rom.bin | Bin 0 -> 32768 bytes 0x0005_intro-to-variables/.gitignore | 5 +- .../.cortex-debug.peripherals.state.json | 1 - .../.cortex-debug.registers.state.json | 1 - .../.vscode/c_cpp_properties.json | 36 +-- .../.vscode/cmake-kits.json | 15 ++ .../.vscode/extensions.json | 16 +- 0x0005_intro-to-variables/.vscode/launch.json | 104 ++++----- .../.vscode/settings.json | 54 +++-- 0x0005_intro-to-variables/.vscode/tasks.json | 127 +++++++--- .../{main.c => 0x0005_intro-to-variables.c} | 0 0x0005_intro-to-variables/CMakeLists.txt | 54 ++++- .../pico_sdk_import.cmake | 80 +++++-- 26 files changed, 883 insertions(+), 317 deletions(-) delete mode 100644 0x0001_hello-world/.vscode/.cortex-debug.peripherals.state.json delete mode 100644 0x0001_hello-world/.vscode/.cortex-debug.registers.state.json create mode 100644 0x0001_hello-world/.vscode/cmake-kits.json rename 0x0001_hello-world/{main.c => 0x0001_hello-world.c} (100%) create mode 100644 0x0001_hello-world/rom_disasm.txt create mode 100644 0x0001_hello-world/rp2350_rom.bin delete mode 100644 0x0005_intro-to-variables/.vscode/.cortex-debug.peripherals.state.json delete mode 100644 0x0005_intro-to-variables/.vscode/.cortex-debug.registers.state.json create mode 100644 0x0005_intro-to-variables/.vscode/cmake-kits.json rename 0x0005_intro-to-variables/{main.c => 0x0005_intro-to-variables.c} (100%) diff --git a/0x0001_hello-world/.gitignore b/0x0001_hello-world/.gitignore index 149d92e..2435c20 100644 --- a/0x0001_hello-world/.gitignore +++ b/0x0001_hello-world/.gitignore @@ -1,5 +1,2 @@ -.idea -_deps -cmake-* build -.DS_Store +!.vscode/* diff --git a/0x0001_hello-world/.vscode/.cortex-debug.peripherals.state.json b/0x0001_hello-world/.vscode/.cortex-debug.peripherals.state.json deleted file mode 100644 index 0637a08..0000000 --- a/0x0001_hello-world/.vscode/.cortex-debug.peripherals.state.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/0x0001_hello-world/.vscode/.cortex-debug.registers.state.json b/0x0001_hello-world/.vscode/.cortex-debug.registers.state.json deleted file mode 100644 index 0637a08..0000000 --- a/0x0001_hello-world/.vscode/.cortex-debug.registers.state.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/0x0001_hello-world/.vscode/c_cpp_properties.json b/0x0001_hello-world/.vscode/c_cpp_properties.json index ada839e..e80461d 100644 --- a/0x0001_hello-world/.vscode/c_cpp_properties.json +++ b/0x0001_hello-world/.vscode/c_cpp_properties.json @@ -1,18 +1,22 @@ { - "configurations": [ - { - "name": "Pico", - "includePath": [ - "${workspaceFolder}/**", - "${env:PICO_SDK_PATH}/**" - ], - "defines": [], - "compilerPath": "${env:PICO_INSTALL_PATH}/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe", - "cStandard": "c11", - "cppStandard": "c++11", - "intelliSenseMode": "linux-gcc-arm", - "configurationProvider": "ms-vscode.cmake-tools" - } - ], - "version": 4 + "configurations": [ + { + "name": "Pico", + "includePath": [ + "${workspaceFolder}/**", + "${userHome}/.pico-sdk/sdk/2.2.0/**" + ], + "forcedInclude": [ + "${userHome}/.pico-sdk/sdk/2.2.0/src/common/pico_base_headers/include/pico.h", + "${workspaceFolder}/build/generated/pico_base/pico/config_autogen.h" + ], + "defines": [], + "compilerPath": "${userHome}/.pico-sdk/toolchain/14_2_Rel1/bin/arm-none-eabi-gcc.exe", + "compileCommands": "${workspaceFolder}/build/compile_commands.json", + "cStandard": "c17", + "cppStandard": "c++14", + "intelliSenseMode": "linux-gcc-arm" + } + ], + "version": 4 } diff --git a/0x0001_hello-world/.vscode/cmake-kits.json b/0x0001_hello-world/.vscode/cmake-kits.json new file mode 100644 index 0000000..b0f3815 --- /dev/null +++ b/0x0001_hello-world/.vscode/cmake-kits.json @@ -0,0 +1,15 @@ +[ + { + "name": "Pico", + "compilers": { + "C": "${command:raspberry-pi-pico.getCompilerPath}", + "CXX": "${command:raspberry-pi-pico.getCxxCompilerPath}" + }, + "environmentVariables": { + "PATH": "${command:raspberry-pi-pico.getEnvPath};${env:PATH}" + }, + "cmakeSettings": { + "Python3_EXECUTABLE": "${command:raspberry-pi-pico.getPythonPath}" + } + } +] \ No newline at end of file diff --git a/0x0001_hello-world/.vscode/extensions.json b/0x0001_hello-world/.vscode/extensions.json index 03ba0af..a940d7c 100644 --- a/0x0001_hello-world/.vscode/extensions.json +++ b/0x0001_hello-world/.vscode/extensions.json @@ -1,9 +1,9 @@ { - "recommendations": [ - "marus25.cortex-debug", - "ms-vscode.cmake-tools", - "ms-vscode.cpptools", - "ms-vscode.cpptools-extension-pack", - "ms-vscode.vscode-serial-monitor" - ] -} + "recommendations": [ + "marus25.cortex-debug", + "ms-vscode.cpptools", + "ms-vscode.cpptools-extension-pack", + "ms-vscode.vscode-serial-monitor", + "raspberry-pi.raspberry-pi-pico" + ] +} \ No newline at end of file diff --git a/0x0001_hello-world/.vscode/launch.json b/0x0001_hello-world/.vscode/launch.json index 2b22acf..424aa71 100644 --- a/0x0001_hello-world/.vscode/launch.json +++ b/0x0001_hello-world/.vscode/launch.json @@ -1,58 +1,50 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "Pico Debug (Cortex-Debug)", - "cwd": "${workspaceFolder}", - "executable": "${command:cmake.launchTargetPath}", - "request": "launch", - "type": "cortex-debug", - "servertype": "openocd", - "gdbPath": "arm-none-eabi-gdb", - "device": "RP2040", - "configFiles": [ - "interface/cmsis-dap.cfg", - "target/rp2040.cfg" - ], - "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", - "runToEntryPoint": "main", - "openOCDLaunchCommands": [ - "adapter speed 1000" - ] - }, - { - "name": "Pico Debug (Cortex-Debug with external OpenOCD)", - "cwd": "${workspaceFolder}", - "executable": "${command:cmake.launchTargetPath}", - "request": "launch", - "type": "cortex-debug", - "servertype": "external", - "gdbTarget": "localhost:3333", - "gdbPath": "arm-none-eabi-gdb", - "device": "RP2040", - "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", - "runToEntryPoint": "main" - }, - { - "name": "Pico Debug (C++ Debugger)", - "type": "cppdbg", - "request": "launch", - "cwd": "${workspaceFolder}", - "program": "${command:cmake.launchTargetPath}", - "MIMode": "gdb", - "miDebuggerPath": "arm-none-eabi-gdb", - "miDebuggerServerAddress": "localhost:3333", - "debugServerPath": "openocd", - "debugServerArgs": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 1000\"", - "serverStarted": "Listening on port .* for gdb connections", - "filterStderr": true, - "stopAtEntry": true, - "hardwareBreakpoints": { - "require": true, - "limit": 4 - }, - "preLaunchTask": "Flash", - "svdPath": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Pico Debug (Cortex-Debug)", + "cwd": "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "executable": "${command:raspberry-pi-pico.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "serverpath": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", + "device": "${command:raspberry-pi-pico.getChipUppercase}", + "configFiles": [ + "interface/cmsis-dap.cfg", + "target/${command:raspberry-pi-pico.getTarget}.cfg" + ], + "svdFile": "${userHome}/.pico-sdk/sdk/2.2.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", + "runToEntryPoint": "main", + // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected + // Also works fine for flash binaries + "overrideLaunchCommands": [ + "monitor reset init", + "load \"${command:raspberry-pi-pico.launchTargetPath}\"" + ], + "openOCDLaunchCommands": [ + "adapter speed 5000" + ] + }, + { + "name": "Pico Debug (Cortex-Debug with external OpenOCD)", + "cwd": "${workspaceRoot}", + "executable": "${command:raspberry-pi-pico.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "external", + "gdbTarget": "localhost:3333", + "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", + "device": "${command:raspberry-pi-pico.getChipUppercase}", + "svdFile": "${userHome}/.pico-sdk/sdk/2.2.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", + "runToEntryPoint": "main", + // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected + // Also works fine for flash binaries + "overrideLaunchCommands": [ + "monitor reset init", + "load \"${command:raspberry-pi-pico.launchTargetPath}\"" + ] + }, + ] } diff --git a/0x0001_hello-world/.vscode/settings.json b/0x0001_hello-world/.vscode/settings.json index 8ad90e8..688748a 100644 --- a/0x0001_hello-world/.vscode/settings.json +++ b/0x0001_hello-world/.vscode/settings.json @@ -1,29 +1,42 @@ { - // 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" + "cmake.showSystemKits": false, + "cmake.options.statusBarVisibility": "hidden", + "cmake.options.advanced": { + "build": { + "statusBarVisibility": "hidden" }, "launch": { - "visibility": "hidden" + "statusBarVisibility": "hidden" }, - "build": { - "visibility": "hidden" - }, - "buildTarget": { - "visibility": "hidden" + "debug": { + "statusBarVisibility": "hidden" } }, - "cmake.buildBeforeRun": true, - "cmake.configureOnOpen": true, - "cmake.configureSettings": { - "CMAKE_MODULE_PATH": "${env:PICO_INSTALL_PATH}/pico-sdk-tools" - }, + "cmake.configureOnEdit": false, + "cmake.automaticReconfigure": false, + "cmake.configureOnOpen": false, "cmake.generator": "Ninja", - "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", - "C_Cpp.errorSquiggles": "enabled", + "cmake.cmakePath": "${userHome}/.pico-sdk/cmake/v3.31.5/bin/cmake", + "C_Cpp.debugShortcut": false, + "terminal.integrated.env.windows": { + "PICO_SDK_PATH": "${env:USERPROFILE}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:USERPROFILE}/.pico-sdk/toolchain/14_2_Rel1", + "Path": "${env:USERPROFILE}/.pico-sdk/toolchain/14_2_Rel1/bin;${env:USERPROFILE}/.pico-sdk/picotool/2.2.0/picotool;${env:USERPROFILE}/.pico-sdk/cmake/v3.31.5/bin;${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1;${env:PATH}" + }, + "terminal.integrated.env.osx": { + "PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1", + "PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.2.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.31.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" + }, + "terminal.integrated.env.linux": { + "PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1", + "PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.2.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.31.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" + }, + "raspberry-pi-pico.cmakeAutoConfigure": true, + "raspberry-pi-pico.useCmakeTools": false, + "raspberry-pi-pico.cmakePath": "${HOME}/.pico-sdk/cmake/v3.31.5/bin/cmake", + "raspberry-pi-pico.ninjaPath": "${HOME}/.pico-sdk/ninja/v1.12.1/ninja", "files.associations": { "stdlib.h": "c" } diff --git a/0x0001_hello-world/.vscode/tasks.json b/0x0001_hello-world/.vscode/tasks.json index a437c2f..f427bf0 100644 --- a/0x0001_hello-world/.vscode/tasks.json +++ b/0x0001_hello-world/.vscode/tasks.json @@ -1,29 +1,102 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "Flash", - "type": "shell", - "command": "openocd", - "args": [ - "-f", - "interface/cmsis-dap.cfg", - "-f", - "target/rp2040.cfg", - "-c", - "adapter speed 1000; program {${command:cmake.launchTargetPath}} verify reset exit" - ], - "problemMatcher": [] - }, - { - "label": "Build", - "type": "cmake", - "command": "build", - "problemMatcher": "$gcc", - "group": { - "kind": "build", - "isDefault": true - } - } - ] + "version": "2.0.0", + "tasks": [ + { + "label": "Compile Project", + "type": "process", + "isBuildCommand": true, + "command": "${userHome}/.pico-sdk/ninja/v1.12.1/ninja", + "args": ["-C", "${workspaceFolder}/build"], + "group": "build", + "presentation": { + "reveal": "always", + "panel": "dedicated" + }, + "problemMatcher": "$gcc", + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1/ninja.exe" + } + }, + { + "label": "Run Project", + "type": "process", + "command": "${env:HOME}/.pico-sdk/picotool/2.2.0/picotool/picotool", + "args": [ + "load", + "${command:raspberry-pi-pico.launchTargetPath}", + "-fx" + ], + "presentation": { + "reveal": "always", + "panel": "dedicated" + }, + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/picotool/2.2.0/picotool/picotool.exe" + } + }, + { + "label": "Flash", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/${command:raspberry-pi-pico.getTarget}.cfg", + "-c", + "adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + }, + { + "label": "Rescue Reset", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/${command:raspberry-pi-pico.getChip}-rescue.cfg", + "-c", + "adapter speed 5000; reset halt; exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + }, + { + "label": "Risc-V Reset (RP2350)", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-c", + "set USE_CORE { rv0 rv1 cm0 cm1 }", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/rp2350.cfg", + "-c", + "adapter speed 5000; init;", + "-c", + "write_memory 0x40120158 8 { 0x3 }; echo [format \"Info : ARCHSEL 0x%02x\" [read_memory 0x40120158 8 1]];", + "-c", + "reset halt; targets rp2350.rv0; echo [format \"Info : ARCHSEL_STATUS 0x%02x\" [read_memory 0x4012015C 8 1]]; exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + } + ] } diff --git a/0x0001_hello-world/main.c b/0x0001_hello-world/0x0001_hello-world.c similarity index 100% rename from 0x0001_hello-world/main.c rename to 0x0001_hello-world/0x0001_hello-world.c diff --git a/0x0001_hello-world/CMakeLists.txt b/0x0001_hello-world/CMakeLists.txt index 984736d..31d8fc5 100644 --- a/0x0001_hello-world/CMakeLists.txt +++ b/0x0001_hello-world/CMakeLists.txt @@ -1,21 +1,57 @@ +# Generated Cmake Pico project file + cmake_minimum_required(VERSION 3.13) -include(pico_sdk_import.cmake) -project(0x0001_hello-world C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +# Initialise pico_sdk from installed location +# (note this can come from environment, CMake cache etc) + +# == DO NOT EDIT THE FOLLOWING LINES for the Raspberry Pi Pico VS Code Extension to work == +if(WIN32) + set(USERHOME $ENV{USERPROFILE}) +else() + set(USERHOME $ENV{HOME}) +endif() +set(sdkVersion 2.2.0) +set(toolchainVersion 14_2_Rel1) +set(picotoolVersion 2.2.0) +set(picoVscode ${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) +if (EXISTS ${picoVscode}) + include(${picoVscode}) +endif() +# ==================================================================================== +set(PICO_BOARD pico2 CACHE STRING "Board type") + +# Pull in Raspberry Pi Pico SDK (must be before project) +include(pico_sdk_import.cmake) + +project(0x0001_hello-world C CXX ASM) + +# Initialise the Raspberry Pi Pico SDK pico_sdk_init() -add_executable(0x0001_hello-world - main.c -) +# Add executable. Default name is the project name, version 0.1 -pico_enable_stdio_usb(0x0001_hello-world 1) +add_executable(0x0001_hello-world 0x0001_hello-world.c ) + +pico_set_program_name(0x0001_hello-world "0x0001_hello-world") +pico_set_program_version(0x0001_hello-world "0.1") + +# Modify the below lines to enable/disable output over UART/USB pico_enable_stdio_uart(0x0001_hello-world 1) +pico_enable_stdio_usb(0x0001_hello-world 0) + +# Add the standard library to the build +target_link_libraries(0x0001_hello-world + pico_stdlib) + +# Add the standard include files to the build +target_include_directories(0x0001_hello-world PRIVATE + ${CMAKE_CURRENT_LIST_DIR} +) pico_add_extra_outputs(0x0001_hello-world) -target_link_libraries(0x0001_hello-world - pico_stdlib -) diff --git a/0x0001_hello-world/pico_sdk_import.cmake b/0x0001_hello-world/pico_sdk_import.cmake index 65f8a6f..d493cc2 100644 --- a/0x0001_hello-world/pico_sdk_import.cmake +++ b/0x0001_hello-world/pico_sdk_import.cmake @@ -3,6 +3,28 @@ # This can be dropped into an external project to help locate this SDK # It should be include()ed prior to project() +# Copyright 2020 (c) 2020 Raspberry Pi (Trading) Ltd. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +# following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +# disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided with the distribution. +# +# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + if (DEFINED ENV{PICO_SDK_PATH} AND (NOT PICO_SDK_PATH)) set(PICO_SDK_PATH $ENV{PICO_SDK_PATH}) message("Using PICO_SDK_PATH from environment ('${PICO_SDK_PATH}')") @@ -18,9 +40,20 @@ if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_PATH} AND (NOT PICO_SDK_FETCH_FROM_GIT_P message("Using PICO_SDK_FETCH_FROM_GIT_PATH from environment ('${PICO_SDK_FETCH_FROM_GIT_PATH}')") endif () +if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_TAG} AND (NOT PICO_SDK_FETCH_FROM_GIT_TAG)) + set(PICO_SDK_FETCH_FROM_GIT_TAG $ENV{PICO_SDK_FETCH_FROM_GIT_TAG}) + message("Using PICO_SDK_FETCH_FROM_GIT_TAG from environment ('${PICO_SDK_FETCH_FROM_GIT_TAG}')") +endif () + +if (PICO_SDK_FETCH_FROM_GIT AND NOT PICO_SDK_FETCH_FROM_GIT_TAG) + set(PICO_SDK_FETCH_FROM_GIT_TAG "master") + message("Using master as default value for PICO_SDK_FETCH_FROM_GIT_TAG") +endif() + set(PICO_SDK_PATH "${PICO_SDK_PATH}" CACHE PATH "Path to the Raspberry Pi Pico SDK") set(PICO_SDK_FETCH_FROM_GIT "${PICO_SDK_FETCH_FROM_GIT}" CACHE BOOL "Set to ON to fetch copy of SDK from git if not otherwise locatable") set(PICO_SDK_FETCH_FROM_GIT_PATH "${PICO_SDK_FETCH_FROM_GIT_PATH}" CACHE FILEPATH "location to download SDK") +set(PICO_SDK_FETCH_FROM_GIT_TAG "${PICO_SDK_FETCH_FROM_GIT_TAG}" CACHE FILEPATH "release tag for SDK") if (NOT PICO_SDK_PATH) if (PICO_SDK_FETCH_FROM_GIT) @@ -29,25 +62,40 @@ if (NOT PICO_SDK_PATH) if (PICO_SDK_FETCH_FROM_GIT_PATH) get_filename_component(FETCHCONTENT_BASE_DIR "${PICO_SDK_FETCH_FROM_GIT_PATH}" REALPATH BASE_DIR "${CMAKE_SOURCE_DIR}") endif () - # GIT_SUBMODULES_RECURSE was added in 3.17 - if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17.0") - FetchContent_Declare( - pico_sdk - GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk - GIT_TAG master - GIT_SUBMODULES_RECURSE FALSE - ) - else () - FetchContent_Declare( - pico_sdk - GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk - GIT_TAG master - ) - endif () + FetchContent_Declare( + pico_sdk + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + ) if (NOT pico_sdk) message("Downloading Raspberry Pi Pico SDK") - FetchContent_Populate(pico_sdk) + # GIT_SUBMODULES_RECURSE was added in 3.17 + if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17.0") + FetchContent_Populate( + pico_sdk + QUIET + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + GIT_SUBMODULES_RECURSE FALSE + + SOURCE_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-src + BINARY_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-build + SUBBUILD_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-subbuild + ) + else () + FetchContent_Populate( + pico_sdk + QUIET + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + + SOURCE_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-src + BINARY_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-build + SUBBUILD_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-subbuild + ) + endif () + set(PICO_SDK_PATH ${pico_sdk_SOURCE_DIR}) endif () set(FETCHCONTENT_BASE_DIR ${FETCHCONTENT_BASE_DIR_SAVE}) diff --git a/0x0001_hello-world/rom_disasm.txt b/0x0001_hello-world/rom_disasm.txt new file mode 100644 index 0000000..9e97dac --- /dev/null +++ b/0x0001_hello-world/rom_disasm.txt @@ -0,0 +1,217 @@ + +rp2350_rom.bin: file format binary + + +Disassembly of section .data: + +00000000 <.data>: + 0: 0000 movs r0, r0 + 2: f000 0089 and.w r0, r0, #137 @ 0x89 + 6: 0000 movs r0, r0 + 8: 02f9 lsls r1, r7, #11 + a: 0000 movs r0, r0 + c: 02f9 lsls r1, r7, #11 + e: 0000 movs r0, r0 + 10: 754d strb r5, [r1, #21] + 12: 0202 lsls r2, r0, #8 + 14: 7cd4 ldrb r4, [r2, #19] + 16: 0075 lsls r5, r6, #1 + 18: 0035 movs r5, r6 + 1a: 4328 orrs r0, r5 + 1c: 2029 movs r0, #41 @ 0x29 + 1e: 3032 adds r0, #50 @ 0x32 + 20: 3432 adds r4, #50 @ 0x32 + 22: 5220 strh r0, [r4, r0] + 24: 7361 strb r1, [r4, #13] + 26: 6270 str r0, [r6, #36] @ 0x24 + 28: 7265 strb r5, [r4, #9] + 2a: 7972 ldrb r2, [r6, #5] + 2c: 5020 str r0, [r4, r0] + 2e: 2069 movs r0, #105 @ 0x69 + 30: 744c strb r4, [r1, #17] + 32: 0064 lsls r4, r4, #1 + 34: fe84 0718 mcr2 7, 4, r0, cr4, cr8, {0} + 38: f647 43d4 movw r3, #31956 @ 0x7cd4 + 3c: 4684 mov ip, r0 + 3e: e007 b.n 0x50 + 40: 2a10 cmp r2, #16 + 42: d300 bcc.n 0x46 + 44: 3302 adds r3, #2 + 46: 484f ldr r0, [pc, #316] @ (0x184) + 48: 0092 lsls r2, r2, #2 + 4a: 41d0 rors r0, r2 + 4c: 0f00 lsrs r0, r0, #28 + 4e: 181b adds r3, r3, r0 + 50: 8818 ldrh r0, [r3, #0] + 52: 885a ldrh r2, [r3, #2] + 54: b158 cbz r0, 0x6e + 56: 4584 cmp ip, r0 + 58: d1f2 bne.n 0x40 + 5a: 420a tst r2, r1 + 5c: d0f0 beq.n 0x40 + 5e: 4011 ands r1, r2 + 60: 0849 lsrs r1, r1, #1 + 62: d203 bcs.n 0x6c + 64: 0852 lsrs r2, r2, #1 + 66: d3fb bcc.n 0x60 + 68: 3302 adds r3, #2 + 6a: e7f9 b.n 0x60 + 6c: 1d18 adds r0, r3, #4 + 6e: fea4 0738 mcr2 7, 5, r0, cr4, cr8, {1} + 72: 4770 bx lr + 74: fe16 373c mrc2 7, 0, r3, cr6, cr12, {1} + 78: b508 push {r3, lr} + 7a: f7ff ffdb bl 0x34 + 7e: 8800 ldrh r0, [r0, #0] + 80: bc0c pop {r2, r3} + 82: fe06 273c mcr2 7, 0, r2, cr6, cr12, {1} + 86: 4718 bx r3 + 88: 483f ldr r0, [pc, #252] @ (0x188) + 8a: 3080 adds r0, #128 @ 0x80 + 8c: f45f 4140 movs.w r1, #49152 @ 0xc000 + 90: 6001 str r1, [r0, #0] + 92: 2280 movs r2, #128 @ 0x80 + 94: 6042 str r2, [r0, #4] + 96: f500 3000 add.w r0, r0, #131072 @ 0x20000 + 9a: 6001 str r1, [r0, #0] + 9c: 483a ldr r0, [pc, #232] @ (0x188) + 9e: 30c8 adds r0, #200 @ 0xc8 + a0: 2101 movs r1, #1 + a2: 2307 movs r3, #7 + a4: f244 64a0 movw r4, #18080 @ 0x46a0 + a8: f647 75e1 movw r5, #32737 @ 0x7fe1 + ac: c03e stmia r0!, {r1, r2, r3, r4, r5} + ae: f04f 4050 mov.w r0, #3489660928 @ 0xd0000000 + b2: 6801 ldr r1, [r0, #0] + b4: bb29 cbnz r1, 0x102 + b6: 4935 ldr r1, [pc, #212] @ (0x18c) + b8: f5a1 7003 sub.w r0, r1, #524 @ 0x20c + bc: f380 880a msr MSPLIM, r0 + c0: 2200 movs r2, #0 + c2: c004 stmia r0!, {r2} + c4: 4288 cmp r0, r1 + c6: d1fc bne.n 0xc2 + c8: 468d mov sp, r1 + ca: f003 bb49 b.w 0x3760 + ce: b672 cpsid i + d0: bf30 wfi + d2: e7fc b.n 0xce + d4: fe18 c731 mrc2 7, 0, ip, cr8, cr1, {1} + d8: bf20 wfe + da: 6d20 ldr r0, [r4, #80] @ 0x50 + dc: 0840 lsrs r0, r0, #1 + de: d3fb bcc.n 0xd8 + e0: 6da0 ldr r0, [r4, #88] @ 0x58 + e2: b308 cbz r0, 0x128 + e4: fe08 c731 mcr2 7, 0, ip, cr8, cr1, {1} + e8: 4770 bx lr + ea: bf20 wfe + ec: fe19 c735 mrc2 7, 0, ip, cr9, cr5, {1} + f0: 6d21 ldr r1, [r4, #80] @ 0x50 + f2: 0889 lsrs r1, r1, #2 + f4: d3f9 bcc.n 0xea + f6: 6560 str r0, [r4, #84] @ 0x54 + f8: bf40 sev + fa: fe09 c735 mcr2 7, 0, ip, cr9, cr5, {1} + fe: 4728 bx r5 + 100: bf20 wfe + 102: 4f21 ldr r7, [pc, #132] @ (0x188) + 104: f117 068c adds.w r6, r7, #140 @ 0x8c + 108: 2005 movs r0, #5 + 10a: 2100 movs r1, #0 + 10c: f240 12a1 movw r2, #417 @ 0x1a1 + 110: f1b1 031f subs.w r3, r1, #31 + 114: c60f stmia r6!, {r0, r1, r2, r3} + 116: ee30 f710 @ instruction: 0xee30f710 + 11a: d5f1 bpl.n 0x100 + 11c: 3e10 subs r6, #16 + 11e: f04f 4450 mov.w r4, #3489660928 @ 0xd0000000 + 122: 2104 movs r1, #4 + 124: 60b9 str r1, [r7, #8] + 126: 6da1 ldr r1, [r4, #88] @ 0x58 + 128: ee8c 0710 @ instruction: 0xee8c0710 + 12c: 68f2 ldr r2, [r6, #12] + 12e: f07f 031e mvns.w r3, #30 + 132: ec43 2770 mcrr 7, 7, r2, r3, cr0 + 136: 6d21 ldr r1, [r4, #80] @ 0x50 + 138: 0849 lsrs r1, r1, #1 + 13a: d2f4 bcs.n 0x126 + 13c: f2af 056b subw r5, pc, #107 @ 0x6b + 140: 2000 movs r0, #0 + 142: f7ff ffd3 bl 0xec + 146: eeac 0730 @ instruction: 0xeeac0730 + 14a: 2801 cmp r0, #1 + 14c: d1ec bne.n 0x128 + 14e: f7ff ffcd bl 0xec + 152: eeac 0731 @ instruction: 0xeeac0731 + 156: 6038 str r0, [r7, #0] + 158: f7ff ffc8 bl 0xec + 15c: eeac 0732 @ instruction: 0xeeac0732 + 160: 4685 mov sp, r0 + 162: f7ff ffc3 bl 0xec + 166: eeac 0733 @ instruction: 0xeeac0733 + 16a: f20f 0507 addw r5, pc, #7 + 16e: f7ff ffbd bl 0xec + 172: 2100 movs r1, #0 + 174: 60b9 str r1, [r7, #8] + 176: 6031 str r1, [r6, #0] + 178: 60f1 str r1, [r6, #12] + 17a: eeac 0734 @ instruction: 0xeeac0734 + 17e: 4780 blx r0 + 180: e0b8 b.n 0x2f4 + 182: 0000 movs r0, r0 + 184: 6866 ldr r6, [r4, #4] + 186: 4a88 ldr r2, [pc, #544] @ (0x3a8) + 188: ed08 e000 @ instruction: 0xed08e000 + 18c: 020c lsls r4, r1, #8 + 18e: 400e ands r6, r1 + 190: 2300 movs r3, #0 + 192: bfa0 nop {10} + 194: b5f7 push {r0, r1, r2, r4, r5, r6, r7, lr} + 196: fe16 4739 mrc2 7, 0, r4, cr6, cr9, {1} + 19a: 9401 str r4, [sp, #4] + 19c: 0087 lsls r7, r0, #2 + 19e: 4c17 ldr r4, [pc, #92] @ (0x1fc) + 1a0: 3705 adds r7, #5 + 1a2: 6027 str r7, [r4, #0] + 1a4: 461c mov r4, r3 + 1a6: 4d16 ldr r5, [pc, #88] @ (0x200) + 1a8: b9ab cbnz r3, 0x1d6 + 1aa: b9f4 cbnz r4, 0x1ea + 1ac: 4a14 ldr r2, [pc, #80] @ (0x200) + 1ae: 6813 ldr r3, [r2, #0] + 1b0: 079b lsls r3, r3, #30 + 1b2: d4fc bmi.n 0x1ae + 1b4: 4b11 ldr r3, [pc, #68] @ (0x1fc) + 1b6: 601f str r7, [r3, #0] + 1b8: 9b01 ldr r3, [sp, #4] + 1ba: fe06 3739 mcr2 7, 0, r3, cr6, cr9, {1} + 1be: b003 add sp, #12 + 1c0: bdf0 pop {r4, r5, r6, r7, pc} + 1c2: b109 cbz r1, 0x1c8 + 1c4: f811 cb01 ldrb.w ip, [r1], #1 + 1c8: f8c5 c004 str.w ip, [r5, #4] + 1cc: 3b01 subs r3, #1 + 1ce: b944 cbnz r4, 0x1e2 + 1d0: 2b00 cmp r3, #0 + 1d2: d0eb beq.n 0x1ac + 1d4: 2400 movs r4, #0 + 1d6: 682e ldr r6, [r5, #0] + 1d8: f416 6c80 ands.w ip, r6, #1024 @ 0x400 + 1dc: d0f1 beq.n 0x1c2 + 1de: 2c00 cmp r4, #0 + 1e0: d0f8 beq.n 0x1d4 + 1e2: 03f6 lsls r6, r6, #15 + 1e4: d504 bpl.n 0x1f0 + 1e6: 2b00 cmp r3, #0 + 1e8: d1f5 bne.n 0x1d6 + 1ea: 2300 movs r3, #0 + 1ec: 682e ldr r6, [r5, #0] + 1ee: e7f8 b.n 0x1e2 + 1f0: 68ae ldr r6, [r5, #8] + 1f2: b10a cbz r2, 0x1f8 + 1f4: f802 6b01 strb.w r6, [r2], #1 + 1f8: 3c01 subs r4, #1 + 1fa: e7d5 b.n 0x1a8 + 1fc: 1000 asrs r0, r0, #32 + 1fe: 400d ands r5, r1 diff --git a/0x0001_hello-world/rp2350_rom.bin b/0x0001_hello-world/rp2350_rom.bin new file mode 100644 index 0000000000000000000000000000000000000000..4c47cdbc3214b04cf7e8a51867ec58de2d1534ef GIT binary patch literal 32768 zcmaI834Bvk`ak@fdvBJeTiO&zlTvPSDRg0J8)%Ut+}=RCgrzKMX<;U95z`j6fJ@PF z2qIe0nSsWoO;C#!Wl@Ksb*$Q=9k1Hdh2{Il#qhB@=A2VpLxn=|;_?A$s0s;aFG)pu{%vW+jR z<(EFN0iFnH6-77Cn4hpHeCkZ-V@xZGo552E@p`ScsiLX8K^B#0$Sws)0s z1k2p=YbU=Nnx|+eniyJ;uj~v52g1-4^PxPnV7j(wQL!WYmp_Sx#O5$cHn;)V#5TY9 z(`;f;2#W{XHWb~w@ZiFp6@fC5*fTzuTXNtA+u*paY62tI( zUmMCf#h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h6MGa2>^RZgKo}A zS_X?gTG96@7e0Nd=st}^l~2XOvL58q*9>%KLx}p(zspn^XYgF`FYk&G#l7aCC_Hy+7RItz*>MAg4D~a%DoDk7 zvQGNRrxAXflu36xCwoO{x7GQ3U05dtj7Rg5N`DlnGtQP(HO5@1V@MTSJJ8UZjPtux zrB~F_hnhzXLaGT(Qq^2~7+Z5mpxzobpnCCYmu%2&*HxVNy@t=uXjzC+M{`oBFDk5r zs!mHkZ_gF(zstTLRd^Z6+N6kyoD|}*P(@gOcAo3vEEjpy`oB!l#=*y(mtI4{pa6zw zTq9DiW0d+vh>Crp^bK1VmLICx1~|qj5Vh4ERddx*)?t#PmE%4ab=*OA8|>PbxGH*^ z(e|kA7q>8g=R9vV*)c6KrQ6r58EQ*RnJT2RG!EzD8pk0^o;S@%_xcp9c2BW4!rGwy zPfNa@X0&lV~gd`A1?QxJz-h2e2mq@8i`Y3ok@{#}#h`4&9G z-%0o(G$WOPyuZ8PE}h|q@{A3o7pz>?%!qMBW7j05upnlys@`6jg5UjR{=qtUjWimE zN1N3)Q`bnMa5&F&*~WKGswMtkg9VJZHPbBde+|@Iy|*S_f=d}a;BA{4g+rhA@3W1Y zg+qV6$+Sz2!=Y(!?Cer4wf(D4Z!3wxaSnZ)h!{({yxvZF)>It#qwzH@nP#cq*v|A` zlWIws*OPAZel(5lP%~0!lukuOTk^l2X&+|^<#q3Nh>5r4f5mZ-&cvb7ukPB75p;= z|Bg}|y7t=l8ke2LaRZWJhM~LL+dKE|-Qn%s=Ix#J_D;RMn>#dMeM+ACSC`oSyJz;c zPts8)-}<#T$uPXv*6`6E_Q}Ivk`5gG$A8#|h)s?iv0Yae<21}$ zV5{Be(B)u%1ngJkQU(thu>V7B^I0e+Su$CWzuVmA38igE(z8(Jm E055EQ9smFU literal 0 HcmV?d00001 diff --git a/0x0005_intro-to-variables/.gitignore b/0x0005_intro-to-variables/.gitignore index 149d92e..2435c20 100644 --- a/0x0005_intro-to-variables/.gitignore +++ b/0x0005_intro-to-variables/.gitignore @@ -1,5 +1,2 @@ -.idea -_deps -cmake-* build -.DS_Store +!.vscode/* diff --git a/0x0005_intro-to-variables/.vscode/.cortex-debug.peripherals.state.json b/0x0005_intro-to-variables/.vscode/.cortex-debug.peripherals.state.json deleted file mode 100644 index 0637a08..0000000 --- a/0x0005_intro-to-variables/.vscode/.cortex-debug.peripherals.state.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/0x0005_intro-to-variables/.vscode/.cortex-debug.registers.state.json b/0x0005_intro-to-variables/.vscode/.cortex-debug.registers.state.json deleted file mode 100644 index 0637a08..0000000 --- a/0x0005_intro-to-variables/.vscode/.cortex-debug.registers.state.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/0x0005_intro-to-variables/.vscode/c_cpp_properties.json b/0x0005_intro-to-variables/.vscode/c_cpp_properties.json index ada839e..e80461d 100644 --- a/0x0005_intro-to-variables/.vscode/c_cpp_properties.json +++ b/0x0005_intro-to-variables/.vscode/c_cpp_properties.json @@ -1,18 +1,22 @@ { - "configurations": [ - { - "name": "Pico", - "includePath": [ - "${workspaceFolder}/**", - "${env:PICO_SDK_PATH}/**" - ], - "defines": [], - "compilerPath": "${env:PICO_INSTALL_PATH}/gcc-arm-none-eabi/bin/arm-none-eabi-gcc.exe", - "cStandard": "c11", - "cppStandard": "c++11", - "intelliSenseMode": "linux-gcc-arm", - "configurationProvider": "ms-vscode.cmake-tools" - } - ], - "version": 4 + "configurations": [ + { + "name": "Pico", + "includePath": [ + "${workspaceFolder}/**", + "${userHome}/.pico-sdk/sdk/2.2.0/**" + ], + "forcedInclude": [ + "${userHome}/.pico-sdk/sdk/2.2.0/src/common/pico_base_headers/include/pico.h", + "${workspaceFolder}/build/generated/pico_base/pico/config_autogen.h" + ], + "defines": [], + "compilerPath": "${userHome}/.pico-sdk/toolchain/14_2_Rel1/bin/arm-none-eabi-gcc.exe", + "compileCommands": "${workspaceFolder}/build/compile_commands.json", + "cStandard": "c17", + "cppStandard": "c++14", + "intelliSenseMode": "linux-gcc-arm" + } + ], + "version": 4 } diff --git a/0x0005_intro-to-variables/.vscode/cmake-kits.json b/0x0005_intro-to-variables/.vscode/cmake-kits.json new file mode 100644 index 0000000..b0f3815 --- /dev/null +++ b/0x0005_intro-to-variables/.vscode/cmake-kits.json @@ -0,0 +1,15 @@ +[ + { + "name": "Pico", + "compilers": { + "C": "${command:raspberry-pi-pico.getCompilerPath}", + "CXX": "${command:raspberry-pi-pico.getCxxCompilerPath}" + }, + "environmentVariables": { + "PATH": "${command:raspberry-pi-pico.getEnvPath};${env:PATH}" + }, + "cmakeSettings": { + "Python3_EXECUTABLE": "${command:raspberry-pi-pico.getPythonPath}" + } + } +] \ No newline at end of file diff --git a/0x0005_intro-to-variables/.vscode/extensions.json b/0x0005_intro-to-variables/.vscode/extensions.json index 03ba0af..a940d7c 100644 --- a/0x0005_intro-to-variables/.vscode/extensions.json +++ b/0x0005_intro-to-variables/.vscode/extensions.json @@ -1,9 +1,9 @@ { - "recommendations": [ - "marus25.cortex-debug", - "ms-vscode.cmake-tools", - "ms-vscode.cpptools", - "ms-vscode.cpptools-extension-pack", - "ms-vscode.vscode-serial-monitor" - ] -} + "recommendations": [ + "marus25.cortex-debug", + "ms-vscode.cpptools", + "ms-vscode.cpptools-extension-pack", + "ms-vscode.vscode-serial-monitor", + "raspberry-pi.raspberry-pi-pico" + ] +} \ No newline at end of file diff --git a/0x0005_intro-to-variables/.vscode/launch.json b/0x0005_intro-to-variables/.vscode/launch.json index 2b22acf..424aa71 100644 --- a/0x0005_intro-to-variables/.vscode/launch.json +++ b/0x0005_intro-to-variables/.vscode/launch.json @@ -1,58 +1,50 @@ { - "version": "0.2.0", - "configurations": [ - { - "name": "Pico Debug (Cortex-Debug)", - "cwd": "${workspaceFolder}", - "executable": "${command:cmake.launchTargetPath}", - "request": "launch", - "type": "cortex-debug", - "servertype": "openocd", - "gdbPath": "arm-none-eabi-gdb", - "device": "RP2040", - "configFiles": [ - "interface/cmsis-dap.cfg", - "target/rp2040.cfg" - ], - "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", - "runToEntryPoint": "main", - "openOCDLaunchCommands": [ - "adapter speed 1000" - ] - }, - { - "name": "Pico Debug (Cortex-Debug with external OpenOCD)", - "cwd": "${workspaceFolder}", - "executable": "${command:cmake.launchTargetPath}", - "request": "launch", - "type": "cortex-debug", - "servertype": "external", - "gdbTarget": "localhost:3333", - "gdbPath": "arm-none-eabi-gdb", - "device": "RP2040", - "svdFile": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd", - "runToEntryPoint": "main" - }, - { - "name": "Pico Debug (C++ Debugger)", - "type": "cppdbg", - "request": "launch", - "cwd": "${workspaceFolder}", - "program": "${command:cmake.launchTargetPath}", - "MIMode": "gdb", - "miDebuggerPath": "arm-none-eabi-gdb", - "miDebuggerServerAddress": "localhost:3333", - "debugServerPath": "openocd", - "debugServerArgs": "-f interface/cmsis-dap.cfg -f target/rp2040.cfg -c \"adapter speed 1000\"", - "serverStarted": "Listening on port .* for gdb connections", - "filterStderr": true, - "stopAtEntry": true, - "hardwareBreakpoints": { - "require": true, - "limit": 4 - }, - "preLaunchTask": "Flash", - "svdPath": "${env:PICO_SDK_PATH}/src/rp2040/hardware_regs/rp2040.svd" - } - ] + "version": "0.2.0", + "configurations": [ + { + "name": "Pico Debug (Cortex-Debug)", + "cwd": "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "executable": "${command:raspberry-pi-pico.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "openocd", + "serverpath": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", + "device": "${command:raspberry-pi-pico.getChipUppercase}", + "configFiles": [ + "interface/cmsis-dap.cfg", + "target/${command:raspberry-pi-pico.getTarget}.cfg" + ], + "svdFile": "${userHome}/.pico-sdk/sdk/2.2.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", + "runToEntryPoint": "main", + // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected + // Also works fine for flash binaries + "overrideLaunchCommands": [ + "monitor reset init", + "load \"${command:raspberry-pi-pico.launchTargetPath}\"" + ], + "openOCDLaunchCommands": [ + "adapter speed 5000" + ] + }, + { + "name": "Pico Debug (Cortex-Debug with external OpenOCD)", + "cwd": "${workspaceRoot}", + "executable": "${command:raspberry-pi-pico.launchTargetPath}", + "request": "launch", + "type": "cortex-debug", + "servertype": "external", + "gdbTarget": "localhost:3333", + "gdbPath": "${command:raspberry-pi-pico.getGDBPath}", + "device": "${command:raspberry-pi-pico.getChipUppercase}", + "svdFile": "${userHome}/.pico-sdk/sdk/2.2.0/src/${command:raspberry-pi-pico.getChip}/hardware_regs/${command:raspberry-pi-pico.getChipUppercase}.svd", + "runToEntryPoint": "main", + // Fix for no_flash binaries, where monitor reset halt doesn't do what is expected + // Also works fine for flash binaries + "overrideLaunchCommands": [ + "monitor reset init", + "load \"${command:raspberry-pi-pico.launchTargetPath}\"" + ] + }, + ] } diff --git a/0x0005_intro-to-variables/.vscode/settings.json b/0x0005_intro-to-variables/.vscode/settings.json index 8ad90e8..cdb8e61 100644 --- a/0x0005_intro-to-variables/.vscode/settings.json +++ b/0x0005_intro-to-variables/.vscode/settings.json @@ -1,30 +1,40 @@ { - // 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" + "cmake.showSystemKits": false, + "cmake.options.statusBarVisibility": "hidden", + "cmake.options.advanced": { + "build": { + "statusBarVisibility": "hidden" }, "launch": { - "visibility": "hidden" + "statusBarVisibility": "hidden" }, - "build": { - "visibility": "hidden" - }, - "buildTarget": { - "visibility": "hidden" + "debug": { + "statusBarVisibility": "hidden" } }, - "cmake.buildBeforeRun": true, - "cmake.configureOnOpen": true, - "cmake.configureSettings": { - "CMAKE_MODULE_PATH": "${env:PICO_INSTALL_PATH}/pico-sdk-tools" - }, + "cmake.configureOnEdit": false, + "cmake.automaticReconfigure": false, + "cmake.configureOnOpen": false, "cmake.generator": "Ninja", - "C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools", - "C_Cpp.errorSquiggles": "enabled", - "files.associations": { - "stdlib.h": "c" - } + "cmake.cmakePath": "${userHome}/.pico-sdk/cmake/v3.31.5/bin/cmake", + "C_Cpp.debugShortcut": false, + "terminal.integrated.env.windows": { + "PICO_SDK_PATH": "${env:USERPROFILE}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:USERPROFILE}/.pico-sdk/toolchain/14_2_Rel1", + "Path": "${env:USERPROFILE}/.pico-sdk/toolchain/14_2_Rel1/bin;${env:USERPROFILE}/.pico-sdk/picotool/2.2.0/picotool;${env:USERPROFILE}/.pico-sdk/cmake/v3.31.5/bin;${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1;${env:PATH}" + }, + "terminal.integrated.env.osx": { + "PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1", + "PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.2.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.31.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" + }, + "terminal.integrated.env.linux": { + "PICO_SDK_PATH": "${env:HOME}/.pico-sdk/sdk/2.2.0", + "PICO_TOOLCHAIN_PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1", + "PATH": "${env:HOME}/.pico-sdk/toolchain/14_2_Rel1/bin:${env:HOME}/.pico-sdk/picotool/2.2.0/picotool:${env:HOME}/.pico-sdk/cmake/v3.31.5/bin:${env:HOME}/.pico-sdk/ninja/v1.12.1:${env:PATH}" + }, + "raspberry-pi-pico.cmakeAutoConfigure": true, + "raspberry-pi-pico.useCmakeTools": false, + "raspberry-pi-pico.cmakePath": "${HOME}/.pico-sdk/cmake/v3.31.5/bin/cmake", + "raspberry-pi-pico.ninjaPath": "${HOME}/.pico-sdk/ninja/v1.12.1/ninja" } diff --git a/0x0005_intro-to-variables/.vscode/tasks.json b/0x0005_intro-to-variables/.vscode/tasks.json index a437c2f..f427bf0 100644 --- a/0x0005_intro-to-variables/.vscode/tasks.json +++ b/0x0005_intro-to-variables/.vscode/tasks.json @@ -1,29 +1,102 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "Flash", - "type": "shell", - "command": "openocd", - "args": [ - "-f", - "interface/cmsis-dap.cfg", - "-f", - "target/rp2040.cfg", - "-c", - "adapter speed 1000; program {${command:cmake.launchTargetPath}} verify reset exit" - ], - "problemMatcher": [] - }, - { - "label": "Build", - "type": "cmake", - "command": "build", - "problemMatcher": "$gcc", - "group": { - "kind": "build", - "isDefault": true - } - } - ] + "version": "2.0.0", + "tasks": [ + { + "label": "Compile Project", + "type": "process", + "isBuildCommand": true, + "command": "${userHome}/.pico-sdk/ninja/v1.12.1/ninja", + "args": ["-C", "${workspaceFolder}/build"], + "group": "build", + "presentation": { + "reveal": "always", + "panel": "dedicated" + }, + "problemMatcher": "$gcc", + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/ninja/v1.12.1/ninja.exe" + } + }, + { + "label": "Run Project", + "type": "process", + "command": "${env:HOME}/.pico-sdk/picotool/2.2.0/picotool/picotool", + "args": [ + "load", + "${command:raspberry-pi-pico.launchTargetPath}", + "-fx" + ], + "presentation": { + "reveal": "always", + "panel": "dedicated" + }, + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/picotool/2.2.0/picotool/picotool.exe" + } + }, + { + "label": "Flash", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/${command:raspberry-pi-pico.getTarget}.cfg", + "-c", + "adapter speed 5000; program \"${command:raspberry-pi-pico.launchTargetPath}\" verify reset exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + }, + { + "label": "Rescue Reset", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/${command:raspberry-pi-pico.getChip}-rescue.cfg", + "-c", + "adapter speed 5000; reset halt; exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + }, + { + "label": "Risc-V Reset (RP2350)", + "type": "process", + "command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + "args": [ + "-s", + "${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts", + "-c", + "set USE_CORE { rv0 rv1 cm0 cm1 }", + "-f", + "interface/cmsis-dap.cfg", + "-f", + "target/rp2350.cfg", + "-c", + "adapter speed 5000; init;", + "-c", + "write_memory 0x40120158 8 { 0x3 }; echo [format \"Info : ARCHSEL 0x%02x\" [read_memory 0x40120158 8 1]];", + "-c", + "reset halt; targets rp2350.rv0; echo [format \"Info : ARCHSEL_STATUS 0x%02x\" [read_memory 0x4012015C 8 1]]; exit" + ], + "problemMatcher": [], + "windows": { + "command": "${env:USERPROFILE}/.pico-sdk/openocd/0.12.0+dev/openocd.exe", + } + } + ] } diff --git a/0x0005_intro-to-variables/main.c b/0x0005_intro-to-variables/0x0005_intro-to-variables.c similarity index 100% rename from 0x0005_intro-to-variables/main.c rename to 0x0005_intro-to-variables/0x0005_intro-to-variables.c diff --git a/0x0005_intro-to-variables/CMakeLists.txt b/0x0005_intro-to-variables/CMakeLists.txt index 25e5ce4..673ff61 100644 --- a/0x0005_intro-to-variables/CMakeLists.txt +++ b/0x0005_intro-to-variables/CMakeLists.txt @@ -1,21 +1,57 @@ +# Generated Cmake Pico project file + cmake_minimum_required(VERSION 3.13) -include(pico_sdk_import.cmake) -project(0x0001_hello-world C CXX ASM) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +# Initialise pico_sdk from installed location +# (note this can come from environment, CMake cache etc) + +# == DO NOT EDIT THE FOLLOWING LINES for the Raspberry Pi Pico VS Code Extension to work == +if(WIN32) + set(USERHOME $ENV{USERPROFILE}) +else() + set(USERHOME $ENV{HOME}) +endif() +set(sdkVersion 2.2.0) +set(toolchainVersion 14_2_Rel1) +set(picotoolVersion 2.2.0) +set(picoVscode ${USERHOME}/.pico-sdk/cmake/pico-vscode.cmake) +if (EXISTS ${picoVscode}) + include(${picoVscode}) +endif() +# ==================================================================================== +set(PICO_BOARD pico2 CACHE STRING "Board type") + +# Pull in Raspberry Pi Pico SDK (must be before project) +include(pico_sdk_import.cmake) + +project(0x0005_intro-to-variables C CXX ASM) + +# Initialise the Raspberry Pi Pico SDK pico_sdk_init() -add_executable(0x0005_intro-to-variables - main.c -) +# Add executable. Default name is the project name, version 0.1 -pico_enable_stdio_usb(0x0005_intro-to-variables 1) +add_executable(0x0005_intro-to-variables 0x0005_intro-to-variables.c ) + +pico_set_program_name(0x0005_intro-to-variables "0x0005_intro-to-variables") +pico_set_program_version(0x0005_intro-to-variables "0.1") + +# Modify the below lines to enable/disable output over UART/USB pico_enable_stdio_uart(0x0005_intro-to-variables 1) +pico_enable_stdio_usb(0x0005_intro-to-variables 0) + +# Add the standard library to the build +target_link_libraries(0x0005_intro-to-variables + pico_stdlib) + +# Add the standard include files to the build +target_include_directories(0x0005_intro-to-variables PRIVATE + ${CMAKE_CURRENT_LIST_DIR} +) pico_add_extra_outputs(0x0005_intro-to-variables) -target_link_libraries(0x0005_intro-to-variables - pico_stdlib -) diff --git a/0x0005_intro-to-variables/pico_sdk_import.cmake b/0x0005_intro-to-variables/pico_sdk_import.cmake index 65f8a6f..d493cc2 100644 --- a/0x0005_intro-to-variables/pico_sdk_import.cmake +++ b/0x0005_intro-to-variables/pico_sdk_import.cmake @@ -3,6 +3,28 @@ # This can be dropped into an external project to help locate this SDK # It should be include()ed prior to project() +# Copyright 2020 (c) 2020 Raspberry Pi (Trading) Ltd. +# +# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the +# following conditions are met: +# +# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following +# disclaimer. +# +# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided with the distribution. +# +# 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products +# derived from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, +# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + if (DEFINED ENV{PICO_SDK_PATH} AND (NOT PICO_SDK_PATH)) set(PICO_SDK_PATH $ENV{PICO_SDK_PATH}) message("Using PICO_SDK_PATH from environment ('${PICO_SDK_PATH}')") @@ -18,9 +40,20 @@ if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_PATH} AND (NOT PICO_SDK_FETCH_FROM_GIT_P message("Using PICO_SDK_FETCH_FROM_GIT_PATH from environment ('${PICO_SDK_FETCH_FROM_GIT_PATH}')") endif () +if (DEFINED ENV{PICO_SDK_FETCH_FROM_GIT_TAG} AND (NOT PICO_SDK_FETCH_FROM_GIT_TAG)) + set(PICO_SDK_FETCH_FROM_GIT_TAG $ENV{PICO_SDK_FETCH_FROM_GIT_TAG}) + message("Using PICO_SDK_FETCH_FROM_GIT_TAG from environment ('${PICO_SDK_FETCH_FROM_GIT_TAG}')") +endif () + +if (PICO_SDK_FETCH_FROM_GIT AND NOT PICO_SDK_FETCH_FROM_GIT_TAG) + set(PICO_SDK_FETCH_FROM_GIT_TAG "master") + message("Using master as default value for PICO_SDK_FETCH_FROM_GIT_TAG") +endif() + set(PICO_SDK_PATH "${PICO_SDK_PATH}" CACHE PATH "Path to the Raspberry Pi Pico SDK") set(PICO_SDK_FETCH_FROM_GIT "${PICO_SDK_FETCH_FROM_GIT}" CACHE BOOL "Set to ON to fetch copy of SDK from git if not otherwise locatable") set(PICO_SDK_FETCH_FROM_GIT_PATH "${PICO_SDK_FETCH_FROM_GIT_PATH}" CACHE FILEPATH "location to download SDK") +set(PICO_SDK_FETCH_FROM_GIT_TAG "${PICO_SDK_FETCH_FROM_GIT_TAG}" CACHE FILEPATH "release tag for SDK") if (NOT PICO_SDK_PATH) if (PICO_SDK_FETCH_FROM_GIT) @@ -29,25 +62,40 @@ if (NOT PICO_SDK_PATH) if (PICO_SDK_FETCH_FROM_GIT_PATH) get_filename_component(FETCHCONTENT_BASE_DIR "${PICO_SDK_FETCH_FROM_GIT_PATH}" REALPATH BASE_DIR "${CMAKE_SOURCE_DIR}") endif () - # GIT_SUBMODULES_RECURSE was added in 3.17 - if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17.0") - FetchContent_Declare( - pico_sdk - GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk - GIT_TAG master - GIT_SUBMODULES_RECURSE FALSE - ) - else () - FetchContent_Declare( - pico_sdk - GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk - GIT_TAG master - ) - endif () + FetchContent_Declare( + pico_sdk + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + ) if (NOT pico_sdk) message("Downloading Raspberry Pi Pico SDK") - FetchContent_Populate(pico_sdk) + # GIT_SUBMODULES_RECURSE was added in 3.17 + if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17.0") + FetchContent_Populate( + pico_sdk + QUIET + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + GIT_SUBMODULES_RECURSE FALSE + + SOURCE_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-src + BINARY_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-build + SUBBUILD_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-subbuild + ) + else () + FetchContent_Populate( + pico_sdk + QUIET + GIT_REPOSITORY https://github.com/raspberrypi/pico-sdk + GIT_TAG ${PICO_SDK_FETCH_FROM_GIT_TAG} + + SOURCE_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-src + BINARY_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-build + SUBBUILD_DIR ${FETCHCONTENT_BASE_DIR}/pico_sdk-subbuild + ) + endif () + set(PICO_SDK_PATH ${pico_sdk_SOURCE_DIR}) endif () set(FETCHCONTENT_BASE_DIR ${FETCHCONTENT_BASE_DIR_SAVE})