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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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/0c5e5de.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_baud = 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_baud = 250000
  68. #
  69. # Due (Atmel SAM3X8E ARM Cortex-M3)
  70. #
  71. # - RAMPS4DUE
  72. # - RADDS
  73. #
  74. [env:DUE]
  75. platform = atmelsam
  76. framework = arduino
  77. board = due
  78. build_flags = ${common.build_flags}
  79. lib_deps = ${common.lib_deps}
  80. lib_ignore = c1921b4
  81. src_filter = ${common.default_src_filter}
  82. monitor_baud = 250000
  83. [env:DUE_USB]
  84. platform = atmelsam
  85. framework = arduino
  86. board = dueUSB
  87. build_flags = ${common.build_flags}
  88. lib_deps = ${common.lib_deps}
  89. lib_ignore = c1921b4
  90. src_filter = ${common.default_src_filter}
  91. monitor_baud = 250000
  92. [env:DUE_debug]
  93. # Used when WATCHDOG_RESET_MANUAL is enabled
  94. platform = atmelsam
  95. framework = arduino
  96. board = due
  97. build_flags = ${common.build_flags}
  98. -funwind-tables
  99. -mpoke-function-name
  100. lib_deps = ${common.lib_deps}
  101. lib_ignore = c1921b4
  102. src_filter = ${common.default_src_filter}
  103. monitor_baud = 250000
  104. #
  105. # NXP LPC1768 ARM Cortex-M3
  106. #
  107. [env:LPC1768]
  108. platform = nxplpc
  109. board = lpc1768
  110. board_f_cpu = 100000000L
  111. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  112. ${common.build_flags}
  113. -DU8G_HAL_LINKS
  114. src_build_flags = -Wall
  115. build_unflags = -Wall
  116. lib_ldf_mode = off
  117. lib_extra_dirs = frameworks
  118. lib_deps = CMSIS-LPC1768
  119. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  120. TMC2130Stepper@>=2.2.1
  121. extra_scripts = Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py, Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  122. src_filter = ${common.default_src_filter}
  123. monitor_baud = 250000
  124. #
  125. # LPC1768 (for debugging and development)
  126. #
  127. [env:LPC1768_debug_and_upload]
  128. # Segger JLink
  129. platform = nxplpc
  130. #framework = mbed
  131. board = lpc1768
  132. board_f_cpu = 100000000L
  133. build_flags = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  134. ${common.build_flags}
  135. -DU8G_HAL_LINKS
  136. lib_ldf_mode = off
  137. lib_extra_dirs = frameworks
  138. lib_deps = CMSIS-LPC1768
  139. https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  140. src_filter = ${common.default_src_filter}
  141. extra_scripts = Marlin/src/HAL/HAL_LPC1768/debug_extra_script.py, Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
  142. monitor_baud = 250000
  143. debug_tool = custom
  144. debug_server =
  145. C:\Program Files (x86)\SEGGER\JLink_V618d\JLinkGDBServerCL.exe
  146. -select USB
  147. -port 2331
  148. -device LPC1768
  149. -if JTAG
  150. -speed auto
  151. -noir
  152. #
  153. # Melzi and clones (ATmega1284p)
  154. #
  155. [env:melzi]
  156. platform = atmelavr
  157. framework = arduino
  158. board = sanguino_atmega1284p
  159. build_flags = ${common.build_flags}
  160. upload_speed = 57600
  161. lib_deps = ${common.lib_deps}
  162. src_filter = ${common.default_src_filter}
  163. monitor_baud = 250000
  164. #
  165. # Melzi and clones (Optiboot bootloader)
  166. #
  167. [env:melzi_optiboot]
  168. platform = atmelavr
  169. framework = arduino
  170. board = sanguino_atmega1284p
  171. build_flags = ${common.build_flags}
  172. upload_speed = 115200
  173. lib_deps = ${common.lib_deps}
  174. src_filter = ${common.default_src_filter}
  175. monitor_baud = 250000
  176. #
  177. # RAMBo
  178. #
  179. [env:rambo]
  180. platform = atmelavr
  181. framework = arduino
  182. board = reprap_rambo
  183. build_flags = ${common.build_flags}
  184. board_f_cpu = 16000000L
  185. lib_deps = ${common.lib_deps}
  186. src_filter = ${common.default_src_filter}
  187. monitor_baud = 250000
  188. #
  189. # Sanguinololu (ATmega644p)
  190. #
  191. [env:sanguino_atmega644p]
  192. platform = atmelavr
  193. framework = arduino
  194. board = sanguino_atmega644p
  195. build_flags = ${common.build_flags}
  196. lib_deps = ${common.lib_deps}
  197. src_filter = ${common.default_src_filter}
  198. monitor_baud = 250000
  199. #
  200. # Sanguinololu (ATmega1284p)
  201. #
  202. [env:sanguino_atmega1284p]
  203. platform = atmelavr
  204. framework = arduino
  205. board = sanguino_atmega1284p
  206. build_flags = ${common.build_flags}
  207. lib_deps = ${common.lib_deps}
  208. src_filter = ${common.default_src_filter}
  209. monitor_baud = 250000
  210. [env:STM32F1]
  211. platform = ststm32
  212. framework = arduino
  213. board = genericSTM32F103RE
  214. build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
  215. ${common.build_flags}
  216. lib_deps = ${common.lib_deps}
  217. lib_ignore = U8glib-HAL
  218. c1921b4
  219. libf3c
  220. lib066
  221. Adafruit NeoPixel_ID28
  222. Adafruit NeoPixel
  223. libf3e
  224. TMC26XStepper
  225. lib_ldf_mode = 1
  226. src_filter = ${common.default_src_filter}
  227. monitor_baud = 250000
  228. [env:STM32F4]
  229. platform = ststm32
  230. framework = arduino
  231. board = disco_f407vg
  232. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  233. lib_deps = ${common.lib_deps}
  234. lib_ignore = Adafruit NeoPixel, c1921b4, TMC2130Stepper
  235. src_filter = ${common.default_src_filter}
  236. monitor_baud = 250000
  237. #
  238. # Teensy++ 2.0
  239. #
  240. # - PrintrBoard
  241. # - PrintrBoard Rev.F
  242. # - Brainwave Pro
  243. #
  244. [env:teensy20]
  245. platform = teensy
  246. framework = arduino
  247. board = teensy20pp
  248. build_flags = ${common.build_flags}
  249. #board_f_cpu = 20000000L ; Bug in Arduino framework disallows boards running at 20Mhz
  250. lib_deps = ${common.lib_deps}
  251. lib_ldf_mode = deep+
  252. src_filter = ${common.default_src_filter}
  253. monitor_baud = 250000
  254. #
  255. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  256. #
  257. [env:teensy35]
  258. platform = teensy
  259. framework = arduino
  260. board = teensy35
  261. build_flags = ${common.build_flags}
  262. lib_deps = ${common.lib_deps}
  263. lib_ignore = Adafruit NeoPixel
  264. src_filter = ${common.default_src_filter}
  265. monitor_baud = 250000
  266. [env:malyanm200]
  267. platform = ststm32
  268. framework = arduino
  269. board = malyanM200
  270. 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
  271. src_filter = ${common.default_src_filter}
  272. #-<frameworks>
  273. lib_ignore =
  274. U8glib
  275. LiquidCrystal_I2C
  276. LiquidCrystal
  277. NewliquidCrystal
  278. LiquidTWI2
  279. Adafruit NeoPixel
  280. TMC2130Stepper
  281. Servo(STM32F1)
  282. TMC26XStepper
  283. U8glib-HAL
  284. TMC2208Stepper
  285. c1921b4