launch.json 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. "source debug/flipperapps.py",
  36. // "source debug/FreeRTOS/FreeRTOS.py",
  37. // "svd_load debug/STM32WB55_CM4.svd"
  38. ]
  39. // "showDevDebugOutput": "raw",
  40. },
  41. {
  42. "name": "Attach FW (blackmagic)",
  43. "cwd": "${workspaceFolder}",
  44. "executable": "./build/latest/firmware.elf",
  45. "request": "attach",
  46. "type": "cortex-debug",
  47. "servertype": "external",
  48. "gdbTarget": "${input:BLACKMAGIC}",
  49. "svdFile": "./debug/STM32WB55_CM4.svd",
  50. "rtos": "FreeRTOS",
  51. "postAttachCommands": [
  52. "monitor swdp_scan",
  53. "attach 1",
  54. "set confirm off",
  55. "set mem inaccessible-by-default off",
  56. "source debug/flipperapps.py",
  57. // "compare-sections",
  58. ]
  59. // "showDevDebugOutput": "raw",
  60. },
  61. {
  62. "name": "Attach FW (JLink)",
  63. "cwd": "${workspaceFolder}",
  64. "executable": "./build/latest/firmware.elf",
  65. "request": "attach",
  66. "type": "cortex-debug",
  67. "servertype": "jlink",
  68. "interface": "swd",
  69. "device": "STM32WB55RG",
  70. "svdFile": "./debug/STM32WB55_CM4.svd",
  71. "rtos": "FreeRTOS",
  72. "postAttachCommands": [
  73. "source debug/flipperapps.py",
  74. ]
  75. // "showDevDebugOutput": "raw",
  76. },
  77. {
  78. "name": "fbt debug",
  79. "type": "python",
  80. "request": "launch",
  81. "program": "./lib/scons/scripts/scons.py",
  82. "args": [
  83. "plugin_dist"
  84. ]
  85. },
  86. {
  87. "name": "python debug",
  88. "type": "python",
  89. "request": "launch",
  90. "program": "${file}",
  91. "args": []
  92. }
  93. ]
  94. }