2022-12-09 23:22:35 +08:00
|
|
|
{
|
|
|
|
|
"tasks": [
|
2023-09-26 23:40:54 +08:00
|
|
|
{
|
|
|
|
|
"type": "shell",
|
|
|
|
|
"label": "download",
|
|
|
|
|
"command": "openocd",
|
|
|
|
|
"args": [
|
|
|
|
|
"-f",
|
2024-01-19 22:37:13 +08:00
|
|
|
"interface/cmsis-dap.cfg",
|
2023-09-26 23:40:54 +08:00
|
|
|
"-f",
|
2024-01-19 22:37:13 +08:00
|
|
|
"target/stm32f1x.cfg",
|
2023-09-26 23:40:54 +08:00
|
|
|
"-c","init",
|
|
|
|
|
"-c","targets;reset halt;wait_halt;poll",
|
|
|
|
|
"-c","flash write_image erase unlock build/output/kernel.img 0x08000000",
|
|
|
|
|
"-c","flash erase_check 0;reset run; shutdown"
|
|
|
|
|
],
|
|
|
|
|
"problemMatcher": [
|
|
|
|
|
"$gcc"
|
|
|
|
|
],
|
|
|
|
|
"group": "build",
|
|
|
|
|
"dependsOn": "Build"
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-09 23:22:35 +08:00
|
|
|
],
|
|
|
|
|
"version": "2.0.0"
|
|
|
|
|
}
|