Skip to content

Instantly share code, notes, and snippets.

@sago35
Last active September 14, 2024 11:05
Show Gist options
  • Select an option

  • Save sago35/fd1b23d4ac9ac689ae84dee0be8c13b1 to your computer and use it in GitHub Desktop.

Select an option

Save sago35/fd1b23d4ac9ac689ae84dee0be8c13b1 to your computer and use it in GitHub Desktop.
TinyGo + VSCode + Cortex-Debug for Wio Terminal (ATSAMD51P19A)
{
"version": "0.2.0",
"configurations": [
{
"type": "cortex-debug",
"servertype": "openocd",
"request": "launch",
"name": "tinygo-debug",
"runToEntryPoint": "main.main",
"executable": "${workspaceRoot}/out.elf",
"configFiles": [
"interface/cmsis-dap.cfg",
"target/atsame5x.cfg"
],
"preLaunchTask": "tinygo build task",
"cwd": "${workspaceRoot}",
"gdbpath": "C:/Program Files (x86)/GNU Arm Embedded Toolchain/10 2020-q4-major/bin/arm-none-eabi-gdb.exe",
"svdFile": "${workspaceRoot}/lib/cmsis-svd/data/Atmel/ATSAMD51P19A.svd"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "tinygo build task",
"type": "shell",
"command": "tinygo build -o out.elf -target wioterminal -size short -opt 1 ./src/examples/blinky1",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
@sago35
Copy link
Author

sago35 commented Feb 13, 2022

テストで使っている環境はこちら。

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment