-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Redo mechanism for gdb in a variety of ways, tested in a virety of situations. * Update minichlink.exe * Add `make gdbclient` as a target and change single step behavior. * Further tweaks to vs code launch (need to backport to template). And, also, improvements to windows GDB. * Optimize pgm-esp32-s2-ch32xx.c * Improve VS Code build * Properly define flash memory section. * Cleanup and unify vscode projects. * Super unbrick mode now unlocked. It just continuously tries to unbrick. * Working on trying to make the v307 unbrick work * Tested working unbrick for v30x (and by extension v20x) * Fix unaligned (start address) writes. * Add vCont support. * remove threads as a feature * Update with s/c parsing * Announce steps. * Fix debug break behavior. * Fixup debug tasks.json double variable.: * Fixed halt/resume on WCH-LinkE --------- Co-authored-by: monte-monte <[email protected]>
- Loading branch information
1 parent
dfa4d25
commit de24aea
Showing
16 changed files
with
633 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,48 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "GDB Debug Target", | ||
"name": "Debug Target", | ||
"type": "cppdbg", | ||
"request": "launch", | ||
"program": "debugprintfdemo.elf", | ||
"program": "${workspaceFolder}/debugprintfdemo.elf", | ||
"args": [], | ||
"stopAtEntry": true, | ||
"cwd": "${workspaceFolder}", | ||
"environment": [], | ||
"externalConsole": false, | ||
"MIMode": "gdb", | ||
"deploySteps": [ | ||
{ | ||
"type": "shell", | ||
"continueOn": "GDBServer", | ||
"command": "make --directory=${workspaceFolder} closechlink flash gdbserver" | ||
}, | ||
], | ||
"preLaunchTask": "run_flash_and_gdbserver", | ||
"setupCommands": [ | ||
{ | ||
"description": "Enable pretty-printing for gdb", | ||
"text": "-enable-pretty-printing", | ||
"ignoreFailures": true | ||
} | ||
], | ||
"svdPath": "${workspaceFolder}/../../misc/CH32V003xx.svd", // extension 'Peripheral Viewer' by mcu-debug (cortex-debug) | ||
"miDebuggerPath": "gdb-multiarch", | ||
"miDebuggerServerAddress": "127.0.0.1:2000" | ||
"miDebuggerServerAddress": "127.0.0.1:2000", | ||
}, | ||
{ | ||
"name": "Run Only (In Terminal)", | ||
"name": "Flash and run in terminal", | ||
"type": "node-terminal", | ||
"request": "launch", | ||
"internalConsoleOptions": "neverOpen", | ||
"command": "make closechlink clean; make flash monitor", | ||
}, | ||
{ | ||
"name": "Compile and Flash", | ||
"type": "node", | ||
"request": "launch", | ||
"program": "", | ||
"preLaunchTask": "run_flash_and_gdbserver", | ||
} | ||
] | ||
} | ||
"internalConsoleOptions": "neverOpen", | ||
"preLaunchTask" : "kill_all_tasks", | ||
"postDebugTask": "run_flash", | ||
"presentation": { | ||
"hidden": false, | ||
"group": "terminaloutput", | ||
"order": 1 | ||
}, | ||
"runtimeExecutable": "echo" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,35 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "RISCV32EC", | ||
"name": "Linux", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/../../ch32v003fun", | ||
"${workspaceFolder}/../../extralibs", | ||
"/usr/include/newlib" //why? the configurationProvider ought to find this | ||
"${workspaceFolder}/../../ch32v003fun" | ||
], | ||
"defines": [ | ||
"CH32V003", | ||
"__riscv", | ||
"USE_SIGNALS", | ||
"CH32V003FUN_BASE" | ||
"defines": [], | ||
"compilerPath": "/usr/bin/clang", | ||
"cppStandard": "c++20", | ||
"intelliSenseMode": "linux-clang-x64", | ||
"compilerArgs": [ | ||
"-DCH32V003FUN_BASE" | ||
], | ||
"configurationProvider": "ms-vscode.makefile-tools" | ||
}, | ||
{ | ||
"name": "Win32", | ||
"includePath": [ | ||
"${workspaceFolder}/**", | ||
"${workspaceFolder}/../../ch32v003fun" | ||
], | ||
"defines": [], | ||
"compilerPath": "riscv64-unknown-elf-gcc-10.1.0.exe", | ||
"cppStandard": "c++20", | ||
"compilerArgs": [ | ||
"-DCH32V003FUN_BASE" | ||
], | ||
"compilerPath": "/usr/bin/riscv64-unknown-elf-gcc", | ||
"cStandard": "gnu11", | ||
"cppStandard": "gnu++17", | ||
"intelliSenseMode": "gcc-x86", //works. Someday, intellisense might get riscv modes | ||
"compilerArgs": [], | ||
"configurationProvider": "ms-vscode.makefile-tools" | ||
} | ||
], | ||
"version": 4 | ||
} | ||
"version": 4, | ||
"enableConfigurationSquiggles": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.