My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

platformio.ini 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  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. boards_dir = buildroot/share/PlatformIO/boards
  21. env_default = megaatmega2560
  22. [common]
  23. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  24. build_flags = -fmax-errors=5
  25. -g
  26. -ggdb
  27. lib_deps =
  28. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  29. LiquidCrystal@1.3.4
  30. TMCStepper@<1.0.0
  31. Adafruit NeoPixel@1.1.3
  32. https://github.com/lincomatic/LiquidTWI2/archive/30aa480.zip
  33. https://github.com/ameyer/Arduino-L6470/archive/master.zip
  34. https://github.com/trinamic/TMC26XStepper/archive/c1921b4.zip
  35. #################################
  36. # #
  37. # Unique Core Architectures #
  38. # #
  39. # Add a new "env" below if no #
  40. # entry has values suitable to #
  41. # build for a given board. #
  42. # #
  43. #################################
  44. #
  45. # ATmega2560
  46. #
  47. [env:megaatmega2560]
  48. platform = atmelavr
  49. framework = arduino
  50. board = megaatmega2560
  51. build_flags = ${common.build_flags}
  52. board_build.f_cpu = 16000000L
  53. lib_deps = ${common.lib_deps}
  54. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  55. monitor_speed = 250000
  56. #
  57. # ATmega1280
  58. #
  59. [env:megaatmega1280]
  60. platform = atmelavr
  61. framework = arduino
  62. board = megaatmega1280
  63. build_flags = ${common.build_flags}
  64. board_build.f_cpu = 16000000L
  65. lib_deps = ${common.lib_deps}
  66. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  67. monitor_speed = 250000
  68. #
  69. # AT90USB1286 boards using CDC bootloader
  70. # - BRAINWAVE
  71. # - BRAINWAVE_PRO
  72. # - SAV_MKI
  73. # - TEENSYLU
  74. #
  75. [env:at90usb1286_cdc]
  76. platform = teensy
  77. framework = arduino
  78. board = at90usb1286
  79. build_flags = ${common.build_flags}
  80. lib_deps = ${common.lib_deps}
  81. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  82. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  83. monitor_speed = 250000
  84. #
  85. # AT90USB1286 boards using DFU bootloader
  86. # - PrintrBoard
  87. # - PrintrBoard Rev.F
  88. # - ? 5DPRINT ?
  89. #
  90. [env:at90usb1286_dfu]
  91. platform = teensy
  92. framework = arduino
  93. board = at90usb1286
  94. build_flags = ${common.build_flags}
  95. lib_deps = ${common.lib_deps}
  96. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  97. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  98. monitor_speed = 250000
  99. #
  100. # Due (Atmel SAM3X8E ARM Cortex-M3)
  101. #
  102. # - RAMPS4DUE
  103. # - RADDS
  104. #
  105. [env:DUE]
  106. platform = atmelsam
  107. framework = arduino
  108. board = due
  109. build_flags = ${common.build_flags}
  110. lib_deps = ${common.lib_deps}
  111. lib_ignore = c1921b4
  112. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  113. monitor_speed = 250000
  114. [env:DUE_USB]
  115. platform = atmelsam
  116. framework = arduino
  117. board = dueUSB
  118. build_flags = ${common.build_flags}
  119. lib_deps = ${common.lib_deps}
  120. lib_ignore = c1921b4
  121. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  122. monitor_speed = 250000
  123. [env:DUE_debug]
  124. # Used when WATCHDOG_RESET_MANUAL is enabled
  125. platform = atmelsam
  126. framework = arduino
  127. board = due
  128. build_flags = ${common.build_flags}
  129. -funwind-tables
  130. -mpoke-function-name
  131. lib_deps = ${common.lib_deps}
  132. lib_ignore = c1921b4
  133. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  134. monitor_speed = 250000
  135. #
  136. # NXP LPC176x ARM Cortex-M3
  137. #
  138. [env:LPC1768]
  139. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  140. framework = arduino
  141. board = nxp_lpc1768
  142. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  143. # debug options for backtrace
  144. # -funwind-tables
  145. # -mpoke-function-name
  146. lib_ldf_mode = off
  147. lib_compat_mode = strict
  148. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  149. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  150. monitor_speed = 250000
  151. lib_deps = Servo
  152. LiquidCrystal
  153. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  154. TMCStepper@<1.0.0
  155. [env:LPC1769]
  156. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  157. framework = arduino
  158. board = nxp_lpc1769
  159. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  160. # debug options for backtrace
  161. # -funwind-tables
  162. # -mpoke-function-name
  163. lib_ldf_mode = off
  164. lib_compat_mode = strict
  165. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  166. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  167. monitor_speed = 250000
  168. lib_deps = Servo
  169. LiquidCrystal
  170. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  171. TMCStepper@<1.0.0
  172. #
  173. # Melzi and clones (ATmega1284p)
  174. #
  175. [env:melzi]
  176. platform = atmelavr
  177. framework = arduino
  178. board = sanguino_atmega1284p
  179. build_flags = ${common.build_flags}
  180. upload_speed = 57600
  181. lib_deps = ${common.lib_deps}
  182. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  183. monitor_speed = 250000
  184. #
  185. # Melzi and clones (Optiboot bootloader)
  186. #
  187. [env:melzi_optiboot]
  188. platform = atmelavr
  189. framework = arduino
  190. board = sanguino_atmega1284p
  191. build_flags = ${common.build_flags}
  192. upload_speed = 115200
  193. lib_deps = ${common.lib_deps}
  194. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  195. monitor_speed = 250000
  196. #
  197. # RAMBo
  198. #
  199. [env:rambo]
  200. platform = atmelavr
  201. framework = arduino
  202. board = reprap_rambo
  203. build_flags = ${common.build_flags}
  204. board_build.f_cpu = 16000000L
  205. lib_deps = ${common.lib_deps}
  206. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  207. monitor_speed = 250000
  208. #
  209. # Sanguinololu (ATmega644p)
  210. #
  211. [env:sanguino_atmega644p]
  212. platform = atmelavr
  213. framework = arduino
  214. board = sanguino_atmega644p
  215. build_flags = ${common.build_flags}
  216. lib_deps = ${common.lib_deps}
  217. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  218. monitor_speed = 250000
  219. #
  220. # Sanguinololu (ATmega1284p)
  221. #
  222. [env:sanguino_atmega1284p]
  223. platform = atmelavr
  224. framework = arduino
  225. board = sanguino_atmega1284p
  226. build_flags = ${common.build_flags}
  227. lib_deps = ${common.lib_deps}
  228. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  229. monitor_speed = 250000
  230. #
  231. # STM32F103RE
  232. #
  233. [env:STM32F1]
  234. platform = ststm32@<4.4.0
  235. framework = arduino
  236. board = genericSTM32F103RE
  237. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  238. ${common.build_flags}
  239. lib_deps = ${common.lib_deps}
  240. lib_ignore = U8glib-HAL
  241. c1921b4
  242. libf3c
  243. lib066
  244. Adafruit NeoPixel_ID28
  245. Adafruit NeoPixel
  246. libf3e
  247. TMC26XStepper
  248. lib_ldf_mode = 1
  249. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  250. monitor_speed = 250000
  251. #
  252. # STM32F4
  253. #
  254. [env:STM32F4]
  255. platform = ststm32
  256. framework = arduino
  257. board = disco_f407vg
  258. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  259. lib_deps = ${common.lib_deps}
  260. lib_ignore = Adafruit NeoPixel, c1921b4, TMCStepper
  261. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
  262. monitor_speed = 250000
  263. #
  264. # ARMED
  265. #
  266. [env:ARMED]
  267. platform = ststm32
  268. framework = arduino
  269. board = ARMED
  270. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  271. lib_deps = ${common.lib_deps}
  272. lib_ignore = Adafruit NeoPixel, c1921b4
  273. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
  274. monitor_speed = 250000
  275. #
  276. # MKS Robin (STM32F103ZET6)
  277. #
  278. [env:mks_robin]
  279. platform = ststm32
  280. framework = arduino
  281. board = genericSTM32F103ZE
  282. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  283. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  284. ${common.build_flags}
  285. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  286. lib_deps = ${common.lib_deps}
  287. lib_ignore = c1921b4
  288. libf3c
  289. lib066
  290. Adafruit NeoPixel_ID28
  291. Adafruit NeoPixel
  292. libf3e
  293. TMC26XStepper
  294. #
  295. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  296. #
  297. [env:teensy35]
  298. platform = teensy
  299. framework = arduino
  300. board = teensy35
  301. build_flags = ${common.build_flags}
  302. lib_deps = ${common.lib_deps}
  303. lib_ignore = Adafruit NeoPixel
  304. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  305. monitor_speed = 250000
  306. [env:malyanm200]
  307. platform = ststm32
  308. framework = arduino
  309. board = malyanM200
  310. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  311. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  312. #-<frameworks>
  313. lib_ignore =
  314. U8glib
  315. LiquidCrystal_I2C
  316. LiquidCrystal
  317. NewliquidCrystal
  318. LiquidTWI2
  319. Adafruit NeoPixel
  320. TMCStepper
  321. Servo(STM32F1)
  322. TMC26XStepper
  323. U8glib-HAL
  324. c1921b4
  325. #
  326. # Espressif ESP32
  327. #
  328. [env:esp32]
  329. platform = https://github.com/platformio/platform-espressif32.git#feature/stage
  330. board = esp32dev
  331. framework = arduino
  332. upload_port = COM3
  333. lib_ignore =
  334. LiquidCrystal_I2C
  335. LiquidCrystal
  336. NewliquidCrystal
  337. LiquidTWI2
  338. TMC26XStepper
  339. c1921b4
  340. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  341. #
  342. # FYSETC F6 V1.3
  343. #
  344. [env:fysetc_f6_13]
  345. platform = atmelavr
  346. framework = arduino
  347. board = fysetc_f6_13
  348. build_flags = ${common.build_flags}
  349. board_build.f_cpu = 16000000L
  350. lib_deps = ${common.lib_deps}
  351. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  352. monitor_speed = 250000