My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

platformio.ini 25KB

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