Advertisement
lainszvahl

platformio.ini

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