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 11KB

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