launch.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. {
  2. // Используйте IntelliSense, чтобы узнать о возможных атрибутах.
  3. // Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
  4. // Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "cwd": "${workspaceRoot}",
  9. "executable": "build/${input:elf}",
  10. "name": "Load",
  11. "request": "launch",
  12. "type": "cortex-debug",
  13. "servertype": "openocd",
  14. "device": "STM32F407VE",
  15. "svdFile": ".vscode/STM32F40x.svd",
  16. "configFiles": [
  17. "interface/stlink-v2.cfg",
  18. "target/stm32f4x.cfg"
  19. ],
  20. "swoConfig": {
  21. "source": "probe",
  22. "enabled": true,
  23. "swoFrequency": 2000000,
  24. "cpuFrequency": 120000000,
  25. "decoders": [
  26. {
  27. "port": 0,
  28. "label": "Output",
  29. "type": "console",
  30. }
  31. ]
  32. }
  33. },
  34. {
  35. "cwd": "${workspaceRoot}",
  36. "executable": "build/${input:elf}",
  37. "name": "Attach",
  38. "request": "attach",
  39. "type": "cortex-debug",
  40. "servertype": "openocd",
  41. "device": "STM32F407VE",
  42. "svdFile": ".vscode/STM32F40x.svd",
  43. "configFiles": [
  44. "interface/stlink-v2.cfg",
  45. "target/stm32f4x.cfg"
  46. ],
  47. "swoConfig": {
  48. "source": "probe",
  49. "enabled": true,
  50. "swoFrequency": 2000000,
  51. "cpuFrequency": 120000000,
  52. "decoders": [
  53. {
  54. "port": 0,
  55. "label": "Output",
  56. "type": "console",
  57. }
  58. ]
  59. }
  60. },
  61. ],
  62. "inputs": [
  63. {
  64. "id": "elf",
  65. "description": "Select ELF file",
  66. "default": "bt6709/stm32bt6709/stm32bt6709.elf",
  67. "type": "pickString",
  68. "options": [
  69. "iap/iap/iap.elf",
  70. "bt6703/stm32bt6703/stm32bt6703.elf",
  71. "bt6707/stm32bt6707/stm32bt6707.elf",
  72. "bt6709/stm32bt6709/stm32bt6709.elf"
  73. ]
  74. }
  75. ]
  76. }