Now the device id is detected.

This commit is contained in:
François Dausseur
2025-02-12 17:19:33 +01:00
parent a8e7599b96
commit c5fca73cc6
6 changed files with 158 additions and 15 deletions

60
.vscode/launch.json vendored
View File

@@ -5,11 +5,11 @@
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"name": "bs list",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/app/bs",
"args": ["-l", "scan"],
"args": ["-l"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
@@ -26,8 +26,58 @@
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
],
"preLaunchTask": "build",
},
{
"name": "bs scan",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/app/bs",
"args": ["-n", "2", "scan"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
},
{
"name": "bs devid",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/app/bs",
"args": ["-n", "2", "-b", "/data/frd/xcku15p_ffve1517.bsd", "-d", "0x14a56093"],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
},
]
}

15
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,15 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"command": "cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. && make",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"]
}
]
}