startup works, stepping works
This commit is contained in:
19
vscode/launch.json
Normal file
19
vscode/launch.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug Zedboard",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/target/armv7a-none-eabihf/debug/zedboard-blinky-rs",
|
||||
"miDebuggerServerAddress": "localhost:3000",
|
||||
"miDebuggerPath": "/usr/bin/gdb-multiarch",
|
||||
"stopAtEntry": false,
|
||||
"useExtendedRemote": true,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"externalConsole": false,
|
||||
"MIMode": "gdb",
|
||||
"preLaunchTask": "zedboard-init-and-flash"
|
||||
},
|
||||
]
|
||||
}
|
43
vscode/tasks.json
Normal file
43
vscode/tasks.json
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"options": {
|
||||
"env": {
|
||||
"XLNX_TOOLS": "/tools/Xilinx/Vitis/2024.1",
|
||||
"TCL_SCRIPT": "~/ROMEO/romeo-fpga-designs/zedboard/zed_sdt/ps7_init.tcl",
|
||||
"BITSTREAM": "~/ROMEO/romeo-fpga-designs/zedboard/zed_sdt/zedboard_wrapper.bit"
|
||||
}
|
||||
},
|
||||
"tasks": [
|
||||
{
|
||||
"label": "zedboard-init-and-flash",
|
||||
"type": "shell",
|
||||
"command": "${workspaceFolder}/scripts/zynq7000-ps-pl-init.py",
|
||||
"args": [
|
||||
"--tools",
|
||||
"${XLNX_TOOLS}",
|
||||
"--itcl",
|
||||
"${TCL_SCRIPT}",
|
||||
"--bit",
|
||||
"${BITSTREAM}",
|
||||
"-a",
|
||||
"${workspaceFolder}/target//armv7a-none-eabihf/debug/zedboard-blinky-rs"
|
||||
],
|
||||
"dependsOn": [
|
||||
"cargo-build-zedboard"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "cargo-build-zedboard",
|
||||
"type": "shell",
|
||||
"command": "~/.cargo/bin/cargo", // note: full path to the cargo
|
||||
"args": [
|
||||
"build",
|
||||
],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user