launch.json 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {
  2. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  3. "version": "0.2.0",
  4. "inputs": [
  5. {
  6. "id": "BLACKMAGIC",
  7. "type": "command",
  8. "command": "shellCommand.execute",
  9. "args": {
  10. "description": "Get Blackmagic device",
  11. "useSingleResult": true,
  12. "command": "ufbt -s get_blackmagic",
  13. }
  14. },
  15. ],
  16. "configurations": [
  17. {
  18. "name": "Attach FW (ST-Link)",
  19. "cwd": "${workspaceFolder}",
  20. "executable": "@UFBT_FIRMWARE_ELF@",
  21. "request": "attach",
  22. "type": "cortex-debug",
  23. "servertype": "openocd",
  24. "device": "stlink",
  25. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  26. "rtos": "FreeRTOS",
  27. "configFiles": [
  28. "interface/stlink.cfg",
  29. "@UFBT_DEBUG_DIR@/stm32wbx.cfg"
  30. ],
  31. "postAttachCommands": [
  32. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  33. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  34. ],
  35. // "showDevDebugOutput": "raw",
  36. },
  37. {
  38. "name": "Attach FW (DAP)",
  39. "cwd": "${workspaceFolder}",
  40. "executable": "@UFBT_FIRMWARE_ELF@",
  41. "request": "attach",
  42. "type": "cortex-debug",
  43. "servertype": "openocd",
  44. "device": "cmsis-dap",
  45. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  46. "rtos": "FreeRTOS",
  47. "configFiles": [
  48. "interface/cmsis-dap.cfg",
  49. "@UFBT_DEBUG_DIR@/stm32wbx.cfg"
  50. ],
  51. "postAttachCommands": [
  52. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  53. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  54. ],
  55. // "showDevDebugOutput": "raw",
  56. },
  57. {
  58. "name": "Attach FW (blackmagic)",
  59. "cwd": "${workspaceFolder}",
  60. "executable": "@UFBT_FIRMWARE_ELF@",
  61. "request": "attach",
  62. "type": "cortex-debug",
  63. "servertype": "external",
  64. "gdbTarget": "${input:BLACKMAGIC}",
  65. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  66. "rtos": "FreeRTOS",
  67. "postAttachCommands": [
  68. "monitor swdp_scan",
  69. "attach 1",
  70. "set confirm off",
  71. "set mem inaccessible-by-default off",
  72. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  73. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  74. ]
  75. // "showDevDebugOutput": "raw",
  76. },
  77. {
  78. "name": "Attach FW (JLink)",
  79. "cwd": "${workspaceFolder}",
  80. "executable": "@UFBT_FIRMWARE_ELF@",
  81. "request": "attach",
  82. "type": "cortex-debug",
  83. "servertype": "jlink",
  84. "interface": "swd",
  85. "device": "STM32WB55RG",
  86. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  87. "rtos": "FreeRTOS",
  88. "postAttachCommands": [
  89. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  90. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  91. ]
  92. // "showDevDebugOutput": "raw",
  93. },
  94. ]
  95. }