My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

platformio.ini 24KB

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