My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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