My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

platformio.ini 25KB

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