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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  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. boards_dir = buildroot/share/PlatformIO/boards
  18. default_envs = megaatmega2560
  19. [common]
  20. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  21. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  22. build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
  23. lib_deps =
  24. LiquidCrystal
  25. TMCStepper@>=0.6.1,<1.0.0
  26. Adafruit NeoPixel
  27. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  28. Adafruit_MAX31865=https://github.com/adafruit/Adafruit_MAX31865/archive/master.zip
  29. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  30. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/0.8.0.zip
  31. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  32. SailfishRGB_LED=https://github.com/mikeshub/SailfishRGB_LED/archive/master.zip
  33. SlowSoftI2CMaster=https://github.com/mikeshub/SlowSoftI2CMaster/archive/master.zip
  34. # Globally defined properties
  35. # inherited by all environments
  36. [env]
  37. framework = arduino
  38. build_flags = ${common.build_flags}
  39. lib_deps = ${common.lib_deps}
  40. monitor_speed = 250000
  41. #################################
  42. # #
  43. # Unique Core Architectures #
  44. # #
  45. # Add a new "env" below if no #
  46. # entry has values suitable to #
  47. # build for a given board. #
  48. # #
  49. #################################
  50. #
  51. # ATmega2560
  52. #
  53. [env:megaatmega2560]
  54. platform = atmelavr
  55. board = megaatmega2560
  56. board_build.f_cpu = 16000000L
  57. lib_deps = ${common.lib_deps}
  58. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  59. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  60. #
  61. # ATmega1280
  62. #
  63. [env:megaatmega1280]
  64. platform = atmelavr
  65. board = megaatmega1280
  66. board_build.f_cpu = 16000000L
  67. lib_deps = ${common.lib_deps}
  68. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  69. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  70. #
  71. # RAMBo
  72. #
  73. [env:rambo]
  74. platform = atmelavr
  75. board = reprap_rambo
  76. board_build.f_cpu = 16000000L
  77. lib_deps = ${common.lib_deps}
  78. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  79. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  80. #
  81. # FYSETC F6 V1.3
  82. #
  83. [env:FYSETC_F6_13]
  84. platform = atmelavr
  85. board = fysetc_f6_13
  86. board_build.f_cpu = 16000000L
  87. lib_deps = ${common.lib_deps}
  88. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  89. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  90. #
  91. # FYSETC F6 V1.4
  92. #
  93. [env:FYSETC_F6_14]
  94. platform = atmelavr
  95. board = fysetc_f6_14
  96. board_build.f_cpu = 16000000L
  97. lib_deps = ${common.lib_deps}
  98. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  99. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  100. #
  101. # Sanguinololu (ATmega644p)
  102. #
  103. [env:sanguino_atmega644p]
  104. platform = atmelavr
  105. board = sanguino_atmega644p
  106. lib_deps = ${common.lib_deps}
  107. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  108. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  109. #
  110. # Sanguinololu (ATmega1284p)
  111. #
  112. [env:sanguino_atmega1284p]
  113. platform = atmelavr
  114. board = sanguino_atmega1284p
  115. lib_deps = ${common.lib_deps}
  116. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  117. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  118. #
  119. # Melzi and clones (ATmega1284p)
  120. #
  121. [env:melzi]
  122. platform = atmelavr
  123. board = sanguino_atmega1284p
  124. lib_deps = ${common.lib_deps}
  125. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  126. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  127. build_flags = ${common.build_flags}
  128. lib_ignore = TMCStepper
  129. upload_speed = 57600
  130. #
  131. # Melzi and clones (Optiboot bootloader)
  132. #
  133. [env:melzi_optiboot]
  134. platform = atmelavr
  135. board = sanguino_atmega1284p
  136. lib_deps = ${common.lib_deps}
  137. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  138. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  139. build_flags = ${common.build_flags}
  140. lib_ignore = TMCStepper
  141. upload_speed = 115200
  142. #
  143. # AT90USB1286 boards using CDC bootloader
  144. # - BRAINWAVE
  145. # - BRAINWAVE_PRO
  146. # - SAV_MKI
  147. # - TEENSYLU
  148. #
  149. [env:at90usb1286_cdc]
  150. platform = teensy
  151. board = at90usb1286
  152. lib_deps = ${common.lib_deps}
  153. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  154. lib_ignore = TMCStepper
  155. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  156. #
  157. # AT90USB1286 boards using DFU bootloader
  158. # - PrintrBoard
  159. # - PrintrBoard Rev.F
  160. # - ? 5DPRINT ?
  161. #
  162. [env:at90usb1286_dfu]
  163. platform = teensy
  164. board = at90usb1286
  165. lib_deps = ${common.lib_deps}
  166. lib_ignore = TMCStepper
  167. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  168. #
  169. # Due (Atmel SAM3X8E ARM Cortex-M3)
  170. #
  171. # - RAMPS4DUE
  172. # - RADDS
  173. #
  174. [env:DUE]
  175. platform = atmelsam
  176. board = due
  177. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  178. [env:DUE_USB]
  179. platform = atmelsam
  180. board = dueUSB
  181. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  182. [env:DUE_debug]
  183. # Used when WATCHDOG_RESET_MANUAL is enabled
  184. platform = atmelsam
  185. board = due
  186. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  187. build_flags = ${common.build_flags}
  188. -funwind-tables
  189. -mpoke-function-name
  190. #
  191. # NXP LPC176x ARM Cortex-M3
  192. #
  193. [env:LPC1768]
  194. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.2.zip
  195. board = nxp_lpc1768
  196. build_flags = -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  197. # debug options for backtrace
  198. # -funwind-tables
  199. # -mpoke-function-name
  200. lib_ldf_mode = off
  201. lib_compat_mode = strict
  202. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  203. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  204. lib_deps = Servo
  205. LiquidCrystal
  206. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  207. TMCStepper@>=0.6.1,<1.0.0
  208. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
  209. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  210. [env:LPC1769]
  211. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.2.zip
  212. board = nxp_lpc1769
  213. build_flags = -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  214. # debug options for backtrace
  215. # -funwind-tables
  216. # -mpoke-function-name
  217. lib_ldf_mode = off
  218. lib_compat_mode = strict
  219. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  220. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  221. lib_deps = Servo
  222. LiquidCrystal
  223. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
  224. TMCStepper@>=0.6.1,<1.0.0
  225. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/release.zip
  226. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  227. #
  228. # STM32F103RC
  229. #
  230. [env:STM32F103RC]
  231. platform = ststm32
  232. board = genericSTM32F103RC
  233. platform_packages = tool-stm32duino
  234. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  235. ${common.build_flags} -std=gnu++14
  236. build_unflags = -std=gnu++11
  237. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  238. lib_deps = ${common.lib_deps}
  239. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  240. lib_ignore = Adafruit NeoPixel, SPI
  241. monitor_speed = 115200
  242. #
  243. # STM32F103RC_fysetc
  244. #
  245. [env:STM32F103RC_fysetc]
  246. platform = ststm32
  247. board = genericSTM32F103RC
  248. #board_build.core = maple
  249. platform_packages = tool-stm32duino
  250. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  251. ${common.build_flags} -std=gnu++14 -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
  252. build_unflags = -std=gnu++11
  253. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  254. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  255. lib_deps = ${common.lib_deps}
  256. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  257. lib_ignore = Adafruit NeoPixel, SPI
  258. lib_ldf_mode = chain
  259. debug_tool = stlink
  260. upload_protocol = serial
  261. #
  262. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  263. #
  264. # STM32F103RC_bigtree ............. RCT6 with 256K
  265. # STM32F103RC_bigtree_USB ......... RCT6 with 256K (USB mass storage)
  266. # STM32F103RC_bigtree_512K ........ RCT6 with 512K
  267. # STM32F103RC_bigtree_512K_USB .... RCT6 with 512K (USB mass storage)
  268. #
  269. [env:STM32F103RC_bigtree]
  270. platform = ststm32
  271. board = genericSTM32F103RC
  272. platform_packages = tool-stm32duino
  273. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  274. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
  275. build_unflags = -std=gnu++11
  276. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  277. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  278. lib_deps = ${common.lib_deps}
  279. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  280. lib_ignore = Adafruit NeoPixel, SPI
  281. monitor_speed = 115200
  282. [env:STM32F103RC_bigtree_USB]
  283. platform = ststm32
  284. board = genericSTM32F103RC
  285. platform_packages = tool-stm32duino
  286. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  287. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
  288. build_unflags = -std=gnu++11
  289. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  290. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  291. lib_deps = ${common.lib_deps}
  292. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  293. lib_ignore = Adafruit NeoPixel, SPI
  294. monitor_speed = 115200
  295. [env:STM32F103RC_bigtree_512K]
  296. platform = ststm32
  297. board = genericSTM32F103RC
  298. board_upload.maximum_size=524288
  299. platform_packages = tool-stm32duino
  300. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  301. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512
  302. build_unflags = -std=gnu++11
  303. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  304. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  305. lib_deps = ${common.lib_deps}
  306. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  307. lib_ignore = Adafruit NeoPixel, SPI
  308. monitor_speed = 115200
  309. [env:STM32F103RC_bigtree_512K_USB]
  310. platform = ststm32
  311. board = genericSTM32F103RC
  312. board_upload.maximum_size=524288
  313. platform_packages = tool-stm32duino
  314. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  315. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DSTM32_FLASH_SIZE=512 -DUSE_USB_COMPOSITE
  316. build_unflags = -std=gnu++11
  317. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  318. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  319. lib_deps = ${common.lib_deps}
  320. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  321. lib_ignore = Adafruit NeoPixel, SPI
  322. monitor_speed = 115200
  323. #
  324. # STM32F103RE
  325. #
  326. [env:STM32F103RE]
  327. platform = ststm32
  328. board = genericSTM32F103RE
  329. platform_packages = tool-stm32duino
  330. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  331. ${common.build_flags} -std=gnu++14
  332. build_unflags = -std=gnu++11
  333. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  334. lib_deps = ${common.lib_deps}
  335. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  336. lib_ignore = Adafruit NeoPixel, SPI
  337. monitor_speed = 115200
  338. #
  339. # STM32F103RE_bigtree ............. RET6
  340. # STM32F103RE_bigtree_USB ......... RET6 (USB mass storage)
  341. #
  342. [env:STM32F103RE_bigtree]
  343. platform = ststm32
  344. board = genericSTM32F103RE
  345. platform_packages = tool-stm32duino
  346. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  347. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4
  348. build_unflags = -std=gnu++11
  349. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  350. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  351. lib_deps = ${common.lib_deps}
  352. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  353. lib_ignore = Adafruit NeoPixel, SPI
  354. debug_tool = stlink
  355. upload_protocol = stlink
  356. monitor_speed = 115200
  357. [env:STM32F103RE_bigtree_USB]
  358. platform = ststm32
  359. board = genericSTM32F103RE
  360. platform_packages = tool-stm32duino
  361. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  362. ${common.build_flags} -DDEBUG_LEVEL=0 -std=gnu++14 -DHAVE_SW_SERIAL -DSS_TIMER=4 -DUSE_USB_COMPOSITE
  363. build_unflags = -std=gnu++11
  364. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  365. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  366. lib_deps = ${common.lib_deps}
  367. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  368. lib_ignore = Adafruit NeoPixel, SPI
  369. debug_tool = stlink
  370. upload_protocol = stlink
  371. monitor_speed = 115200
  372. #
  373. # STM32F4 with STM32GENERIC
  374. #
  375. [env:STM32F4]
  376. platform = ststm32
  377. board = disco_f407vg
  378. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  379. lib_ignore = Adafruit NeoPixel, TMCStepper
  380. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
  381. #
  382. # STM32F7 with STM32GENERIC
  383. #
  384. [env:STM32F7]
  385. platform = ststm32
  386. board = remram_v1
  387. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  388. lib_ignore = Adafruit NeoPixel, TMCStepper
  389. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F4>
  390. #
  391. # ARMED (STM32)
  392. #
  393. [env:ARMED]
  394. platform = ststm32
  395. board = armed_v1
  396. build_flags = ${common.build_flags}
  397. -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DUSBD_USE_CDC
  398. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  399. -IMarlin/src/HAL/HAL_STM32
  400. lib_ignore = Adafruit NeoPixel, SoftwareSerial
  401. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  402. #
  403. # Geeetech GTM32 (STM32F103VET6)
  404. #
  405. [env:STM32F103VE_GTM32]
  406. platform = ststm32
  407. board = genericSTM32F103VE
  408. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  409. ${common.build_flags} -DDEBUG_LEVEL=DEBUG_NONE -std=gnu++14 -MMD -ffunction-sections -fdata-sections -nostdlib
  410. -DBOARD_generic_stm32f103v -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
  411. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  412. build_unflags = -std=gnu++11
  413. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  414. lib_ignore = Adafruit NeoPixel, SPI
  415. upload_protocol = serial
  416. #
  417. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  418. #
  419. [env:STM32F103VE_longer]
  420. platform = ststm32
  421. board = genericSTM32F103VE
  422. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  423. ${common.build_flags} -std=gnu++14 -USERIAL_USB
  424. -DSTM32F1xx -DU20 -DTS_V12
  425. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  426. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  427. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  428. lib_ignore = Adafruit NeoPixel, LiquidTWI2, SPI
  429. #
  430. # MKS Robin Mini (STM32F103VET6)
  431. #
  432. [env:mks_robin_mini]
  433. platform = ststm32
  434. board = genericSTM32F103VE
  435. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  436. ${common.build_flags} -std=gnu++14
  437. build_unflags = -std=gnu++11
  438. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  439. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  440. lib_ignore = Adafruit NeoPixel, SPI
  441. #
  442. # MKS Robin Nano (STM32F103VET6)
  443. #
  444. [env:mks_robin_nano]
  445. platform = ststm32
  446. board = genericSTM32F103VE
  447. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  448. ${common.build_flags} -std=gnu++14
  449. build_unflags = -std=gnu++11
  450. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  451. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  452. lib_ignore = Adafruit NeoPixel, SPI
  453. #
  454. # MKS Robin (STM32F103ZET6)
  455. #
  456. [env:mks_robin]
  457. platform = ststm32
  458. board = genericSTM32F103ZE
  459. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  460. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY
  461. build_unflags = -std=gnu++11
  462. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  463. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  464. lib_ignore = Adafruit NeoPixel, SPI
  465. #
  466. # MKS Robin Pro (STM32F103ZET6)
  467. #
  468. [env:mks_robin_pro]
  469. platform = ststm32
  470. board = genericSTM32F103ZE
  471. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  472. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  473. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY
  474. build_unflags = -std=gnu++11
  475. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  476. lib_deps = ${common.lib_deps}
  477. lib_ignore = Adafruit NeoPixel, SPI, TMCStepper
  478. #
  479. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  480. #
  481. [env:mks_robin_lite]
  482. platform = ststm32
  483. board = genericSTM32F103RC
  484. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  485. ${common.build_flags} -std=gnu++14
  486. build_unflags = -std=gnu++11
  487. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  488. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  489. lib_ignore = Adafruit NeoPixel, SPI
  490. #
  491. # MKS ROBIN LITE3 (STM32F103RCT6)
  492. #
  493. [env:mks_robin_lite3]
  494. platform = ststm32
  495. board = genericSTM32F103RC
  496. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  497. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  498. ${common.build_flags} -std=gnu++14
  499. build_unflags = -std=gnu++11
  500. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  501. lib_deps = ${common.lib_deps}
  502. lib_ignore = Adafruit NeoPixel, SPI
  503. #
  504. # JGAurora A5S A1 (STM32F103ZET6)
  505. #
  506. [env:jgaurora_a5s_a1]
  507. platform = ststm32
  508. board = genericSTM32F103ZE
  509. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  510. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  511. build_unflags = -std=gnu++11
  512. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  513. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  514. lib_ignore = Adafruit NeoPixel, SPI
  515. #
  516. # Malyan M200 (STM32F103CB)
  517. #
  518. [env:STM32F103CB_malyan]
  519. platform = ststm32
  520. board = malyanM200
  521. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  522. -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  523. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  524. lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SPI
  525. #
  526. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  527. #
  528. [env:chitu_f103]
  529. platform = ststm32
  530. board = genericSTM32F103ZE
  531. build_flags = !python Marlin/src/HAL/HAL_STM32F1/build_flags.py
  532. ${common.build_flags} -DSTM32F1xx -std=gnu++14 -DSTM32_XL_DENSITY
  533. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  534. extra_scripts = buildroot/share/PlatformIO/scripts/chitu_crypt.py
  535. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  536. lib_ignore = Adafruit NeoPixel
  537. #
  538. # STM32F401VE
  539. # 'STEVAL-3DP001)' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  540. #
  541. [env:STM32F401VE_STEVAL]
  542. platform = ststm32
  543. board = STEVAL_STM32F401VE
  544. platform_packages = framework-arduinoststm32@>=3.107,<4
  545. build_flags = ${common.build_flags}
  546. -DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
  547. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STEVAL_F401VE\"
  548. -DDISABLE_GENERIC_SERIALUSB
  549. -IMarlin/src/HAL/HAL_STM32
  550. build_unflags = -std=gnu++11
  551. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  552. buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
  553. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
  554. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  555. #
  556. # FLYF407ZG
  557. #
  558. [env:FLYF407ZG]
  559. platform = ststm32
  560. board = FLYF407ZG
  561. platform_packages = framework-arduinoststm32@>=3.107,<4
  562. build_flags = ${common.build_flags}
  563. -DSTM32F4 -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  564. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
  565. -IMarlin/src/HAL/HAL_STM32
  566. build_unflags = -std=gnu++11
  567. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  568. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
  569. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  570. #
  571. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  572. #
  573. [env:FYSETC_S6]
  574. platform = ststm32
  575. board = fysetc_s6
  576. platform_packages = tool-stm32duino
  577. build_flags = ${common.build_flags}
  578. -DTARGET_STM32F4 -std=gnu++14
  579. -DVECT_TAB_OFFSET=0x10000
  580. -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED -DUSBD_VID=0x0483 '-DUSB_PRODUCT="FYSETC_S6"'
  581. build_unflags = -std=gnu++11
  582. extra_scripts = pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
  583. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  584. lib_ignore = Arduino-L6470
  585. debug_tool = stlink
  586. #upload_protocol = stlink
  587. upload_protocol = serial
  588. #
  589. # STM32F407VET6 with RAMPS-like shield
  590. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  591. # Shield - https://github.com/jmz52/Hardware
  592. #
  593. [env:STM32F407VE_black]
  594. platform = ststm32
  595. board = blackSTM32F407VET6
  596. platform_packages = framework-arduinoststm32@>=3.107,<4
  597. build_flags = ${common.build_flags}
  598. -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
  599. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  600. -IMarlin/src/HAL/HAL_STM32
  601. build_unflags = -std=gnu++11
  602. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  603. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, SoftwareSerial
  604. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  605. #
  606. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  607. #
  608. [env:BIGTREE_SKR_PRO]
  609. platform = ststm32
  610. board = BigTree_SKR_Pro
  611. platform_packages = framework-arduinoststm32@>=3.107,<4
  612. build_flags = ${common.build_flags}
  613. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  614. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  615. -IMarlin/src/HAL/HAL_STM32
  616. build_unflags = -std=gnu++11
  617. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  618. lib_ignore = SoftwareSerial, SoftwareSerialM
  619. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  620. #upload_protocol = stlink
  621. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  622. debug_tool = stlink
  623. debug_init_break =
  624. #
  625. # BigTreeTech BTT002 (STM32F407VET6 ARM Cortex-M4)
  626. #
  627. [env:BIGTREE_BTT002]
  628. platform = ststm32@5.6.0
  629. board = BigTree_Btt002
  630. platform_packages = framework-arduinoststm32@>=3.107,<4
  631. build_flags = ${common.build_flags}
  632. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407VE\"
  633. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  634. -DHAVE_HWSERIAL2
  635. -DHAVE_HWSERIAL3
  636. -DPIN_SERIAL2_RX=PD_6
  637. -DPIN_SERIAL2_TX=PD_5
  638. build_unflags = -std=gnu++11
  639. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  640. lib_ignore = Adafruit NeoPixel, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  641. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  642. #
  643. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  644. #
  645. [env:teensy31]
  646. platform = teensy
  647. board = teensy31
  648. lib_deps = ${common.lib_deps}
  649. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  650. lib_ignore = Adafruit NeoPixel
  651. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY31_32>
  652. #
  653. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  654. #
  655. [env:teensy35]
  656. platform = teensy
  657. board = teensy35
  658. lib_deps = ${common.lib_deps}
  659. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  660. lib_ignore = Adafruit NeoPixel
  661. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  662. #
  663. # Espressif ESP32
  664. #
  665. [env:esp32]
  666. platform = espressif32
  667. board = esp32dev
  668. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  669. lib_deps = ${common.lib_deps}
  670. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  671. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  672. ESP3DLib=https://github.com/luc-github/ESP3DLib.git
  673. arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets.git
  674. ESP32SSDP=https://github.com/luc-github/ESP32SSDP.git
  675. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
  676. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  677. upload_speed = 115200
  678. #upload_port = marlinesp.local
  679. #board_build.flash_mode = qio
  680. #
  681. # Native
  682. # No supported Arduino libraries, base Marlin only
  683. #
  684. [env:linux_native]
  685. platform = native
  686. framework =
  687. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  688. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  689. build_unflags = -Wall
  690. lib_ldf_mode = off
  691. lib_deps =
  692. extra_scripts =
  693. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
  694. #
  695. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  696. #
  697. [env:SAMD51_grandcentral_m4]
  698. platform = atmelsam
  699. board = adafruit_grandcentral_m4
  700. build_flags = ${common.build_flags} -std=gnu++17
  701. extra_scripts = ${common.extra_scripts}
  702. build_unflags = -std=gnu++11
  703. src_filter = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
  704. debug_tool = jlink
  705. #
  706. # RUMBA32
  707. #
  708. [env:rumba32_f446ve]
  709. platform = ststm32
  710. board = rumba32_f446ve
  711. build_flags = ${common.build_flags}
  712. -DSTM32F4xx
  713. -DARDUINO_RUMBA32_F446VE
  714. -DARDUINO_ARCH_STM32
  715. "-DBOARD_NAME=\"RUMBA32_F446VE\""
  716. -DSTM32F446xx
  717. -DUSBCON
  718. -DUSBD_VID=0x0483
  719. "-DUSB_MANUFACTURER=\"Unknown\""
  720. "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
  721. -DHAL_PCD_MODULE_ENABLED
  722. -DUSBD_USE_CDC
  723. -DDISABLE_GENERIC_SERIALUSB
  724. -DHAL_UART_MODULE_ENABLED
  725. -Os
  726. lib_ignore = Adafruit NeoPixel
  727. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  728. monitor_speed = 500000
  729. upload_protocol = dfu
  730. #
  731. # MKS RUMBA32(add TMC2208/2209 UART interface and AUX-1)
  732. #
  733. [env:mks_rumba32]
  734. platform = ststm32
  735. board = rumba32_f446ve
  736. build_flags = ${common.build_flags}
  737. -DSTM32F4xx -DARDUINO_RUMBA32_F446VE -DARDUINO_ARCH_STM32 "-DBOARD_NAME=\"RUMBA32_F446VE\""
  738. -DSTM32F446xx -DUSBCON -DUSBD_VID=0x8000
  739. "-DUSB_MANUFACTURER=\"Unknown\""
  740. "-DUSB_PRODUCT=\"RUMBA32_F446VE\""
  741. -DHAL_PCD_MODULE_ENABLED
  742. -DUSBD_USE_CDC
  743. -DDISABLE_GENERIC_SERIALUSB
  744. -DHAL_UART_MODULE_ENABLED
  745. -Os
  746. lib_ignore = Adafruit NeoPixel
  747. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32> +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
  748. upload_protocol = dfu
  749. #
  750. # Just print the dependency tree
  751. #
  752. [env:include_tree]
  753. platform = atmelavr
  754. board = megaatmega2560
  755. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  756. lib_deps = ${common.lib_deps}
  757. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  758. src_filter = +<src/Marlin.cpp>