My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platformio.ini 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # http://docs.platformio.org/en/latest/projectconf.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. # targets = upload
  11. [platformio]
  12. src_dir = Marlin
  13. envs_dir = .pioenvs
  14. lib_dir = .piolib
  15. libdeps_dir = .piolibdeps
  16. env_default = megaatmega2560
  17. [common]
  18. lib_deps =
  19. U8glib-HAL
  20. LiquidCrystal_I2C@1.1.2
  21. TMC2130Stepper
  22. https://github.com/teemuatlut/TMC2208Stepper.git
  23. Adafruit NeoPixel
  24. https://github.com/lincomatic/LiquidTWI2.git
  25. https://github.com/trinamic/TMC26XStepper.git
  26. https://github.com/ameyer/Arduino-L6470.git
  27. default_src_filter = +<src/*> -<src/config>
  28. #################################
  29. # #
  30. # Unique Core Architectures #
  31. # #
  32. # Add a new "env" below if no #
  33. # entry has values suitable to #
  34. # build for a given board. #
  35. # #
  36. #################################
  37. #
  38. # ATmega2560
  39. #
  40. [env:megaatmega2560]
  41. platform = atmelavr
  42. framework = arduino
  43. board = megaatmega2560
  44. build_flags = -I $BUILDSRC_DIR
  45. board_f_cpu = 16000000L
  46. lib_deps = ${common.lib_deps}
  47. src_filter = ${common.default_src_filter}
  48. #
  49. # ATmega1280
  50. #
  51. [env:megaatmega1280]
  52. platform = atmelavr
  53. framework = arduino
  54. board = megaatmega1280
  55. build_flags = -I $BUILDSRC_DIR
  56. board_f_cpu = 16000000L
  57. lib_deps = ${common.lib_deps}
  58. src_filter = ${common.default_src_filter}
  59. #
  60. # Anet 1.0 - Melzi clone (ATmega1284p)
  61. #
  62. [env:anet10]
  63. platform = atmelavr
  64. framework = arduino
  65. board = sanguino_atmega1284p
  66. upload_speed = 57600
  67. lib_deps = ${common.lib_deps}
  68. src_filter = ${common.default_src_filter}
  69. #
  70. # Due (Atmel SAM3X8E ARM Cortex-M3)
  71. #
  72. # - RAMPS4DUE
  73. # - RADDS
  74. #
  75. [env:DUE]
  76. platform = atmelsam
  77. framework = arduino
  78. board = due
  79. build_flags = -I $BUILDSRC_DIR
  80. lib_deps = ${common.lib_deps}
  81. src_filter = ${common.default_src_filter}
  82. #
  83. # NXP LPC1768 ARM Cortex-M3
  84. #
  85. [env:LPC1768]
  86. platform = nxplpc
  87. board_f_cpu = 100000000L
  88. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  89. -DU8G_HAL_LINKS
  90. src_build_flags = -Wall
  91. build_unflags = -Wall
  92. lib_ldf_mode = off
  93. lib_extra_dirs = frameworks
  94. lib_deps = CMSIS-LPC1768
  95. U8glib-HAL
  96. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  97. src_filter = ${common.default_src_filter}
  98. #
  99. # LPC1768 (for debugging and development)
  100. #
  101. [env:LPC1768_debug_and_upload]
  102. # Segger JLink
  103. platform = nxplpc
  104. #framework = mbed
  105. board = lpc1768
  106. board_f_cpu = 100000000L
  107. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  108. -DU8G_HAL_LINKS
  109. lib_ldf_mode = off
  110. lib_extra_dirs = frameworks
  111. lib_deps = CMSIS-LPC1768
  112. U8glib-HAL
  113. src_filter = ${common.default_src_filter}
  114. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  115. debug_tool = custom
  116. debug_server =
  117. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  118. -select
  119. USB
  120. -port
  121. 2331
  122. -device
  123. LPC1768
  124. -if
  125. JTAG
  126. -speed
  127. auto
  128. -noir
  129. #
  130. # RAMBo
  131. #
  132. [env:rambo]
  133. platform = atmelavr
  134. framework = arduino
  135. board = reprap_rambo
  136. build_flags = -I $BUILDSRC_DIR
  137. board_f_cpu = 16000000L
  138. lib_deps = ${common.lib_deps}
  139. src_filter = ${common.default_src_filter}
  140. #
  141. # Sanguinololu (ATmega644p)
  142. #
  143. [env:sanguino_atmega644p]
  144. platform = atmelavr
  145. framework = arduino
  146. board = sanguino_atmega644p
  147. lib_deps = ${common.lib_deps}
  148. src_filter = ${common.default_src_filter}
  149. [env:STM32F1]
  150. platform = ststm32
  151. framework = arduino
  152. board = genericSTM32F103RE
  153. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  154. lib_deps = ${common.lib_deps}
  155. src_filter = ${common.default_src_filter}
  156. #
  157. # Teensy++ 2.0
  158. #
  159. # - PrintrBoard
  160. # - PrintrBoard Rev.F
  161. # - Brainwave Pro
  162. #
  163. [env:teensy20]
  164. platform = teensy
  165. framework = arduino
  166. board = teensy20pp
  167. build_flags = -I $BUILDSRC_DIR
  168. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  169. lib_deps = ${common.lib_deps}
  170. src_filter = ${common.default_src_filter}
  171. #
  172. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  173. #
  174. [env:teensy35]
  175. platform = teensy
  176. framework = arduino
  177. board = teensy35
  178. build_flags = -I $BUILDSRC_DIR
  179. lib_deps = ${common.lib_deps}
  180. lib_ignore = Adafruit NeoPixel
  181. src_filter = ${common.default_src_filter}