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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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_build.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_build.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_build.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/debug_extra_script.py, 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. debug_tool = custom
  156. debug_server =
  157. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  158. -select USB
  159. -port 2331
  160. -device LPC1768
  161. -if JTAG
  162. -speed auto
  163. -noir
  164. #
  165. # Melzi and clones (ATmega1284p)
  166. #
  167. [env:melzi]
  168. platform = atmelavr
  169. framework = arduino
  170. board = sanguino_atmega1284p
  171. build_flags = ${common.build_flags}
  172. upload_speed = 57600
  173. lib_deps = ${common.lib_deps}
  174. src_filter = ${common.default_src_filter}
  175. monitor_speed = 250000
  176. #
  177. # Melzi and clones (Optiboot bootloader)
  178. #
  179. [env:melzi_optiboot]
  180. platform = atmelavr
  181. framework = arduino
  182. board = sanguino_atmega1284p
  183. build_flags = ${common.build_flags}
  184. upload_speed = 115200
  185. lib_deps = ${common.lib_deps}
  186. src_filter = ${common.default_src_filter}
  187. monitor_speed = 250000
  188. #
  189. # RAMBo
  190. #
  191. [env:rambo]
  192. platform = atmelavr
  193. framework = arduino
  194. board = reprap_rambo
  195. build_flags = ${common.build_flags}
  196. board_build.f_cpu = 16000000L
  197. lib_deps = ${common.lib_deps}
  198. src_filter = ${common.default_src_filter}
  199. monitor_speed = 250000
  200. #
  201. # Sanguinololu (ATmega644p)
  202. #
  203. [env:sanguino_atmega644p]
  204. platform = atmelavr
  205. framework = arduino
  206. board = sanguino_atmega644p
  207. build_flags = ${common.build_flags}
  208. lib_deps = ${common.lib_deps}
  209. src_filter = ${common.default_src_filter}
  210. monitor_speed = 250000
  211. #
  212. # Sanguinololu (ATmega1284p)
  213. #
  214. [env:sanguino_atmega1284p]
  215. platform = atmelavr
  216. framework = arduino
  217. board = sanguino_atmega1284p
  218. build_flags = ${common.build_flags}
  219. lib_deps = ${common.lib_deps}
  220. src_filter = ${common.default_src_filter}
  221. monitor_speed = 250000
  222. #
  223. # STM32F103RE
  224. #
  225. [env:STM32F1]
  226. platform = ststm32
  227. framework = arduino
  228. board = genericSTM32F103RE
  229. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  230. ${common.build_flags}
  231. lib_deps = ${common.lib_deps}
  232. lib_ignore = U8glib-HAL
  233. c1921b4
  234. libf3c
  235. lib066
  236. Adafruit NeoPixel_ID28
  237. Adafruit NeoPixel
  238. libf3e
  239. TMC26XStepper
  240. lib_ldf_mode = 1
  241. src_filter = ${common.default_src_filter}
  242. monitor_speed = 250000
  243. #
  244. # STM32F4
  245. #
  246. [env:STM32F4]
  247. platform = ststm32
  248. framework = arduino
  249. board = disco_f407vg
  250. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  251. lib_deps = ${common.lib_deps}
  252. lib_ignore = Adafruit NeoPixel, c1921b4, TMC2130Stepper
  253. src_filter = ${common.default_src_filter}
  254. monitor_speed = 250000
  255. #
  256. # Teensy++ 2.0
  257. #
  258. [env:teensy20]
  259. platform = teensy
  260. framework = arduino
  261. board = teensy20pp
  262. build_flags = ${common.build_flags}
  263. #board_build.f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  264. lib_deps = ${common.lib_deps}
  265. lib_ldf_mode = deep+
  266. src_filter = ${common.default_src_filter}
  267. monitor_speed = 250000
  268. #
  269. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  270. #
  271. [env:teensy35]
  272. platform = teensy
  273. framework = arduino
  274. board = teensy35
  275. build_flags = ${common.build_flags}
  276. lib_deps = ${common.lib_deps}
  277. lib_ignore = Adafruit NeoPixel
  278. src_filter = ${common.default_src_filter}
  279. monitor_speed = 250000
  280. [env:malyanm200]
  281. platform = ststm32
  282. framework = arduino
  283. board = malyanM200
  284. 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
  285. src_filter = ${common.default_src_filter}
  286. #-<frameworks>
  287. lib_ignore =
  288. U8glib
  289. LiquidCrystal_I2C
  290. LiquidCrystal
  291. NewliquidCrystal
  292. LiquidTWI2
  293. Adafruit NeoPixel
  294. TMC2130Stepper
  295. Servo(STM32F1)
  296. TMC26XStepper
  297. U8glib-HAL
  298. TMC2208Stepper
  299. c1921b4