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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  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. lib_deps =
  27. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  28. LiquidCrystal_I2C@1.1.2
  29. TMC2130Stepper
  30. https://github.com/teemuatlut/TMC2208Stepper/archive/v0.1.1.zip
  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_f_cpu = 16000000L
  53. lib_deps = ${common.lib_deps}
  54. src_filter = ${common.default_src_filter}
  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_f_cpu = 16000000L
  65. lib_deps = ${common.lib_deps}
  66. src_filter = ${common.default_src_filter}
  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}
  83. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  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. lib_ldf_mode = deep+
  97. src_filter = ${common.default_src_filter}
  98. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  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}
  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}
  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}
  134. monitor_speed = 250000
  135. #
  136. # NXP LPC1768 ARM Cortex-M3
  137. #
  138. [env:LPC1768]
  139. platform = nxplpc
  140. board = lpc1768
  141. board_f_cpu = 100000000L
  142. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  143. ${common.build_flags}
  144. -DU8G_HAL_LINKS
  145. src_build_flags = -Wall
  146. build_unflags = -Wall
  147. lib_ldf_mode = off
  148. lib_extra_dirs = frameworks
  149. lib_deps = CMSIS-LPC1768
  150. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  151. TMC2130Stepper@>=2.2.1
  152. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  153. src_filter = ${common.default_src_filter}
  154. monitor_speed = 250000
  155. #
  156. # LPC1768 (for debugging and development)
  157. #
  158. [env:LPC1768_debug_and_upload]
  159. # Segger JLink
  160. platform = nxplpc
  161. #framework = mbed
  162. board = lpc1768
  163. board_f_cpu = 100000000L
  164. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  165. ${common.build_flags}
  166. -DU8G_HAL_LINKS
  167. lib_ldf_mode = off
  168. lib_extra_dirs = frameworks
  169. lib_deps = CMSIS-LPC1768
  170. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  171. src_filter = ${common.default_src_filter}
  172. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  173. monitor_speed = 250000
  174. debug_tool = custom
  175. debug_server =
  176. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  177. -select USB
  178. -port 2331
  179. -device LPC1768
  180. -if JTAG
  181. -speed auto
  182. -noir
  183. #
  184. # Melzi and clones (ATmega1284p)
  185. #
  186. [env:melzi]
  187. platform = atmelavr
  188. framework = arduino
  189. board = sanguino_atmega1284p
  190. build_flags = ${common.build_flags}
  191. upload_speed = 57600
  192. lib_deps = ${common.lib_deps}
  193. src_filter = ${common.default_src_filter}
  194. monitor_speed = 250000
  195. #
  196. # Melzi and clones (Optiboot bootloader)
  197. #
  198. [env:melzi_optiboot]
  199. platform = atmelavr
  200. framework = arduino
  201. board = sanguino_atmega1284p
  202. build_flags = ${common.build_flags}
  203. upload_speed = 115200
  204. lib_deps = ${common.lib_deps}
  205. src_filter = ${common.default_src_filter}
  206. monitor_speed = 250000
  207. #
  208. # RAMBo
  209. #
  210. [env:rambo]
  211. platform = atmelavr
  212. framework = arduino
  213. board = reprap_rambo
  214. build_flags = ${common.build_flags}
  215. board_f_cpu = 16000000L
  216. lib_deps = ${common.lib_deps}
  217. src_filter = ${common.default_src_filter}
  218. monitor_speed = 250000
  219. #
  220. # Sanguinololu (ATmega644p)
  221. #
  222. [env:sanguino_atmega644p]
  223. platform = atmelavr
  224. framework = arduino
  225. board = sanguino_atmega644p
  226. build_flags = ${common.build_flags}
  227. lib_deps = ${common.lib_deps}
  228. src_filter = ${common.default_src_filter}
  229. monitor_speed = 250000
  230. #
  231. # Sanguinololu (ATmega1284p)
  232. #
  233. [env:sanguino_atmega1284p]
  234. platform = atmelavr
  235. framework = arduino
  236. board = sanguino_atmega1284p
  237. build_flags = ${common.build_flags}
  238. lib_deps = ${common.lib_deps}
  239. src_filter = ${common.default_src_filter}
  240. monitor_speed = 250000
  241. #
  242. # STM32F103RE
  243. #
  244. [env:STM32F1]
  245. platform = ststm32
  246. framework = arduino
  247. board = genericSTM32F103RE
  248. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  249. ${common.build_flags}
  250. lib_deps = ${common.lib_deps}
  251. lib_ignore = U8glib-HAL
  252. c1921b4
  253. libf3c
  254. lib066
  255. Adafruit NeoPixel_ID28
  256. Adafruit NeoPixel
  257. libf3e
  258. TMC26XStepper
  259. lib_ldf_mode = 1
  260. src_filter = ${common.default_src_filter}
  261. monitor_speed = 250000
  262. #
  263. # STM32F4
  264. #
  265. [env:STM32F4]
  266. platform = ststm32
  267. framework = arduino
  268. board = disco_f407vg
  269. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  270. lib_deps = ${common.lib_deps}
  271. lib_ignore = Adafruit NeoPixel, c1921b4, TMC2130Stepper
  272. src_filter = ${common.default_src_filter}
  273. monitor_speed = 250000
  274. #
  275. # Teensy++ 2.0
  276. #
  277. [env:teensy20]
  278. platform = teensy
  279. framework = arduino
  280. board = teensy20pp
  281. build_flags = ${common.build_flags}
  282. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  283. lib_deps = ${common.lib_deps}
  284. lib_ldf_mode = deep+
  285. src_filter = ${common.default_src_filter}
  286. monitor_speed = 250000
  287. #
  288. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  289. #
  290. [env:teensy35]
  291. platform = teensy
  292. framework = arduino
  293. board = teensy35
  294. build_flags = ${common.build_flags}
  295. lib_deps = ${common.lib_deps}
  296. lib_ignore = Adafruit NeoPixel
  297. src_filter = ${common.default_src_filter}
  298. monitor_speed = 250000
  299. [env:malyanm200]
  300. platform = ststm32
  301. framework = arduino
  302. board = malyanM200
  303. 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
  304. src_filter = ${common.default_src_filter}
  305. #-<frameworks>
  306. lib_ignore =
  307. U8glib
  308. LiquidCrystal_I2C
  309. LiquidCrystal
  310. NewliquidCrystal
  311. LiquidTWI2
  312. Adafruit NeoPixel
  313. TMC2130Stepper
  314. Servo(STM32F1)
  315. TMC26XStepper
  316. U8glib-HAL
  317. TMC2208Stepper
  318. c1921b4