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

platformio.ini 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. build_dir = .pioenvs
  18. lib_dir = .piolib
  19. libdeps_dir = .piolibdeps
  20. env_default = megaatmega2560
  21. [common]
  22. lib_deps =
  23. U8glib-HAL
  24. LiquidCrystal_I2C@1.1.2
  25. TMC2130Stepper
  26. https://github.com/teemuatlut/TMC2208Stepper.git
  27. Adafruit NeoPixel@1.1.3
  28. https://github.com/lincomatic/LiquidTWI2.git
  29. https://github.com/trinamic/TMC26XStepper.git
  30. https://github.com/ameyer/Arduino-L6470.git
  31. default_src_filter = +<src/*> -<src/config>
  32. build_flags = -fmax-errors=5
  33. #################################
  34. # #
  35. # Unique Core Architectures #
  36. # #
  37. # Add a new "env" below if no #
  38. # entry has values suitable to #
  39. # build for a given board. #
  40. # #
  41. #################################
  42. #
  43. # ATmega2560
  44. #
  45. [env:megaatmega2560]
  46. platform = atmelavr
  47. framework = arduino
  48. board = megaatmega2560
  49. build_flags = ${common.build_flags}
  50. board_f_cpu = 16000000L
  51. lib_deps = ${common.lib_deps}
  52. src_filter = ${common.default_src_filter}
  53. #
  54. # ATmega1280
  55. #
  56. [env:megaatmega1280]
  57. platform = atmelavr
  58. framework = arduino
  59. board = megaatmega1280
  60. build_flags = ${common.build_flags}
  61. board_f_cpu = 16000000L
  62. lib_deps = ${common.lib_deps}
  63. src_filter = ${common.default_src_filter}
  64. #
  65. # Melzi and clones (ATmega1284p)
  66. #
  67. [env:melzi]
  68. platform = atmelavr
  69. framework = arduino
  70. board = sanguino_atmega1284p
  71. build_flags = ${common.build_flags}
  72. upload_speed = 57600
  73. lib_deps = ${common.lib_deps}
  74. src_filter = ${common.default_src_filter}
  75. #
  76. # Melzi and clones (Optiboot bootloader)
  77. #
  78. [env:melzi_optiboot]
  79. platform = atmelavr
  80. framework = arduino
  81. board = sanguino_atmega1284p
  82. build_flags = ${common.build_flags}
  83. upload_speed = 115200
  84. lib_deps = ${common.lib_deps}
  85. src_filter = ${common.default_src_filter}
  86. #
  87. # Due (Atmel SAM3X8E ARM Cortex-M3)
  88. #
  89. # - RAMPS4DUE
  90. # - RADDS
  91. #
  92. [env:DUE]
  93. platform = atmelsam
  94. framework = arduino
  95. board = due
  96. build_flags = ${common.build_flags}
  97. lib_deps = ${common.lib_deps}
  98. lib_ignore = TMC26XStepper
  99. src_filter = ${common.default_src_filter}
  100. #
  101. # NXP LPC1768 ARM Cortex-M3
  102. #
  103. [env:LPC1768]
  104. platform = nxplpc
  105. board = lpc1768
  106. board_f_cpu = 100000000L
  107. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  108. ${common.build_flags}
  109. -DU8G_HAL_LINKS
  110. src_build_flags = -Wall
  111. build_unflags = -Wall
  112. lib_ldf_mode = off
  113. lib_extra_dirs = frameworks
  114. lib_deps = CMSIS-LPC1768
  115. U8glib-HAL
  116. TMC2130Stepper@>=2.1.1
  117. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  118. src_filter = ${common.default_src_filter}
  119. #
  120. # LPC1768 (for debugging and development)
  121. #
  122. [env:LPC1768_debug_and_upload]
  123. # Segger JLink
  124. platform = nxplpc
  125. #framework = mbed
  126. board = lpc1768
  127. board_f_cpu = 100000000L
  128. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  129. ${common.build_flags}
  130. -DU8G_HAL_LINKS
  131. lib_ldf_mode = off
  132. lib_extra_dirs = frameworks
  133. lib_deps = CMSIS-LPC1768
  134. U8glib-HAL
  135. src_filter = ${common.default_src_filter}
  136. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  137. debug_tool = custom
  138. debug_server =
  139. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  140. -select
  141. USB
  142. -port
  143. 2331
  144. -device
  145. LPC1768
  146. -if
  147. JTAG
  148. -speed
  149. auto
  150. -noir
  151. #
  152. # RAMBo
  153. #
  154. [env:rambo]
  155. platform = atmelavr
  156. framework = arduino
  157. board = reprap_rambo
  158. build_flags = ${common.build_flags}
  159. board_f_cpu = 16000000L
  160. lib_deps = ${common.lib_deps}
  161. src_filter = ${common.default_src_filter}
  162. #
  163. # Sanguinololu (ATmega644p)
  164. #
  165. [env:sanguino_atmega644p]
  166. platform = atmelavr
  167. framework = arduino
  168. board = sanguino_atmega644p
  169. build_flags = ${common.build_flags}
  170. lib_deps = ${common.lib_deps}
  171. src_filter = ${common.default_src_filter}
  172. [env:STM32F1]
  173. platform = ststm32
  174. framework = arduino
  175. board = genericSTM32F103RE
  176. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  177. ${common.build_flags}
  178. lib_deps = ${common.lib_deps}
  179. src_filter = ${common.default_src_filter}
  180. #
  181. # Teensy++ 2.0
  182. #
  183. # - PrintrBoard
  184. # - PrintrBoard Rev.F
  185. # - Brainwave Pro
  186. #
  187. [env:teensy20]
  188. platform = teensy
  189. framework = arduino
  190. board = teensy20pp
  191. build_flags = ${common.build_flags}
  192. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  193. lib_deps = ${common.lib_deps}
  194. lib_ldf_mode = deep+
  195. src_filter = ${common.default_src_filter}
  196. #
  197. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  198. #
  199. [env:teensy35]
  200. platform = teensy
  201. framework = arduino
  202. board = teensy35
  203. build_flags = ${common.build_flags}
  204. lib_deps = ${common.lib_deps}
  205. lib_ignore = Adafruit NeoPixel
  206. src_filter = ${common.default_src_filter}