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.

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