launch.json 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. // Configure debug launch settings
  2. // Feel free to copy these and modify them for your debugger and MCU
  3. {
  4. "version": "0.2.0",
  5. "projectName": "IN12x5",
  6. "configurations": [
  7. {
  8. "name": "JLink launch",
  9. "cwd": "${workspaceRoot}",
  10. "executable": "${workspaceRoot}/build/Skid.elf",
  11. "request": "launch",
  12. "type": "cortex-debug",
  13. "servertype": "jlink",
  14. "device": "STM32G030F6",
  15. "interface": "swd",
  16. "runToMain": true, // else it starts at reset handler - not interested
  17. "preLaunchTask": "Build all", // configured in tasks.json
  18. // "preLaunchCommands": ["Build all"], // you can execute command instead of task
  19. "svdFile": "STM32G030.svd", // Include svd to watch device peripherals
  20. "swoConfig":
  21. {
  22. "enabled": true,
  23. "cpuFrequency": 240000000,
  24. "swoFrequency": 4000000,
  25. "source": "probe",
  26. "decoders":
  27. [
  28. {
  29. "label": "ITM port 0 output",
  30. "type": "console",
  31. "port": 0,
  32. "showOnStartup": true,
  33. "encoding": "ascii"
  34. }
  35. ]
  36. }
  37. },
  38. {
  39. "name": "JLink attach",
  40. "cwd": "${workspaceRoot}",
  41. "executable": "${workspaceRoot}/build/Skid.elf",
  42. "request": "attach",
  43. "type": "cortex-debug",
  44. "servertype": "jlink",
  45. "device": "STM32G030F6",
  46. "interface": "swd",
  47. "runToMain": true, // else it starts at reset handler - not interested
  48. "preLaunchTask": "Build all", // configured in tasks.json
  49. // "preLaunchCommands": ["Build all"], // you can execute command instead of task
  50. "svdFile": "STM32G030.svd", // Include svd to watch device peripherals
  51. "swoConfig":
  52. {
  53. "enabled": true,
  54. "cpuFrequency": 240000000,
  55. "swoFrequency": 4000000,
  56. "source": "probe",
  57. "decoders":
  58. [
  59. {
  60. "label": "ITM port 0 output",
  61. "type": "console",
  62. "port": 0,
  63. "showOnStartup": true,
  64. "encoding": "ascii"
  65. }
  66. ]
  67. }
  68. },
  69. {
  70. "name": "STlink launch",
  71. "cwd": "${workspaceRoot}",
  72. "executable": "${workspaceRoot}/build/Skid.elf",
  73. "request": "launch",
  74. "type": "cortex-debug",
  75. "servertype": "stutil",
  76. "device": "STM32G030F6",
  77. "interface": "swd",
  78. "runToMain": true, // else it starts at reset handler - not interested
  79. "preLaunchTask": "Build all", // configured in tasks.json
  80. // "preLaunchCommands": ["Build all"], // you can execute command instead of task
  81. "svdFile": "STM32G030.svd", // Include svd to watch device peripherals
  82. "swoConfig": {} // currently (v1.7.0) not supported
  83. },
  84. {
  85. "name": "STlink attach",
  86. "cwd": "${workspaceRoot}",
  87. "executable": "${workspaceRoot}/build/Skid.elf",
  88. "request": "attach",
  89. "type": "cortex-debug",
  90. "servertype": "stutil",
  91. "device": "STM32G030F6",
  92. "interface": "swd",
  93. "runToMain": true, // else it starts at reset handler - not interested
  94. "preLaunchTask": "Build all", // configured in tasks.json
  95. // "preLaunchCommands": ["Build all"], // you can execute command instead of task
  96. "svdFile": "STM32G030.svd", // Include svd to watch device peripherals
  97. "swoConfig": {} // currently (v1.7.0) not supported
  98. },
  99. ]
  100. }