startup works, stepping works

This commit is contained in:
2025-02-24 18:27:35 +01:00
parent 86323a3ff7
commit 1d298b547d
7 changed files with 174 additions and 62 deletions

19
vscode/launch.json Normal file
View 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
View 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
}
},
]
}