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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  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. default_src_filter = +<src/*> -<src/config>
  23. build_flags = -fmax-errors=5
  24. -g
  25. -ggdb
  26. -I${platformio.libdeps_dir}/U8glib-HAL_ID1932/src/lib/
  27. lib_deps =
  28. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  29. LiquidCrystal_I2C@1.1.2
  30. TMC2130Stepper
  31. https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
  32. Adafruit NeoPixel@1.1.3
  33. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  34. https://github.com/ameyer/Arduino-L6470/archive/0c5e5de.zip
  35. https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
  36. #################################
  37. # #
  38. # Unique Core Architectures #
  39. # #
  40. # Add a new "env" below if no #
  41. # entry has values suitable to #
  42. # build for a given board. #
  43. # #
  44. #################################
  45. #
  46. # ATmega2560
  47. #
  48. [env:megaatmega2560]
  49. platform = atmelavr
  50. framework = arduino
  51. board = megaatmega2560
  52. build_flags = ${common.build_flags}
  53. board_f_cpu = 16000000L
  54. lib_deps = ${common.lib_deps}
  55. src_filter = ${common.default_src_filter}
  56. monitor_baud = 250000
  57. #
  58. # ATmega1280
  59. #
  60. [env:megaatmega1280]
  61. platform = atmelavr
  62. framework = arduino
  63. board = megaatmega1280
  64. build_flags = ${common.build_flags}
  65. board_f_cpu = 16000000L
  66. lib_deps = ${common.lib_deps}
  67. src_filter = ${common.default_src_filter}
  68. monitor_baud = 250000
  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 = ${common.build_flags}
  80. lib_deps = ${common.lib_deps}
  81. lib_ignore = c1921b4
  82. src_filter = ${common.default_src_filter}
  83. monitor_baud = 250000
  84. [env:DUE_USB]
  85. platform = atmelsam
  86. framework = arduino
  87. board = dueUSB
  88. build_flags = ${common.build_flags}
  89. lib_deps = ${common.lib_deps}
  90. lib_ignore = c1921b4
  91. src_filter = ${common.default_src_filter}
  92. monitor_baud = 250000
  93. [env:DUE_debug]
  94. # Used when WATCHDOG_RESET_MANUAL is enabled
  95. platform = atmelsam
  96. framework = arduino
  97. board = due
  98. build_flags = ${common.build_flags}
  99. -funwind-tables
  100. -mpoke-function-name
  101. lib_deps = ${common.lib_deps}
  102. lib_ignore = c1921b4
  103. src_filter = ${common.default_src_filter}
  104. monitor_baud = 250000
  105. #
  106. # NXP LPC1768 ARM Cortex-M3
  107. #
  108. [env:LPC1768]
  109. platform = nxplpc
  110. board = lpc1768
  111. board_f_cpu = 100000000L
  112. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  113. ${common.build_flags}
  114. -DU8G_HAL_LINKS
  115. src_build_flags = -Wall
  116. build_unflags = -Wall
  117. lib_ldf_mode = off
  118. lib_extra_dirs = frameworks
  119. lib_deps = CMSIS-LPC1768
  120. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  121. TMC2130Stepper@>=2.2.1
  122. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  123. src_filter = ${common.default_src_filter}
  124. monitor_baud = 250000
  125. #
  126. # LPC1768 (for debugging and development)
  127. #
  128. [env:LPC1768_debug_and_upload]
  129. # Segger JLink
  130. platform = nxplpc
  131. #framework = mbed
  132. board = lpc1768
  133. board_f_cpu = 100000000L
  134. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  135. ${common.build_flags}
  136. -DU8G_HAL_LINKS
  137. lib_ldf_mode = off
  138. lib_extra_dirs = frameworks
  139. lib_deps = CMSIS-LPC1768
  140. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  141. src_filter = ${common.default_src_filter}
  142. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  143. monitor_baud = 250000
  144. debug_tool = custom
  145. debug_server =
  146. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  147. -select USB
  148. -port 2331
  149. -device LPC1768
  150. -if JTAG
  151. -speed auto
  152. -noir
  153. #
  154. # Melzi and clones (ATmega1284p)
  155. #
  156. [env:melzi]
  157. platform = atmelavr
  158. framework = arduino
  159. board = sanguino_atmega1284p
  160. build_flags = ${common.build_flags}
  161. upload_speed = 57600
  162. lib_deps = ${common.lib_deps}
  163. src_filter = ${common.default_src_filter}
  164. monitor_baud = 250000
  165. #
  166. # Melzi and clones (Optiboot bootloader)
  167. #
  168. [env:melzi_optiboot]
  169. platform = atmelavr
  170. framework = arduino
  171. board = sanguino_atmega1284p
  172. build_flags = ${common.build_flags}
  173. upload_speed = 115200
  174. lib_deps = ${common.lib_deps}
  175. src_filter = ${common.default_src_filter}
  176. monitor_baud = 250000
  177. #
  178. # RAMBo
  179. #
  180. [env:rambo]
  181. platform = atmelavr
  182. framework = arduino
  183. board = reprap_rambo
  184. build_flags = ${common.build_flags}
  185. board_f_cpu = 16000000L
  186. lib_deps = ${common.lib_deps}
  187. src_filter = ${common.default_src_filter}
  188. monitor_baud = 250000
  189. #
  190. # Sanguinololu (ATmega644p)
  191. #
  192. [env:sanguino_atmega644p]
  193. platform = atmelavr
  194. framework = arduino
  195. board = sanguino_atmega644p
  196. build_flags = ${common.build_flags}
  197. lib_deps = ${common.lib_deps}
  198. src_filter = ${common.default_src_filter}
  199. monitor_baud = 250000
  200. #
  201. # Sanguinololu (ATmega1284p)
  202. #
  203. [env:sanguino_atmega1284p]
  204. platform = atmelavr
  205. framework = arduino
  206. board = sanguino_atmega1284p
  207. build_flags = ${common.build_flags}
  208. lib_deps = ${common.lib_deps}
  209. src_filter = ${common.default_src_filter}
  210. monitor_baud = 250000
  211. [env:STM32F1]
  212. platform = ststm32
  213. framework = arduino
  214. board = genericSTM32F103RE
  215. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  216. ${common.build_flags}
  217. lib_deps = ${common.lib_deps}
  218. lib_ignore = U8glib-HAL
  219. c1921b4
  220. libf3c
  221. lib066
  222. Adafruit NeoPixel_ID28
  223. Adafruit NeoPixel
  224. libf3e
  225. TMC26XStepper
  226. lib_ldf_mode = 1
  227. src_filter = ${common.default_src_filter}
  228. monitor_baud = 250000
  229. #
  230. # Teensy++ 2.0
  231. #
  232. # - PrintrBoard
  233. # - PrintrBoard Rev.F
  234. # - Brainwave Pro
  235. #
  236. [env:teensy20]
  237. platform = teensy
  238. framework = arduino
  239. board = teensy20pp
  240. build_flags = ${common.build_flags}
  241. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  242. lib_deps = ${common.lib_deps}
  243. lib_ldf_mode = deep+
  244. src_filter = ${common.default_src_filter}
  245. monitor_baud = 250000
  246. #
  247. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  248. #
  249. [env:teensy35]
  250. platform = teensy
  251. framework = arduino
  252. board = teensy35
  253. build_flags = ${common.build_flags}
  254. lib_deps = ${common.lib_deps}
  255. lib_ignore = Adafruit NeoPixel
  256. src_filter = ${common.default_src_filter}
  257. monitor_baud = 250000