Advertisement
Guest User

platformio.ini

a guest
Aug 2nd, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.96 KB | None | 0 0
  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.  
  10. # Automatic targets - enable auto-uploading
  11. #targets = upload
  12.  
  13. #
  14. # By default platformio build will abort after 5 errors.
  15. # Remove '-fmax-errors=5' from build_flags below to see all.
  16. #
  17.  
  18. [platformio]
  19. src_dir = Marlin
  20. boards_dir = buildroot/share/PlatformIO/boards
  21. default_envs = LPC1768
  22. ## STM32F103RC_btt_512K LPC1768
  23. include_dir = Marlin
  24.  
  25. #
  26. # The 'common' values are used for most Marlin builds
  27. #
  28. [common]
  29. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  30. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  31. build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
  32. lib_deps =
  33. LiquidCrystal@1.5.0
  34. TMCStepper@~0.7.1
  35. Adafruit MAX31865 library@~1.1.0
  36. Adafruit NeoPixel@1.5.0
  37. U8glib-HAL@0.4.1
  38. Arduino-L6470@0.8.0
  39. SlowSoftI2CMaster
  40. LiquidTWI2@1.2.7
  41. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  42.  
  43. #
  44. # Default values apply to all 'env:' prefixed environments
  45. #
  46. [env]
  47. framework = arduino
  48. build_flags = ${common.build_flags}
  49. lib_deps = ${common.lib_deps}
  50. monitor_speed = 250000
  51.  
  52. #################################
  53. # #
  54. # Unique Core Architectures #
  55. # #
  56. # Add a new "env" below if no #
  57. # entry has values suitable to #
  58. # build for a given board. #
  59. # #
  60. #################################
  61.  
  62. #################################
  63. # #
  64. # AVR Architecture #
  65. # #
  66. #################################
  67.  
  68. #
  69. # AVR (8-bit) Common Environment values
  70. #
  71. [common_avr8]
  72. board_build.f_cpu = 16000000L
  73. lib_deps = ${common.lib_deps}
  74. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  75. src_filter = ${common.default_src_filter} +<src/HAL/AVR>
  76.  
  77. #
  78. # ATmega2560
  79. #
  80. [env:mega2560]
  81. platform = atmelavr
  82. extends = common_avr8
  83. board = megaatmega2560
  84.  
  85. #
  86. # ATmega1280
  87. #
  88. [env:mega1280]
  89. platform = atmelavr
  90. extends = common_avr8
  91. board = megaatmega1280
  92.  
  93. #
  94. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  95. #
  96. [env:MightyBoard1280]
  97. platform = atmelavr
  98. extends = common_avr8
  99. board = ATmega1280
  100. upload_speed = 57600
  101.  
  102. #
  103. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  104. #
  105. [env:MightyBoard2560]
  106. platform = atmelavr
  107. extends = common_avr8
  108. board = ATmega2560
  109. upload_protocol = wiring
  110. upload_speed = 57600
  111. board_upload.maximum_size = 253952
  112.  
  113. #
  114. # RAMBo
  115. #
  116. [env:rambo]
  117. platform = atmelavr
  118. extends = common_avr8
  119. board = reprap_rambo
  120.  
  121. #
  122. # FYSETC F6 V1.3
  123. #
  124. [env:FYSETC_F6_13]
  125. platform = atmelavr
  126. extends = common_avr8
  127. board = fysetc_f6_13
  128.  
  129. #
  130. # FYSETC F6 V1.4
  131. #
  132. [env:FYSETC_F6_14]
  133. platform = atmelavr
  134. extends = common_avr8
  135. board = fysetc_f6_14
  136.  
  137. #
  138. # Sanguinololu (ATmega644p)
  139. #
  140. [env:sanguino644p]
  141. platform = atmelavr
  142. extends = common_avr8
  143. board = sanguino_atmega644p
  144.  
  145. #
  146. # Sanguinololu (ATmega1284p)
  147. #
  148. [env:sanguino1284p]
  149. platform = atmelavr
  150. extends = common_avr8
  151. board = sanguino_atmega1284p
  152. board_upload.maximum_size = 126976
  153.  
  154. #
  155. # Melzi and clones (ATmega1284p)
  156. #
  157. [env:melzi]
  158. platform = atmelavr
  159. extends = common_avr8
  160. board = sanguino_atmega1284p
  161. lib_ignore = TMCStepper
  162. upload_speed = 57600
  163. board_upload.maximum_size = 126976
  164.  
  165. #
  166. # Melzi and clones (Optiboot bootloader)
  167. #
  168. [env:melzi_optiboot]
  169. platform = atmelavr
  170. extends = common_avr8
  171. board = sanguino_atmega1284p
  172. lib_ignore = TMCStepper
  173. upload_speed = 115200
  174.  
  175. #
  176. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  177. #
  178. [env:melzi_optimized]
  179. platform = atmelavr
  180. extends = env:melzi_optiboot
  181. build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
  182. build_unflags = -g -ggdb
  183.  
  184. #
  185. # AT90USB1286 boards using CDC bootloader
  186. # - BRAINWAVE
  187. # - BRAINWAVE_PRO
  188. # - SAV_MKI
  189. # - TEENSYLU
  190. #
  191. [env:at90usb1286_cdc]
  192. platform = teensy
  193. extends = common_avr8
  194. board = at90usb1286
  195. lib_ignore = TMCStepper
  196.  
  197. #
  198. # AT90USB1286 boards using DFU bootloader
  199. # - PrintrBoard
  200. # - PrintrBoard Rev.F
  201. # - ? 5DPRINT ?
  202. #
  203. [env:at90usb1286_dfu]
  204. platform = teensy
  205. extends = env:at90usb1286_cdc
  206.  
  207. #################################
  208. # #
  209. # DUE Architecture #
  210. # #
  211. #################################
  212.  
  213. #
  214. # Due (Atmel SAM3X8E ARM Cortex-M3)
  215. #
  216. # - RAMPS4DUE
  217. # - RADDS
  218. #
  219. [env:DUE]
  220. platform = atmelsam
  221. board = due
  222. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  223.  
  224. [env:DUE_USB]
  225. platform = atmelsam
  226. board = dueUSB
  227. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  228.  
  229. [env:DUE_debug]
  230. # Used when WATCHDOG_RESET_MANUAL is enabled
  231. platform = atmelsam
  232. board = due
  233. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  234. build_flags = ${common.build_flags}
  235. -funwind-tables
  236. -mpoke-function-name
  237.  
  238. #
  239. # Archim SAM
  240. #
  241. [common_DUE_archim]
  242. platform = atmelsam
  243. board = due
  244. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  245. build_flags = ${common.build_flags}
  246. -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
  247. extra_scripts = Marlin/src/HAL/DUE/upload_extra_script.py
  248.  
  249. [env:DUE_archim]
  250. platform = ${common_DUE_archim.platform}
  251. extends = common_DUE_archim
  252.  
  253. # Used when WATCHDOG_RESET_MANUAL is enabled
  254. [env:DUE_archim_debug]
  255. platform = ${common_DUE_archim.platform}
  256. extends = common_DUE_archim
  257. build_flags = ${common_DUE_archim.build_flags} -funwind-tables -mpoke-function-name
  258.  
  259. #################################
  260. # #
  261. # SAMD51 Architecture #
  262. # #
  263. #################################
  264.  
  265. #
  266. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  267. #
  268. [env:SAMD51_grandcentral_m4]
  269. platform = atmelsam
  270. board = adafruit_grandcentral_m4
  271. build_flags = ${common.build_flags} -std=gnu++17
  272. extra_scripts = ${common.extra_scripts}
  273. build_unflags = -std=gnu++11
  274. src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
  275. lib_deps = ${common.lib_deps}
  276. SoftwareSerialM
  277. Adafruit_SPIFlash=https://github.com/adafruit/Adafruit_SPIFlash/archive/master.zip
  278. debug_tool = jlink
  279.  
  280. #################################
  281. # #
  282. # LPC176x Architecture #
  283. # #
  284. #################################
  285.  
  286. #
  287. # NXP LPC176x ARM Cortex-M3
  288. #
  289. [common_LPC]
  290. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
  291. board = nxp_lpc1768
  292. lib_ldf_mode = off
  293. lib_compat_mode = strict
  294. extra_scripts = Marlin/src/HAL/LPC1768/upload_extra_script.py
  295. src_filter = ${common.default_src_filter} +<src/HAL/LPC1768>
  296. lib_deps = Servo
  297. LiquidCrystal@1.0.0
  298. U8glib-HAL@0.4.1
  299. TMCStepper@~0.7.1
  300. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
  301. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  302. build_flags = -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g ${common.build_flags}
  303. # debug options for backtrace
  304. #-funwind-tables
  305. #-mpoke-function-name
  306.  
  307. #
  308. # NXP LPC176x ARM Cortex-M3
  309. #
  310. [env:LPC1768]
  311. platform = ${common_LPC.platform}
  312. extends = common_LPC
  313. board = nxp_lpc1768
  314.  
  315. [env:LPC1769]
  316. platform = ${common_LPC.platform}
  317. extends = common_LPC
  318. board = nxp_lpc1769
  319.  
  320. #################################
  321. # #
  322. # STM32 Architecture #
  323. # #
  324. #################################
  325.  
  326. #
  327. # HAL/STM32 Base Environment values
  328. #
  329. [common_stm32]
  330. platform = ststm32@~6.1.0
  331. platform_packages = framework-arduinoststm32@>=4.10700,<4.10800
  332. lib_deps = ${common.lib_deps}
  333. lib_ignore = SoftwareSerial
  334. build_flags = ${common.build_flags}
  335. -IMarlin/src/HAL/STM32 -std=gnu++14
  336. -DUSBCON -DUSBD_USE_CDC
  337. -DUSBD_VID=0x0483
  338. -DTIM_IRQ_PRIO=13
  339. build_unflags = -std=gnu++11
  340. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  341.  
  342. #
  343. # HAL/STM32F1 Common Environment values
  344. #
  345. [common_stm32f1]
  346. platform = ${common_stm32.platform}
  347. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  348. ${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
  349. build_unflags = -std=gnu++11
  350. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  351. lib_ignore =
  352. Adafruit NeoPixel
  353. SPI
  354. lib_deps = ${common.lib_deps}
  355. SoftwareSerialM
  356.  
  357. #
  358. # STM32F103RC
  359. #
  360. [env:STM32F103RC]
  361. platform = ${common_stm32f1.platform}
  362. extends = common_stm32f1
  363. board = genericSTM32F103RC
  364. platform_packages = tool-stm32duino
  365. monitor_speed = 115200
  366.  
  367. #
  368. # MEEB_3DP (STM32F103RCT6 with 512K)
  369. #
  370. [env:STM32F103RC_meeb]
  371. platform = ${common_stm32f1.platform}
  372. extends = common_stm32f1
  373. board = MEEB_3DP
  374. platform_packages = tool-stm32duino
  375. build_flags = ${common_stm32f1.build_flags}
  376. -DDEBUG_LEVEL=0
  377. -DSS_TIMER=4
  378. -DSTM32_FLASH_SIZE=512
  379. -DHSE_VALUE=12000000U
  380. -DUSE_USB_COMPOSITE
  381. -DVECT_TAB_OFFSET=0x2000
  382. -DGENERIC_BOOTLOADER
  383. extra_scripts = pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  384. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  385. lib_deps =
  386. TMCStepper@~0.7.1
  387. Adafruit MAX31865 library@~1.1.0
  388. U8glib-HAL@0.4.1
  389. Arduino-L6470@0.8.0
  390. SlowSoftI2CMaster
  391. LiquidTWI2@1.2.7
  392. Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  393. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  394. SoftwareSerialM
  395. USBComposite for STM32F1@0.91
  396. lib_ignore = SPI
  397. debug_tool = stlink
  398. upload_protocol = dfu
  399.  
  400. #
  401. # STM32F103RC_fysetc
  402. #
  403. [env:STM32F103RC_fysetc]
  404. platform = ${common_stm32f1.platform}
  405. extends = env:STM32F103RC
  406. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  407. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  408. lib_ldf_mode = chain
  409. debug_tool = stlink
  410. upload_protocol = serial
  411.  
  412. #
  413. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  414. #
  415. # STM32F103RC_btt ............. RCT6 with 256K
  416. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  417. # STM32F103RC_btt_512K ........ RCT6 with 512K
  418. # STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
  419. #
  420.  
  421. [env:STM32F103RC_btt]
  422. platform = ${common_stm32f1.platform}
  423. extends = env:STM32F103RC
  424. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  425. build_flags = ${common_stm32f1.build_flags}
  426. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  427. monitor_speed = 115200
  428.  
  429. [env:STM32F103RC_btt_USB]
  430. platform = ${common_stm32f1.platform}
  431. extends = env:STM32F103RC_btt
  432. build_flags = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
  433. lib_deps = ${env:STM32F103RC_btt.lib_deps}
  434. USBComposite for STM32F1@0.91
  435.  
  436. [env:STM32F103RC_btt_512K]
  437. platform = ${common_stm32f1.platform}
  438. extends = env:STM32F103RC_btt
  439. board_upload.maximum_size=524288
  440. build_flags = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
  441.  
  442. [env:STM32F103RC_btt_512K_USB]
  443. platform = ${common_stm32f1.platform}
  444. extends = env:STM32F103RC_btt_512K
  445. build_flags = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
  446. lib_deps = ${env:STM32F103RC_btt_512K.lib_deps}
  447. USBComposite for STM32F1@0.91
  448.  
  449. #
  450. # STM32F103RE
  451. #
  452. [env:STM32F103RE]
  453. platform = ${common_stm32f1.platform}
  454. extends = common_stm32f1
  455. board = genericSTM32F103RE
  456. platform_packages = tool-stm32duino
  457. monitor_speed = 115200
  458.  
  459. #
  460. # STM32F103RE_btt ............. RET6
  461. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  462. #
  463. [env:STM32F103RE_btt]
  464. platform = ${common_stm32f1.platform}
  465. extends = env:STM32F103RE
  466. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  467. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  468. debug_tool = stlink
  469. upload_protocol = stlink
  470.  
  471. [env:STM32F103RE_btt_USB]
  472. platform = ${common_stm32f1.platform}
  473. extends = env:STM32F103RE_btt
  474. build_flags = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
  475. lib_deps = ${common_stm32f1.lib_deps}
  476. USBComposite for STM32F1@0.91
  477.  
  478. #
  479. # STM32F4 with STM32GENERIC
  480. #
  481. [env:STM32F4]
  482. platform = ${common_stm32.platform}
  483. board = disco_f407vg
  484. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  485. lib_ignore = Adafruit NeoPixel, TMCStepper
  486. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F7>
  487.  
  488. #
  489. # STM32F7 with STM32GENERIC
  490. #
  491. [env:STM32F7]
  492. platform = ${common_stm32.platform}
  493. board = remram_v1
  494. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  495. lib_ignore = Adafruit NeoPixel, TMCStepper
  496. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F4>
  497.  
  498. #
  499. # ARMED (STM32)
  500. #
  501. [env:ARMED]
  502. platform = ${common_stm32.platform}
  503. extends = common_stm32
  504. board = armed_v1
  505. build_flags = ${common_stm32.build_flags}
  506. '-DUSB_PRODUCT="ARMED_V1"'
  507. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  508.  
  509. #
  510. # Geeetech GTM32 (STM32F103VET6)
  511. #
  512. [env:STM32F103VE_GTM32]
  513. platform = ${common_stm32f1.platform}
  514. extends = common_stm32f1
  515. board = genericSTM32F103VE
  516. build_flags = ${common_stm32f1.build_flags}
  517. -ffunction-sections -fdata-sections -nostdlib -MMD
  518. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  519. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  520. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  521. upload_protocol = serial
  522.  
  523. #
  524. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  525. #
  526. [env:STM32F103VE_longer]
  527. platform = ${common_stm32f1.platform}
  528. extends = common_stm32f1
  529. board = genericSTM32F103VE
  530. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  531. build_flags = ${common_stm32f1.build_flags}
  532. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  533. build_unflags = ${common_stm32f1.build_unflags}
  534. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  535. lib_ignore = ${common_stm32f1.lib_ignore}
  536. LiquidTWI2
  537.  
  538. #
  539. # MKS Robin Mini (STM32F103VET6)
  540. #
  541. [env:mks_robin_mini]
  542. platform = ${common_stm32f1.platform}
  543. extends = common_stm32f1
  544. board = genericSTM32F103VE
  545. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  546. build_flags = ${common_stm32f1.build_flags}
  547. -DMCU_STM32F103VE
  548.  
  549. #
  550. # MKS Robin Nano (STM32F103VET6) - Emulated Graphical 128x64 (DOGM) UI
  551. #
  552. [env:mks_robin_nano]
  553. platform = ${common_stm32f1.platform}
  554. extends = common_stm32f1
  555. board = genericSTM32F103VE
  556. platform_packages = tool-stm32duino
  557. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  558. build_flags = ${common_stm32f1.build_flags}
  559. -DMCU_STM32F103VE -DSS_TIMER=4
  560.  
  561. #
  562. # MKS Robin Nano (STM32F103VET6) - MKS UI (LVGL)
  563. #
  564. [env:mks_robin_nano35]
  565. platform = ${common_stm32f1.platform}
  566. extends = env:mks_robin_nano
  567. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  568. lib_deps = ${common_stm32f1.lib_deps}
  569. MKS-LittlevGL=https://github.com/makerbase-mks/MKS-LittlevGL/archive/master.zip
  570.  
  571. #
  572. # MKS Robin (STM32F103ZET6)
  573. #
  574. [env:mks_robin]
  575. platform = ${common_stm32f1.platform}
  576. extends = common_stm32f1
  577. board = genericSTM32F103ZE
  578. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  579. build_flags = ${common_stm32f1.build_flags}
  580. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  581.  
  582. #
  583. # MKS Robin Pro (STM32F103ZET6)
  584. #
  585. [env:mks_robin_pro]
  586. platform = ${common_stm32f1.platform}
  587. extends = env:mks_robin
  588. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  589.  
  590. #
  591. # MKS Robin E3D (STM32F103RCT6) and
  592. # MKS Robin E3 with TMC2209
  593. #
  594. [env:mks_robin_e3]
  595. platform = ${common_stm32f1.platform}
  596. extends = common_stm32f1
  597. board = genericSTM32F103RC
  598. platform_packages = tool-stm32duino
  599. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  600. build_flags = ${common_stm32f1.build_flags}
  601. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  602.  
  603. #
  604. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  605. #
  606. [env:mks_robin_lite]
  607. platform = ${common_stm32f1.platform}
  608. extends = common_stm32f1
  609. board = genericSTM32F103RC
  610. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  611.  
  612.  
  613. #
  614. # MKS ROBIN LITE3 (STM32F103RCT6)
  615. #
  616. [env:mks_robin_lite3]
  617. platform = ${common_stm32f1.platform}
  618. extends = common_stm32f1
  619. board = genericSTM32F103RC
  620. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  621.  
  622. #
  623. # JGAurora A5S A1 (STM32F103ZET6)
  624. #
  625. [env:jgaurora_a5s_a1]
  626. platform = ${common_stm32f1.platform}
  627. extends = common_stm32f1
  628. board = genericSTM32F103ZE
  629. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  630. build_flags = ${common_stm32f1.build_flags}
  631. -DSTM32F1xx -DSTM32_XL_DENSITY
  632.  
  633. #
  634. # Malyan M200 (STM32F103CB)
  635. #
  636. [env:STM32F103CB_malyan]
  637. platform = ${common_stm32f1.platform}
  638. extends = common_stm32f1
  639. board = malyanM200
  640. build_flags = ${common_stm32f1.build_flags}
  641. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  642. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  643. lib_ignore = ${common_stm32f1.lib_ignore}
  644. LiquidCrystal, LiquidTWI2, TMCStepper, U8glib-HAL, SoftwareSerialM
  645.  
  646. #
  647. # Malyan M200 v2 (STM32F070RB)
  648. #
  649. [env:STM32F070RB_malyan]
  650. platform = ${common_stm32.platform}
  651. extends = common_stm32
  652. board = malyanM200v2
  653. build_flags = ${common_stm32.build_flags} -DSTM32F0xx -DUSB_PRODUCT=\"STM32F070RB\" -DHAL_PCD_MODULE_ENABLED
  654. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  655. -DCUSTOM_STARTUP_FILE
  656. lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL, SoftwareSerial
  657.  
  658. #
  659. # Malyan M300 (STM32F070CB)
  660. #
  661. [env:malyan_M300]
  662. platform = ststm32@>=6.1.0,<6.2.0
  663. board = malyanm300_f070cb
  664. build_flags = ${common.build_flags}
  665. -DUSBCON -DUSBD_VID=0x0483 "-DUSB_MANUFACTURER=\"Unknown\"" "-DUSB_PRODUCT=\"MALYAN_M300\""
  666. -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  667. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  668. lib_ignore = LiquidCrystal, LiquidTWI2, Adafruit NeoPixel, TMCStepper, U8glib-HAL
  669.  
  670. #
  671. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  672. #
  673. [env:chitu_f103]
  674. platform = ${common_stm32f1.platform}
  675. extends = common_stm32f1
  676. board = CHITU_F103
  677. extra_scripts = pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  678. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  679. build_flags = ${common_stm32f1.build_flags}
  680. -DSTM32F1xx -DSTM32_XL_DENSITY
  681. build_unflags = ${common_stm32f1.build_unflags}
  682. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  683.  
  684. #
  685. # Some Chitu V5 boards have a problem with GPIO init.
  686. # Use this target if G28 or G29 are always failing.
  687. #
  688. [env:chitu_v5_gpio_init]
  689. platform = ${common_stm32f1.platform}
  690. extends = env:chitu_f103
  691. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  692.  
  693. #
  694. # Chitu boards like Tronxy X5SA (STM32F103ZET6) using TFT LVGL UI
  695. #
  696. [env:chitu_f103_lvgl]
  697. platform = ${common_stm32f1.platform}
  698. extends = env:chitu_f103
  699. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  700. lib_deps = ${common.lib_deps}
  701. SoftwareSerialM
  702. MKS-LittlevGL=https://github.com/makerbase-mks/MKS-LittlevGL/archive/master.zip
  703.  
  704. #
  705. # Creality (STM32F103RET6)
  706. #
  707. [env:STM32F103RET6_creality]
  708. platform = ${common_stm32f1.platform}
  709. extends = common_stm32f1
  710. board = genericSTM32F103RC
  711. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  712. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY -DTEMP_TIMER_CHAN=4
  713. extra_scripts = buildroot/share/PlatformIO/scripts/creality.py
  714. lib_ignore = ${common_stm32f1.lib_ignore}
  715. LiquidCrystal, LiquidTWI2, U8glib-HAL, Adafruit_MAX31865, Arduino-L6470, SailfishLCD, SlowSoftI2CMaster
  716. debug_tool = jlink
  717. upload_protocol = jlink
  718. monitor_speed = 115200
  719.  
  720. #
  721. # STM32F401VE
  722. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  723. #
  724. [env:STM32F401VE_STEVAL]
  725. platform = ${common_stm32.platform}
  726. extends = common_stm32
  727. board = STEVAL_STM32F401VE
  728. build_flags = ${common_stm32.build_flags}
  729. -DTARGET_STM32F4 -DARDUINO_STEVAL -DSTM32F401xE
  730. -DUSB_PRODUCT=\"STEVAL_F401VE\"
  731. -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  732. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  733. buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
  734. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  735.  
  736. #
  737. # FLYF407ZG
  738. #
  739. [env:FLYF407ZG]
  740. platform = ${common_stm32.platform}
  741. extends = common_stm32
  742. board = FLYF407ZG
  743. build_flags = ${common_stm32.build_flags}
  744. -DSTM32F4 -DUSB_PRODUCT=\"STM32F407ZG\"
  745. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x8000
  746. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  747.  
  748. #
  749. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  750. #
  751. [env:FYSETC_S6]
  752. platform = ${common_stm32.platform}
  753. extends = common_stm32
  754. platform_packages = ${common_stm32.platform_packages}
  755. tool-stm32duino
  756. board = fysetc_s6
  757. build_flags = ${common_stm32.build_flags}
  758. -DTARGET_STM32F4 -DVECT_TAB_OFFSET=0x10000
  759. -DHAL_PCD_MODULE_ENABLED '-DUSB_PRODUCT="FYSETC_S6"'
  760. extra_scripts = pre:buildroot/share/PlatformIO/scripts/fysetc_STM32S6.py
  761. debug_tool = stlink
  762. upload_protocol = dfu
  763. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  764.  
  765. #
  766. # STM32F407VET6 with RAMPS-like shield
  767. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  768. # Shield - https://github.com/jmz52/Hardware
  769. #
  770. [env:STM32F407VE_black]
  771. platform = ${common_stm32.platform}
  772. extends = common_stm32
  773. board = blackSTM32F407VET6
  774. build_flags = ${common_stm32.build_flags}
  775. -DTARGET_STM32F4 -DARDUINO_BLACK_F407VE
  776. -DUSB_PRODUCT=\"BLACK_F407VE\"
  777. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  778. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  779. lib_ignore = Adafruit NeoPixel, TMCStepper, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  780.  
  781. #
  782. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  783. #
  784. [env:BIGTREE_SKR_PRO]
  785. platform = ${common_stm32.platform}
  786. extends = common_stm32
  787. board = BigTree_SKR_Pro
  788. build_flags = ${common_stm32.build_flags}
  789. -DUSB_PRODUCT=\"STM32F407ZG\"
  790. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  791. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  792. #upload_protocol = stlink
  793. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  794. debug_tool = stlink
  795. debug_init_break =
  796.  
  797. #
  798. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  799. #
  800. [env:BIGTREE_GTR_V1_0]
  801. platform = ststm32@>=5.7.0,<6.2.0
  802. extends = common_stm32
  803. board = BigTree_GTR_v1
  804. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  805. build_flags = ${common_stm32.build_flags}
  806. -DUSB_PRODUCT=\"STM32F407IG\"
  807. -DTARGET_STM32F4 -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  808.  
  809. #
  810. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  811. #
  812. [env:BIGTREE_BTT002]
  813. platform = ${common_stm32.platform}
  814. extends = common_stm32
  815. board = BigTree_Btt002
  816. build_flags = ${common_stm32.build_flags}
  817. -DUSB_PRODUCT=\"STM32F407VG\"
  818. -DTARGET_STM32F4 -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  819. -DHAVE_HWSERIAL2
  820. -DHAVE_HWSERIAL3
  821. -DPIN_SERIAL2_RX=PD_6
  822. -DPIN_SERIAL2_TX=PD_5
  823. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  824. lib_ignore = Adafruit NeoPixel, SailfishLCD, SlowSoftI2CMaster, SoftwareSerial
  825.  
  826. #
  827. # Lerdge base
  828. #
  829. [lerdge_common]
  830. platform = ${common_stm32.platform}
  831. extends = common_stm32
  832. board = LERDGE
  833. board_build.offset = 0x10000
  834. extra_scripts = pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  835. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  836. buildroot/share/PlatformIO/scripts/lerdge.py
  837. build_flags = ${common_stm32.build_flags}
  838. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  839. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  840. -DTRANSFER_CLOCK_DIV=8
  841. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  842.  
  843. #
  844. # Lerdge X
  845. #
  846. [env:LERDGEX]
  847. extends = lerdge_common
  848. board_build.firmware = Lerdge_X_firmware_force.bin
  849.  
  850. #
  851. # Lerdge S
  852. #
  853. [env:LERDGES]
  854. extends = lerdge_common
  855. board_build.firmware = Lerdge_firmware_force.bin
  856.  
  857. #
  858. # Lerdge K
  859. #
  860. [env:LERDGEK]
  861. extends = lerdge_common
  862. board_build.firmware = Lerdge_K_firmware_force.bin
  863. build_flags = ${lerdge_common.build_flags}
  864. -DLERDGEK
  865.  
  866. #
  867. # RUMBA32
  868. #
  869. [env:rumba32]
  870. platform = ${common_stm32.platform}
  871. extends = common_stm32
  872. build_flags = ${common_stm32.build_flags}
  873. -Os
  874. "-DUSB_PRODUCT=\"RUMBA32\""
  875. -DHAL_PCD_MODULE_ENABLED
  876. -DDISABLE_GENERIC_SERIALUSB
  877. -DHAL_UART_MODULE_ENABLED
  878. board = rumba32_f446ve
  879. upload_protocol = dfu
  880. monitor_speed = 500000
  881.  
  882. #################################
  883. # #
  884. # Other Architectures #
  885. # #
  886. #################################
  887.  
  888. #
  889. # Espressif ESP32
  890. #
  891. [env:esp32]
  892. platform = espressif32@1.11.2
  893. board = esp32dev
  894. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  895. lib_deps = ${common.lib_deps}
  896. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  897. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  898. ESP3DLib=https://github.com/luc-github/ESP3DLib.git
  899. arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets.git
  900. ESP32SSDP=https://github.com/luc-github/ESP32SSDP.git
  901. lib_ignore = LiquidCrystal, LiquidTWI2, SailfishLCD, ESPAsyncTCP
  902. src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
  903. upload_speed = 115200
  904. upload_port = marlinesp.local
  905. #upload_port = "/dev/cu.usbmodem14401
  906. #upload_port = /dev/ttyUSB0
  907. #upload_port = /Volumes/REARM
  908. #board_build.flash_mode = qio
  909.  
  910. #
  911. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  912. #
  913. [env:teensy31]
  914. platform = teensy
  915. board = teensy31
  916. lib_deps = ${common.lib_deps}
  917. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  918. lib_ignore = Adafruit NeoPixel
  919. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
  920.  
  921. #
  922. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  923. #
  924. [env:teensy35]
  925. platform = teensy
  926. board = teensy35
  927. lib_deps = ${common.lib_deps}
  928. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  929. lib_ignore = Adafruit NeoPixel
  930. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  931.  
  932. #
  933. # Native
  934. # No supported Arduino libraries, base Marlin only
  935. #
  936. [env:linux_native]
  937. platform = native
  938. framework =
  939. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  940. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  941. build_unflags = -Wall
  942. lib_ldf_mode = off
  943. lib_deps =
  944. src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
  945.  
  946. #
  947. # Just print the dependency tree
  948. #
  949. [env:include_tree]
  950. platform = atmelavr
  951. board = megaatmega2560
  952. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  953. lib_deps = ${common.lib_deps}
  954. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  955. src_filter = +<src/Marlin.cpp>
  956.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement