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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  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_ignore = Teensy_ADC
  82. lib_ldf_mode = deep+
  83. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  84. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  85. monitor_speed = 250000
  86. #
  87. # AT90USB1286 boards using DFU bootloader
  88. # - PrintrBoard
  89. # - PrintrBoard Rev.F
  90. # - ? 5DPRINT ?
  91. #
  92. [env:at90usb1286_dfu]
  93. platform = teensy
  94. framework = arduino
  95. board = at90usb1286
  96. build_flags = ${common.build_flags}
  97. lib_deps = ${common.lib_deps}
  98. lib_ignore = Teensy_ADC
  99. lib_ldf_mode = deep+
  100. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  101. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  102. monitor_speed = 250000
  103. #
  104. # Due (Atmel SAM3X8E ARM Cortex-M3)
  105. #
  106. # - RAMPS4DUE
  107. # - RADDS
  108. #
  109. [env:DUE]
  110. platform = atmelsam
  111. framework = arduino
  112. board = due
  113. build_flags = ${common.build_flags}
  114. lib_deps = ${common.lib_deps}
  115. lib_ignore = c1921b4
  116. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  117. monitor_speed = 250000
  118. [env:DUE_USB]
  119. platform = atmelsam
  120. framework = arduino
  121. board = dueUSB
  122. build_flags = ${common.build_flags}
  123. lib_deps = ${common.lib_deps}
  124. lib_ignore = c1921b4
  125. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  126. monitor_speed = 250000
  127. [env:DUE_debug]
  128. # Used when WATCHDOG_RESET_MANUAL is enabled
  129. platform = atmelsam
  130. framework = arduino
  131. board = due
  132. build_flags = ${common.build_flags}
  133. -funwind-tables
  134. -mpoke-function-name
  135. lib_deps = ${common.lib_deps}
  136. lib_ignore = c1921b4
  137. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  138. monitor_speed = 250000
  139. #
  140. # NXP LPC176x ARM Cortex-M3
  141. #
  142. [env:LPC1768]
  143. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  144. framework = arduino
  145. board = nxp_lpc1768
  146. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  147. # debug options for backtrace
  148. # -funwind-tables
  149. # -mpoke-function-name
  150. lib_ldf_mode = off
  151. lib_compat_mode = strict
  152. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  153. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  154. monitor_speed = 250000
  155. lib_deps = Servo
  156. LiquidCrystal
  157. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  158. https://github.com/teemuatlut/TMCStepper.git
  159. [env:LPC1769]
  160. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  161. framework = arduino
  162. board = nxp_lpc1769
  163. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  164. # debug options for backtrace
  165. # -funwind-tables
  166. # -mpoke-function-name
  167. lib_ldf_mode = off
  168. lib_compat_mode = strict
  169. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  170. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  171. monitor_speed = 250000
  172. lib_deps = Servo
  173. LiquidCrystal
  174. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  175. https://github.com/teemuatlut/TMCStepper.git
  176. #
  177. # Melzi and clones (ATmega1284p)
  178. #
  179. [env:melzi]
  180. platform = atmelavr
  181. framework = arduino
  182. board = sanguino_atmega1284p
  183. build_flags = ${common.build_flags}
  184. upload_speed = 57600
  185. lib_deps = ${common.lib_deps}
  186. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  187. monitor_speed = 250000
  188. #
  189. # Melzi and clones (Optiboot bootloader)
  190. #
  191. [env:melzi_optiboot]
  192. platform = atmelavr
  193. framework = arduino
  194. board = sanguino_atmega1284p
  195. build_flags = ${common.build_flags}
  196. upload_speed = 115200
  197. lib_deps = ${common.lib_deps}
  198. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  199. monitor_speed = 250000
  200. #
  201. # RAMBo
  202. #
  203. [env:rambo]
  204. platform = atmelavr
  205. framework = arduino
  206. board = reprap_rambo
  207. build_flags = ${common.build_flags}
  208. board_build.f_cpu = 16000000L
  209. lib_deps = ${common.lib_deps}
  210. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  211. monitor_speed = 250000
  212. #
  213. # Sanguinololu (ATmega644p)
  214. #
  215. [env:sanguino_atmega644p]
  216. platform = atmelavr
  217. framework = arduino
  218. board = sanguino_atmega644p
  219. build_flags = ${common.build_flags}
  220. lib_deps = ${common.lib_deps}
  221. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  222. monitor_speed = 250000
  223. #
  224. # Sanguinololu (ATmega1284p)
  225. #
  226. [env:sanguino_atmega1284p]
  227. platform = atmelavr
  228. framework = arduino
  229. board = sanguino_atmega1284p
  230. build_flags = ${common.build_flags}
  231. lib_deps = ${common.lib_deps}
  232. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  233. monitor_speed = 250000
  234. #
  235. # STM32F103RE
  236. #
  237. [env:STM32F1]
  238. platform = ststm32@<4.4.0
  239. framework = arduino
  240. board = genericSTM32F103RE
  241. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  242. ${common.build_flags}
  243. lib_deps = ${common.lib_deps}
  244. lib_ignore = U8glib-HAL
  245. c1921b4
  246. libf3c
  247. lib066
  248. Adafruit NeoPixel_ID28
  249. Adafruit NeoPixel
  250. libf3e
  251. TMC26XStepper
  252. lib_ldf_mode = 1
  253. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  254. monitor_speed = 250000
  255. #
  256. # STM32F4
  257. #
  258. [env:STM32F4]
  259. platform = ststm32
  260. framework = arduino
  261. board = disco_f407vg
  262. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  263. lib_deps = ${common.lib_deps}
  264. lib_ignore = Adafruit NeoPixel, c1921b4, TMCStepper
  265. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
  266. monitor_speed = 250000
  267. #
  268. # ARMED
  269. #
  270. [env:ARMED]
  271. platform = ststm32
  272. framework = arduino
  273. board = ARMED
  274. 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
  275. lib_deps = ${common.lib_deps}
  276. lib_ignore = Adafruit NeoPixel, c1921b4
  277. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F4>
  278. monitor_speed = 250000
  279. #
  280. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  281. #
  282. [env:teensy35]
  283. platform = teensy
  284. framework = arduino
  285. board = teensy35
  286. build_flags = ${common.build_flags}
  287. lib_deps = ${common.lib_deps}
  288. lib_ignore = Adafruit NeoPixel
  289. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  290. monitor_speed = 250000
  291. [env:malyanm200]
  292. platform = ststm32
  293. framework = arduino
  294. board = malyanM200
  295. 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
  296. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  297. #-<frameworks>
  298. lib_ignore =
  299. U8glib
  300. LiquidCrystal_I2C
  301. LiquidCrystal
  302. NewliquidCrystal
  303. LiquidTWI2
  304. Adafruit NeoPixel
  305. TMCStepper
  306. Servo(STM32F1)
  307. TMC26XStepper
  308. U8glib-HAL
  309. c1921b4
  310. #
  311. # Espressif ESP32
  312. #
  313. [env:esp32]
  314. platform = https://github.com/platformio/platform-espressif32.git#feature/stage
  315. board = esp32dev
  316. framework = arduino
  317. upload_port = COM3
  318. lib_ignore =
  319. LiquidCrystal_I2C
  320. LiquidCrystal
  321. NewliquidCrystal
  322. LiquidTWI2
  323. TMC26XStepper
  324. c1921b4
  325. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>