diff --git a/.gitignore b/.gitignore index 15b1bd1..580425c 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,6 @@ .DS_Store -/.pio - /set # Byte-compiled / optimized / DLL files @@ -124,5 +122,3 @@ dmypy.json # Pyre type checker .pyre/ -.vscode - diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..4da161e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,36 @@ +// The format of this file is specified in https://probe.rs/docs/tools/debugger/#start-a-debug-session-with-minimum-configuration +{ + "version": "0.2.0", + "configurations": [ + { + "preLaunchTask": "rust: cargo build", + "type": "probe-rs-debug", + "request": "launch", + "name": "rp2040-project", + "cwd": "${workspaceFolder}/embedded", + "chip": "rp2040", + // RP2040 doesn't support connectUnderReset + "connectUnderReset": false, + "speed": 4000, + "runtimeExecutable": "probe-rs", + "runtimeArgs": ["dap-server"], + "flashingConfig": { + "flashingEnabled": true, + "haltAfterReset": false + }, + "coreConfigs": [ + { + "coreIndex": 0, + "programBinary": "target/thumbv6m-none-eabi/debug/rp2040-project-template", + "rttEnabled": true + // Uncomment this if you've downloaded the SVD from + // https://github.com/raspberrypi/pico-sdk/raw/1.3.1/src/rp2040/hardware_regs/rp2040.svd + // and placed it in the .vscode directory + // "svdFile": "./.vscode/rp2040.svd", + } + ], + "consoleLogLevel": "Info", //Error, Warn, Info, Debug, Trace + "wireProtocol": "Swd" + } + ] +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..4c68e05 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "cSpell.words": ["teensylc"], + "rust-analyzer.cargo.target": "thumbv6m-none-eabi", + "rust-analyzer.check.allTargets": false +}