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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. https://github.com/teemuatlut/TMCStepper.git
  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. lib_ldf_mode = deep+
  82. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  83. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  84. monitor_speed = 250000
  85. #
  86. # AT90USB1286 boards using DFU bootloader
  87. # - PrintrBoard
  88. # - PrintrBoard Rev.F
  89. # - ? 5DPRINT ?
  90. #
  91. [env:at90usb1286_dfu]
  92. platform = teensy
  93. framework = arduino
  94. board = at90usb1286
  95. build_flags = ${common.build_flags}
  96. lib_deps = ${common.lib_deps}
  97. lib_ldf_mode = deep+
  98. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  99. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  100. monitor_speed = 250000
  101. #
  102. # Due (Atmel SAM3X8E ARM Cortex-M3)
  103. #
  104. # - RAMPS4DUE
  105. # - RADDS
  106. #
  107. [env:DUE]
  108. platform = atmelsam
  109. framework = arduino
  110. board = due
  111. build_flags = ${common.build_flags}
  112. lib_deps = ${common.lib_deps}
  113. lib_ignore = c1921b4
  114. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  115. monitor_speed = 250000
  116. [env:DUE_USB]
  117. platform = atmelsam
  118. framework = arduino
  119. board = dueUSB
  120. build_flags = ${common.build_flags}
  121. lib_deps = ${common.lib_deps}
  122. lib_ignore = c1921b4
  123. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  124. monitor_speed = 250000
  125. [env:DUE_debug]
  126. # Used when WATCHDOG_RESET_MANUAL is enabled
  127. platform = atmelsam
  128. framework = arduino
  129. board = due
  130. build_flags = ${common.build_flags}
  131. -funwind-tables
  132. -mpoke-function-name
  133. lib_deps = ${common.lib_deps}
  134. lib_ignore = c1921b4
  135. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  136. monitor_speed = 250000
  137. #
  138. # NXP LPC176x ARM Cortex-M3
  139. #
  140. [env:LPC1768]
  141. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  142. framework = arduino
  143. board = nxp_lpc1768
  144. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  145. # debug options for backtrace
  146. # -funwind-tables
  147. # -mpoke-function-name
  148. lib_ignore = Adafruit NeoPixel
  149. lib_ldf_mode = chain+
  150. lib_compat_mode = strict
  151. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  152. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  153. monitor_speed = 250000
  154. lib_deps = https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  155. https://github.com/teemuatlut/TMCStepper.git
  156. [env:LPC1769]
  157. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  158. framework = arduino
  159. board = nxp_lpc1769
  160. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  161. # debug options for backtrace
  162. # -funwind-tables
  163. # -mpoke-function-name
  164. lib_ignore = Adafruit NeoPixel
  165. lib_ldf_mode = chain+
  166. lib_compat_mode = strict
  167. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  168. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  169. monitor_speed = 250000
  170. lib_deps = https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  171. https://github.com/teemuatlut/TMCStepper.git
  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. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  277. #
  278. [env:teensy35]
  279. platform = teensy
  280. framework = arduino
  281. board = teensy35
  282. build_flags = ${common.build_flags}
  283. lib_deps = ${common.lib_deps}
  284. lib_ignore = Adafruit NeoPixel
  285. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  286. monitor_speed = 250000
  287. [env:malyanm200]
  288. platform = ststm32
  289. framework = arduino
  290. board = malyanM200
  291. 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
  292. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  293. #-<frameworks>
  294. lib_ignore =
  295. U8glib
  296. LiquidCrystal_I2C
  297. LiquidCrystal
  298. NewliquidCrystal
  299. LiquidTWI2
  300. Adafruit NeoPixel
  301. TMCStepper
  302. Servo(STM32F1)
  303. TMC26XStepper
  304. U8glib-HAL
  305. c1921b4
  306. #
  307. # Espressif ESP32
  308. #
  309. [env:esp32]
  310. platform = https://github.com/platformio/platform-espressif32.git#feature/stage
  311. board = esp32dev
  312. framework = arduino
  313. upload_port = COM3
  314. lib_ignore =
  315. LiquidCrystal_I2C
  316. LiquidCrystal
  317. NewliquidCrystal
  318. LiquidTWI2
  319. TMC26XStepper
  320. c1921b4
  321. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>