Advertisement
shawnp123

Platformio

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