Skip to content

Commit

Permalink
working prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtio committed Nov 11, 2024
0 parents commit b93c8ed
Show file tree
Hide file tree
Showing 16 changed files with 2,594 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[target.'cfg(all(target_arch = "arm", target_os = "none"))']
#runner = "elf2uf2-rs -d" # "probe-rs run --chip RP2040"
runner = "probe-rs run --chip RP2040"

[build]
target = "thumbv6m-none-eabi" # Cortex-M0 and Cortex-M0+

[env]
DEFMT_LOG = "debug"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/target
/extra
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "${defaultBuildTask}",
"type": "probe-rs-debug",
"request": "launch",
"name": "probe-rs",
"cwd": "${workspaceFolder}",
// "connectUnderReset": true,
"chip": "RP2040",
"flashingConfig": {
"flashingEnabled": true,
// "haltAfterReset": true
},
"consoleLogLevel": "Console",
"coreConfigs": [
{
"rttEnabled": true,
"coreIndex": 0,
"programBinary": "${workspaceFolder}/target/thumbv6m-none-eabi/debug/${workspaceFolderBasename}"
}
]
}
]
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "rust: cargo build"
}
]
}
Loading

0 comments on commit b93c8ed

Please sign in to comment.