launch.json 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. // "useSingleResult": true,
  11. // "env": {
  12. // "PATH": "${workspaceFolder};${env:PATH}"
  13. // },
  14. // "command": "./fbt get_blackmagic",
  15. // "description": "Get Blackmagic device",
  16. // }
  17. // },
  18. ],
  19. "configurations": [
  20. {
  21. "name": "Attach FW (ST-Link)",
  22. "cwd": "${workspaceFolder}",
  23. "executable": "@UFBT_FIRMWARE_ELF@",
  24. "request": "attach",
  25. "type": "cortex-debug",
  26. "servertype": "openocd",
  27. "device": "stlink",
  28. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  29. "rtos": "FreeRTOS",
  30. "configFiles": [
  31. "interface/stlink.cfg",
  32. "@UFBT_DEBUG_DIR@/stm32wbx.cfg"
  33. ],
  34. "postAttachCommands": [
  35. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  36. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  37. ],
  38. // "showDevDebugOutput": "raw",
  39. },
  40. {
  41. "name": "Attach FW (DAP)",
  42. "cwd": "${workspaceFolder}",
  43. "executable": "@UFBT_FIRMWARE_ELF@",
  44. "request": "attach",
  45. "type": "cortex-debug",
  46. "servertype": "openocd",
  47. "device": "cmsis-dap",
  48. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  49. "rtos": "FreeRTOS",
  50. "configFiles": [
  51. "interface/cmsis-dap.cfg",
  52. "@UFBT_DEBUG_DIR@/stm32wbx.cfg"
  53. ],
  54. "postAttachCommands": [
  55. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  56. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  57. ],
  58. // "showDevDebugOutput": "raw",
  59. },
  60. // {
  61. // "name": "Attach FW (blackmagic)",
  62. // "cwd": "${workspaceFolder}",
  63. // "executable": "@UFBT_FIRMWARE_ELF@",
  64. // "request": "attach",
  65. // "type": "cortex-debug",
  66. // "servertype": "external",
  67. // "gdbTarget": "${input:BLACKMAGIC}",
  68. // "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  69. // "rtos": "FreeRTOS",
  70. // "postAttachCommands": [
  71. // "monitor swdp_scan",
  72. // "attach 1",
  73. // "set confirm off",
  74. // "set mem inaccessible-by-default off",
  75. // "source @UFBT_DEBUG_DIR@/flipperapps.py",
  76. // "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  77. // ]
  78. // // "showDevDebugOutput": "raw",
  79. // },
  80. {
  81. "name": "Attach FW (JLink)",
  82. "cwd": "${workspaceFolder}",
  83. "executable": "@UFBT_FIRMWARE_ELF@",
  84. "request": "attach",
  85. "type": "cortex-debug",
  86. "servertype": "jlink",
  87. "interface": "swd",
  88. "device": "STM32WB55RG",
  89. "svdFile": "@UFBT_DEBUG_DIR@/STM32WB55_CM4.svd",
  90. "rtos": "FreeRTOS",
  91. "postAttachCommands": [
  92. "source @UFBT_DEBUG_DIR@/flipperapps.py",
  93. "fap-set-debug-elf-root @UFBT_DEBUG_ELF_DIR@"
  94. ]
  95. // "showDevDebugOutput": "raw",
  96. },
  97. ]
  98. }