0adad32418
* fbt: fixed py scripts for gdb * fbt: removed compiled dolphin assets from tracked files; resolved cached dependency issues by globally disabling deps cache; changed dependency tracking for dolphin assets * fbt: fix for "resources" node lookup * toolchain: bump to v.16 with scons + x64 win binaries * fbt: using scons from toolchain * vscode: fixed paths for 64-bit Windows toolchain * fbt: added colors! * fbt: moved import validator to ansi lib coloring * fbt: moved COMSTR vars to tools * fbt: custom action for fap dist * fbt: added OPENOCD_ADAPTER_SERIAL configuration var for openocd operations * fbt: added get_stlink target * docs: details on libs for faps * vscode: added DAP config for using Flipper as a debugger for a 2nd Flipper * fbt: blind deps fix for sdk_origin * fbt: sdk: moved deployment actions to pure python * Github: disable disableLicenseExpirationCheck option for pvs Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
118 lines
3.9 KiB
JSON
118 lines
3.9 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"inputs": [
|
|
{
|
|
"id": "BLACKMAGIC",
|
|
"type": "command",
|
|
"command": "shellCommand.execute",
|
|
"args": {
|
|
"useSingleResult": true,
|
|
"env": {
|
|
"PATH": "${workspaceFolder};${env:PATH}"
|
|
},
|
|
"command": "./fbt get_blackmagic",
|
|
"description": "Get Blackmagic device",
|
|
}
|
|
}
|
|
],
|
|
"configurations": [
|
|
{
|
|
"name": "Attach FW (ST-Link)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "./build/latest/firmware.elf",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"device": "stlink",
|
|
"svdFile": "./debug/STM32WB55_CM4.svd",
|
|
// If you're debugging early in the boot process, before OS scheduler is running,
|
|
// you have to comment out the following line.
|
|
"rtos": "FreeRTOS",
|
|
"configFiles": [
|
|
"interface/stlink.cfg",
|
|
"./debug/stm32wbx.cfg",
|
|
],
|
|
"postAttachCommands": [
|
|
// "compare-sections",
|
|
"source debug/flipperapps.py",
|
|
// "source debug/FreeRTOS/FreeRTOS.py",
|
|
// "svd_load debug/STM32WB55_CM4.svd"
|
|
]
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (blackmagic)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "./build/latest/firmware.elf",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "external",
|
|
"gdbTarget": "${input:BLACKMAGIC}",
|
|
"svdFile": "./debug/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"postAttachCommands": [
|
|
"monitor swdp_scan",
|
|
"attach 1",
|
|
"set confirm off",
|
|
"set mem inaccessible-by-default off",
|
|
"source debug/flipperapps.py",
|
|
// "compare-sections",
|
|
]
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (JLink)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "./build/latest/firmware.elf",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "jlink",
|
|
"interface": "swd",
|
|
"device": "STM32WB55RG",
|
|
"svdFile": "./debug/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"postAttachCommands": [
|
|
"source debug/flipperapps.py",
|
|
]
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "Attach FW (DAP)",
|
|
"cwd": "${workspaceFolder}",
|
|
"executable": "./build/latest/firmware.elf",
|
|
"request": "attach",
|
|
"type": "cortex-debug",
|
|
"servertype": "openocd",
|
|
"device": "cmsis-dap",
|
|
"svdFile": "./debug/STM32WB55_CM4.svd",
|
|
"rtos": "FreeRTOS",
|
|
"configFiles": [
|
|
"interface/cmsis-dap.cfg",
|
|
"./debug/stm32wbx.cfg",
|
|
],
|
|
"postAttachCommands": [
|
|
"source debug/flipperapps.py",
|
|
],
|
|
// "showDevDebugOutput": "raw",
|
|
},
|
|
{
|
|
"name": "fbt debug",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "./lib/scons/scripts/scons.py",
|
|
"args": [
|
|
"plugin_dist"
|
|
]
|
|
},
|
|
{
|
|
"name": "python debug",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"program": "${file}",
|
|
"args": []
|
|
}
|
|
]
|
|
} |