My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

launch.json 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * Remote debugging on STM32 using the "Cortex Debug" extension.
  3. *
  4. * Copy one or more of the configurations items below into .vscode/launch.json
  5. * to add those debug options to the PlatformIO IDE "Run & Debug" panel.
  6. *
  7. * Examples for BigTreeTech SKR 2 (USB) and Native Simulator. Modify for your own build.
  8. *
  9. * NOTE: The PlatformIO extension will remove items when regenerating launch.json.
  10. */
  11. {
  12. "version": "0.2.0",
  13. "configurations": [
  14. {
  15. "name": "Debug STM32 (ST-Link)",
  16. "request": "launch",
  17. "type": "cortex-debug",
  18. "servertype": "openocd",
  19. "cwd": "${workspaceRoot}",
  20. "showDevDebugOutput": false,
  21. "configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
  22. "device": "stlink",
  23. "executable": "${workspaceRoot}/.pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
  24. "openOCDLaunchCommands": [ "init", "reset init" ],
  25. "svdFile": "${env:HOME}/.platformio/platforms/ststm32@12.1.1/misc/svd/STM32F40x.svd",
  26. },
  27. {
  28. "name": "Debug Sim",
  29. "request": "launch",
  30. "type": "cppdbg",
  31. "cwd": "${workspaceRoot}",
  32. //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
  33. //"program": ".pio/build/simulator_windows/MarlinSimulator",
  34. "program": ".pio/build/simulator_macos_debug/MarlinSimulator",
  35. "miDebuggerPath": "/opt/local/bin/ggdb",
  36. "MIMode": "gdb"
  37. }
  38. ]
  39. }