mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 19:53:08 +00:00
241b4ef6e4
* furi_crash: added C2 status * debug: Added "fw-version" gdb command; vscode: updated configuration to use new command * debug: added fw-info command to debug_other session * Toolbox: versioned structure for Version * debug: fw-version: no longer needs an ELF file loaded * debug: flipperversion: removed unused variable * debug_other: print running fw version Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
103 lines
No EOL
3.6 KiB
JSON
103 lines
No EOL
3.6 KiB
JSON
{
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"inputs": [
|
|
{
|
|
"id": "BLACKMAGIC",
|
|
"type": "command",
|
|
"command": "shellCommand.execute",
|
|
"args": {
|
|
"description": "Get Blackmagic device",
|
|
"useSingleResult": true,
|
|
"command": "ufbt -s get_blackmagic",
|
|
}
|
|
},
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "Attach FW (ST-Link)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "@UFBT_FIRMWARE_ELF@",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"device": "stlink",
|
|
"svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"@UFBT_DEBUG_DIR@/stm32wbx.cfg"
|
|
],
|
|
"postAttachCommands": [
|
|
"source @UFBT_DEBUG_DIR@/flipperversion.py",
|
|
"fw-version",
|
|
"source @UFBT_DEBUG_DIR@/flipperapps.py",
|
|
"fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
|
|
],
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (DAP)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "@UFBT_FIRMWARE_ELF@",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"device": "cmsis-dap",
|
|
"svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"configFiles": [
|
|
"interface/cmsis-dap.cfg",
|
|
"@UFBT_DEBUG_DIR@/stm32wbx.cfg"
|
|
],
|
|
"postAttachCommands": [
|
|
"source @UFBT_DEBUG_DIR@/flipperversion.py",
|
|
"fw-version",
|
|
"source @UFBT_DEBUG_DIR@/flipperapps.py",
|
|
"fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
|
|
],
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (blackmagic)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "@UFBT_FIRMWARE_ELF@",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "external",
|
|
"gdbTarget": "${input:BLACKMAGIC}",
|
|
"svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"postAttachCommands": [
|
|
"monitor swdp_scan",
|
|
"attach 1",
|
|
"set confirm off",
|
|
"set mem inaccessible-by-default off",
|
|
"source @UFBT_DEBUG_DIR@/flipperversion.py",
|
|
"fw-version",
|
|
"source @UFBT_DEBUG_DIR@/flipperapps.py",
|
|
"fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
|
|
]
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (JLink)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "@UFBT_FIRMWARE_ELF@",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "jlink",
|
|
"interface": "swd",
|
|
"device": "STM32WB55RG",
|
|
"svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"postAttachCommands": [
|
|
"source @UFBT_DEBUG_DIR@/flipperversion.py",
|
|
"fw-version",
|
|
"source @UFBT_DEBUG_DIR@/flipperapps.py",
|
|
"fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
|
|
]
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
]
|
|
} |