Advertisement
Guest User

Untitled

a guest
Jun 18th, 2025
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1.  
  2. {
  3. // Use IntelliSense to learn about possible attributes.
  4. // Hover to view descriptions of existing attributes.
  5. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  6. "version": "0.2.0",
  7. "configurations": [
  8. {
  9. "name": "Cortex Debug",
  10. "cwd": "${workspaceRoot}",
  11. "executable": "${workspaceRoot}/build/mine.elf",
  12. "request": "launch",
  13. "type": "cortex-debug",
  14. "servertype": "openocd",
  15. "device": "STM32G491",
  16. "runToEntryPoint": "app_main",
  17. "configFiles": [
  18. "interface/stlink-dap.cfg",
  19. "target/stm32g4x.cfg"
  20. ],
  21. "openOCDLaunchCommands": [
  22. "adapter serial 004F003B3331510833323639"
  23. ],
  24. "searchDir": [
  25. "C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mpu.debug.openocd_2.0.400.202211031253/resources/openocd/st_scripts",
  26. "C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.0.400.202211031408/resources/openocd/st_scripts"
  27.  
  28. ],
  29. "preLaunchTask": "Build",
  30. "svdFile": "${workspaceRoot}/STM32G491xx.svd",
  31. },
  32. {
  33. "type": "node",
  34. "request": "launch",
  35. "name": "Launch Program",
  36. "program": "${workspaceFolder}/${input:pickProgram}"
  37. }
  38. {
  39. "name": "Cortex Debug - Attach",
  40. "cwd": "${workspaceRoot}",
  41. "executable": "${workspaceRoot}/build/mine.elf",
  42. "request": "attach",
  43. "type": "cortex-debug",
  44. "servertype": "openocd",
  45. "device": "STM32G491",
  46. "runToEntryPoint": "app_main",
  47. "configFiles": [
  48. "interface/stlink-dap.cfg",
  49. "target/stm32g4x.cfg"
  50. ],
  51. "openOCDLaunchCommands": [
  52. "adapter serial 004F003B3331510833323639"
  53. ],
  54. "searchDir": [
  55. "C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mpu.debug.openocd_2.0.400.202211031253/resources/openocd/st_scripts",
  56. "C:/ST/STM32CubeIDE_1.10.1/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.debug.openocd_2.0.400.202211031408/resources/openocd/st_scripts"
  57.  
  58. ],
  59. "preLaunchTask": "Build & Flash",
  60. "svdFile": "${workspaceRoot}/STM32G491xx.svd",
  61. },
  62. {
  63. "type": "node",
  64. "request": "launch",
  65. "name": "Launch Program",
  66. "program": "${workspaceFolder}/${input:pickProgram}"
  67. }
  68. ],
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement