launch.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. // Use IntelliSense to learn about possible attributes.
  3. // Hover to view descriptions of existing attributes.
  4. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "inputs": [
  7. {
  8. "id": "BLACKMAGIC",
  9. "type": "command",
  10. "command": "shellCommand.execute",
  11. "args": {
  12. "command": "./fbt get_blackmagic",
  13. "description": "Get Blackmagic device",
  14. }
  15. }
  16. ],
  17. "configurations": [
  18. {
  19. "name": "Attach FW (ST-Link)",
  20. "cwd": "${workspaceFolder}",
  21. "executable": "./build/latest/firmware.elf",
  22. "request": "attach",
  23. "type": "cortex-debug",
  24. "servertype": "openocd",
  25. "device": "stlink",
  26. "svdFile": "./debug/STM32WB55_CM4.svd",
  27. "rtos": "FreeRTOS",
  28. "configFiles": [
  29. "interface/stlink.cfg",
  30. "./debug/stm32wbx.cfg",
  31. ],
  32. "postAttachCommands": [
  33. // "attach 1",
  34. "compare-sections",
  35. ]
  36. // "showDevDebugOutput": "raw",
  37. },
  38. {
  39. "name": "Attach FW (blackmagic)",
  40. "cwd": "${workspaceFolder}",
  41. "executable": "./build/latest/firmware.elf",
  42. "request": "attach",
  43. "type": "cortex-debug",
  44. "servertype": "external",
  45. "gdbTarget": "${input:BLACKMAGIC}",
  46. "svdFile": "./debug/STM32WB55_CM4.svd",
  47. "rtos": "FreeRTOS",
  48. "postAttachCommands": [
  49. "monitor swdp_scan",
  50. "attach 1",
  51. "set confirm off",
  52. "set mem inaccessible-by-default off",
  53. "compare-sections",
  54. ]
  55. // "showDevDebugOutput": "raw",
  56. },
  57. {
  58. "name": "Attach FW (JLink)",
  59. "cwd": "${workspaceFolder}",
  60. "executable": "./build/latest/firmware.elf",
  61. "request": "attach",
  62. "type": "cortex-debug",
  63. "servertype": "jlink",
  64. "interface": "swd",
  65. "device": "STM32WB55RG",
  66. "svdFile": "./debug/STM32WB55_CM4.svd",
  67. "rtos": "FreeRTOS",
  68. // "showDevDebugOutput": "raw",
  69. },
  70. {
  71. "name": "fbt debug",
  72. "type": "python",
  73. "request": "launch",
  74. "program": "./lib/scons/scripts/scons.py",
  75. "args": [
  76. "sdk"
  77. ]
  78. },
  79. {
  80. "name": "python debug",
  81. "type": "python",
  82. "request": "launch",
  83. "program": "${file}",
  84. "args": []
  85. }
  86. ]
  87. }