My Marlin configs for Fabrikator Mini and CTC i3 Pro B
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

platformio.ini 29KB

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