My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

launch.json 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 (launch)",
  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": "STM32F407",
  23. "executable": ".pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
  24. },
  25. {
  26. "name": "Debug STM32 (attach)",
  27. "request": "attach",
  28. "type": "cortex-debug",
  29. "servertype": "openocd",
  30. "cwd": "${workspaceRoot}",
  31. "showDevDebugOutput": false,
  32. "configFiles": [ "interface/stlink.cfg", "target/stm32f4x.cfg" ],
  33. "device": "STM32F407",
  34. "executable": ".pio/build/BIGTREE_SKR_2_USB_debug/firmware.elf",
  35. },
  36. {
  37. "name": "Debug Sim",
  38. "request": "launch",
  39. "type": "cppdbg",
  40. "cwd": "${workspaceRoot}",
  41. //"program": ".pio/build/simulator_linux_debug/MarlinSimulator",
  42. //"program": ".pio/build/simulator_windows/MarlinSimulator",
  43. "program": ".pio/build/simulator_macos_debug/MarlinSimulator",
  44. "miDebuggerPath": "/opt/local/bin/ggdb",
  45. "MIMode": "gdb"
  46. }
  47. ]
  48. }