mirror of
https://github.com/mytechnotalent/Embedded-Hacking.git
synced 2026-05-19 22:38:05 +02:00
d072ec5946
- Restructure flat files into Inc/ (headers) and Src/ (sources) - Replace constants.h with rp2350.h register layer (datasheet-verified) - Add full Doxygen docstrings on all files, functions, and structs - Replace build.bat/clean.bat with cross-platform Makefile - Fix GPIO_IN offset (0x004), XOSC COUNT offset (0x10), SRAM size (520K) - Rename blink_* API to led_* (name after peripheral, not feature) - Build outputs to build/ directory - Cross-platform .vscode configs (Windows/macOS/Linux)
128 lines
3.9 KiB
JSON
128 lines
3.9 KiB
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Compile Project",
|
|
"type": "shell",
|
|
"command": "make",
|
|
"group": {
|
|
"kind": "build",
|
|
"isDefault": true
|
|
},
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "dedicated"
|
|
},
|
|
"problemMatcher": "$gcc",
|
|
"windows": {
|
|
"command": ".\\build.bat"
|
|
}
|
|
},
|
|
{
|
|
"label": "Clean Project",
|
|
"type": "shell",
|
|
"command": "make clean",
|
|
"group": "build",
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "dedicated"
|
|
},
|
|
"problemMatcher": [],
|
|
"windows": {
|
|
"command": ".\\clean.bat"
|
|
}
|
|
},
|
|
{
|
|
"label": "Run Project",
|
|
"type": "shell",
|
|
"command": "${userHome}/.pico-sdk/picotool/2.2.0-a4/picotool/picotool",
|
|
"args": [
|
|
"load",
|
|
"build/uart.uf2",
|
|
"-fx"
|
|
],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "dedicated"
|
|
},
|
|
"problemMatcher": [],
|
|
"dependsOn": [
|
|
"Compile Project"
|
|
],
|
|
"windows": {
|
|
"command": "${env:USERPROFILE}/.pico-sdk/picotool/2.2.0-a4/picotool/picotool.exe"
|
|
}
|
|
},
|
|
{
|
|
"label": "Flash",
|
|
"type": "shell",
|
|
"command": "${userHome}/.pico-sdk/openocd/0.12.0+dev/openocd",
|
|
"args": [
|
|
"-s",
|
|
"${userHome}/.pico-sdk/openocd/0.12.0+dev/scripts",
|
|
"-f",
|
|
"interface/cmsis-dap.cfg",
|
|
"-f",
|
|
"target/rp2350.cfg",
|
|
"-c",
|
|
"adapter speed 5000; program build/uart.elf verify reset exit"
|
|
],
|
|
"problemMatcher": [],
|
|
"dependsOn": [
|
|
"Compile Project"
|
|
],
|
|
"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",
|
|
"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",
|
|
"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"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
} |