My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

platformio.ini 18KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # http://docs.platformio.org/en/latest/projectconf.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. # targets = upload
  11. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. boards_dir = buildroot/share/PlatformIO/boards
  18. default_envs = megaatmega2560
  19. [common]
  20. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  21. build_flags = -fmax-errors=5
  22. -g
  23. -ggdb
  24. lib_deps =
  25. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  26. LiquidCrystal@1.3.4
  27. TMCStepper@<1.0.0
  28. Adafruit NeoPixel@1.1.3
  29. LiquidTWI2=https://github.com/lincomatic/LiquidTWI2/archive/master.zip
  30. Arduino-L6470=https://github.com/ameyer/Arduino-L6470/archive/dev.zip
  31. TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  32. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  33. SailfishRGB_LED=https://github.com/mikeshub/SailfishRGB_LED/archive/master.zip
  34. SlowSoftI2CMaster=https://github.com/mikeshub/SlowSoftI2CMaster/archive/master.zip
  35. #################################
  36. # #
  37. # Unique Core Architectures #
  38. # #
  39. # Add a new "env" below if no #
  40. # entry has values suitable to #
  41. # build for a given board. #
  42. # #
  43. #################################
  44. #
  45. # ATmega2560
  46. #
  47. [env:megaatmega2560]
  48. platform = atmelavr
  49. framework = arduino
  50. board = megaatmega2560
  51. build_flags = ${common.build_flags}
  52. board_build.f_cpu = 16000000L
  53. lib_deps = ${common.lib_deps}
  54. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  55. monitor_speed = 250000
  56. #
  57. # ATmega1280
  58. #
  59. [env:megaatmega1280]
  60. platform = atmelavr
  61. framework = arduino
  62. board = megaatmega1280
  63. build_flags = ${common.build_flags}
  64. board_build.f_cpu = 16000000L
  65. lib_deps = ${common.lib_deps}
  66. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  67. monitor_speed = 250000
  68. #
  69. # AT90USB1286 boards using CDC bootloader
  70. # - BRAINWAVE
  71. # - BRAINWAVE_PRO
  72. # - SAV_MKI
  73. # - TEENSYLU
  74. #
  75. [env:at90usb1286_cdc]
  76. platform = teensy
  77. framework = arduino
  78. board = at90usb1286
  79. build_flags = ${common.build_flags}
  80. lib_deps = ${common.lib_deps}
  81. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  82. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_CDC.py
  83. monitor_speed = 250000
  84. #
  85. # AT90USB1286 boards using DFU bootloader
  86. # - PrintrBoard
  87. # - PrintrBoard Rev.F
  88. # - ? 5DPRINT ?
  89. #
  90. [env:at90usb1286_dfu]
  91. platform = teensy
  92. framework = arduino
  93. board = at90usb1286
  94. build_flags = ${common.build_flags}
  95. lib_deps = ${common.lib_deps}
  96. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  97. extra_scripts = pre:buildroot/share/atom/create_custom_upload_command_DFU.py
  98. monitor_speed = 250000
  99. #
  100. # Due (Atmel SAM3X8E ARM Cortex-M3)
  101. #
  102. # - RAMPS4DUE
  103. # - RADDS
  104. #
  105. [env:DUE]
  106. platform = atmelsam
  107. framework = arduino
  108. board = due
  109. build_flags = ${common.build_flags}
  110. lib_deps = ${common.lib_deps}
  111. lib_ignore = TMC26XStepper
  112. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  113. monitor_speed = 250000
  114. [env:DUE_USB]
  115. platform = atmelsam
  116. framework = arduino
  117. board = dueUSB
  118. build_flags = ${common.build_flags}
  119. lib_deps = ${common.lib_deps}
  120. lib_ignore = TMC26XStepper
  121. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  122. monitor_speed = 250000
  123. [env:DUE_debug]
  124. # Used when WATCHDOG_RESET_MANUAL is enabled
  125. platform = atmelsam
  126. framework = arduino
  127. board = due
  128. build_flags = ${common.build_flags}
  129. -funwind-tables
  130. -mpoke-function-name
  131. lib_deps = ${common.lib_deps}
  132. lib_ignore = TMC26XStepper
  133. src_filter = ${common.default_src_filter} +<src/HAL/HAL_DUE>
  134. monitor_speed = 250000
  135. #
  136. # NXP LPC176x ARM Cortex-M3
  137. #
  138. [env:LPC1768]
  139. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  140. framework = arduino
  141. board = nxp_lpc1768
  142. build_flags = -DTARGET_LPC1768 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  143. # debug options for backtrace
  144. # -funwind-tables
  145. # -mpoke-function-name
  146. lib_ldf_mode = off
  147. lib_compat_mode = strict
  148. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  149. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  150. monitor_speed = 250000
  151. lib_deps = Servo
  152. LiquidCrystal
  153. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  154. TMCStepper@<1.0.0
  155. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  156. SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  157. [env:LPC1769]
  158. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/master.zip
  159. framework = arduino
  160. board = nxp_lpc1769
  161. build_flags = -DTARGET_LPC1768 -DLPC1769 -DU8G_HAL_LINKS -IMarlin/src/HAL/HAL_LPC1768/include -IMarlin/src/HAL/HAL_LPC1768/u8g ${common.build_flags}
  162. # debug options for backtrace
  163. # -funwind-tables
  164. # -mpoke-function-name
  165. lib_ldf_mode = off
  166. lib_compat_mode = strict
  167. extra_scripts = Marlin/src/HAL/HAL_LPC1768/upload_extra_script.py
  168. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LPC1768>
  169. monitor_speed = 250000
  170. lib_deps = Servo
  171. LiquidCrystal
  172. U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/dev.zip
  173. TMCStepper@<1.0.0
  174. Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/master.zip
  175. #
  176. # Melzi and clones (ATmega1284p)
  177. #
  178. [env:melzi]
  179. platform = atmelavr
  180. framework = arduino
  181. board = sanguino_atmega1284p
  182. build_flags = ${common.build_flags} -fmerge-all-constants
  183. upload_speed = 57600
  184. lib_deps = ${common.lib_deps}
  185. lib_ignore = TMCStepper, TMC26XStepper
  186. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  187. monitor_speed = 250000
  188. #
  189. # Melzi and clones (Optiboot bootloader)
  190. #
  191. [env:melzi_optiboot]
  192. platform = atmelavr
  193. framework = arduino
  194. board = sanguino_atmega1284p
  195. build_flags = ${common.build_flags}
  196. upload_speed = 115200
  197. lib_deps = ${common.lib_deps}
  198. lib_ignore = TMCStepper, TMC26XStepper
  199. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  200. monitor_speed = 250000
  201. #
  202. # RAMBo
  203. #
  204. [env:rambo]
  205. platform = atmelavr
  206. framework = arduino
  207. board = reprap_rambo
  208. build_flags = ${common.build_flags}
  209. board_build.f_cpu = 16000000L
  210. lib_deps = ${common.lib_deps}
  211. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  212. monitor_speed = 250000
  213. #
  214. # Sanguinololu (ATmega644p)
  215. #
  216. [env:sanguino_atmega644p]
  217. platform = atmelavr
  218. framework = arduino
  219. board = sanguino_atmega644p
  220. build_flags = ${common.build_flags}
  221. lib_deps = ${common.lib_deps}
  222. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  223. monitor_speed = 250000
  224. #
  225. # Sanguinololu (ATmega1284p)
  226. #
  227. [env:sanguino_atmega1284p]
  228. platform = atmelavr
  229. framework = arduino
  230. board = sanguino_atmega1284p
  231. build_flags = ${common.build_flags}
  232. lib_deps = ${common.lib_deps}
  233. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  234. monitor_speed = 250000
  235. #
  236. # STM32F103RE
  237. #
  238. [env:STM32F1]
  239. platform = ststm32
  240. framework = arduino
  241. board = genericSTM32F103RE
  242. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  243. ${common.build_flags} -std=gnu++14
  244. -DDEBUG_LEVEL=0
  245. build_unflags = -std=gnu++11
  246. lib_deps = ${common.lib_deps}
  247. lib_ignore = U8glib-HAL, TMC26XStepper, Adafruit NeoPixel
  248. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  249. monitor_speed = 250000
  250. #
  251. # fysetc_STM32F1
  252. #
  253. [env:fysetc_STM32F1]
  254. platform = ststm32
  255. framework = arduino
  256. board = genericSTM32F103RC
  257. #board_build.core = maple
  258. platform_packages = tool-stm32duino
  259. extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
  260. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  261. ${common.build_flags} -std=gnu++14
  262. -DDEBUG_LEVEL=0 -DHAVE_SW_SERIAL
  263. build_unflags = -std=gnu++11
  264. lib_deps = ${common.lib_deps}
  265. SoftwareSerialM=https://github.com/FYSETC/SoftwareSerialM/archive/master.zip
  266. lib_ignore = TMC26XStepper, Adafruit NeoPixel
  267. lib_ldf_mode = chain
  268. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  269. monitor_speed = 250000
  270. debug_tool = stlink
  271. upload_protocol = serial
  272. #
  273. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  274. #
  275. [env:BIGTREE_SKR_MINI]
  276. platform = ststm32
  277. framework = arduino
  278. board = genericSTM32F103RC
  279. platform_packages = tool-stm32duino
  280. extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
  281. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  282. ${common.build_flags} -std=gnu++14
  283. -DDEBUG_LEVEL=0
  284. build_unflags = -std=gnu++11
  285. lib_deps = ${common.lib_deps}
  286. lib_ignore = TMC26XStepper, Adafruit NeoPixel
  287. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  288. monitor_speed = 115200
  289. upload_protocol = stlink
  290. debug_tool = stlink
  291. #
  292. # STM32F4 with STM32GENERIC
  293. #
  294. [env:STM32F4]
  295. platform = ststm32
  296. framework = arduino
  297. board = disco_f407vg
  298. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  299. lib_deps = ${common.lib_deps}
  300. lib_ignore = Adafruit NeoPixel, TMCStepper, TMC26XStepper
  301. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F7>
  302. monitor_speed = 250000
  303. #
  304. # STM32F7 with STM32GENERIC
  305. #
  306. [env:STM32F7]
  307. platform = ststm32
  308. framework = arduino
  309. board = remram_v1
  310. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB
  311. lib_deps = ${common.lib_deps}
  312. lib_ignore = Adafruit NeoPixel, TMCStepper, TMC26XStepper
  313. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32_F4_F7> -<src/HAL/HAL_STM32_F4_F7/STM32F4>
  314. monitor_speed = 250000
  315. #
  316. # ARMED (STM32)
  317. #
  318. [env:ARMED]
  319. platform = ststm32
  320. framework = arduino
  321. board = armed_v1
  322. build_flags = ${common.build_flags} -DUSBCON -DUSBD_VID=0x0483 '-DUSB_MANUFACTURER="Unknown"' '-DUSB_PRODUCT="ARMED_V1"' -DHAL_PCD_MODULE_ENABLED -DUSBD_USE_CDC -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing -std=gnu11 -std=gnu++11
  323. lib_deps = ${common.lib_deps}
  324. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  325. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  326. monitor_speed = 250000
  327. #
  328. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  329. #
  330. [env:alfawise_U20]
  331. platform = ststm32
  332. framework = arduino
  333. board = genericSTM32F103VE
  334. monitor_speed = 250000
  335. extra_scripts = buildroot/share/PlatformIO/scripts/alfawise_Ux0.py
  336. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  337. ${common.build_flags} -std=gnu++14
  338. -DSTM32F1xx -DU20 -DTS_V12
  339. build_unflags = -std=gnu++11 -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
  340. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  341. lib_deps = ${common.lib_deps}
  342. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  343. #
  344. # MKS Robin (STM32F103ZET6)
  345. #
  346. [env:mks_robin]
  347. platform = ststm32
  348. framework = arduino
  349. board = genericSTM32F103ZE
  350. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin.py
  351. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  352. ${common.build_flags} -std=gnu++14
  353. build_unflags = -std=gnu++11
  354. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  355. lib_deps = ${common.lib_deps}
  356. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  357. #
  358. # MKS ROBIN LITE/LITE2 (STM32F103RCT6)
  359. #
  360. [env:mks_robin_lite]
  361. platform = ststm32
  362. framework = arduino
  363. board = genericSTM32F103RC
  364. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  365. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  366. ${common.build_flags} -std=gnu++14
  367. build_unflags = -std=gnu++11
  368. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  369. lib_deps = ${common.lib_deps}
  370. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  371. #
  372. # MKS Robin Mini (STM32F103VET6)
  373. #
  374. [env:mks_robin_mini]
  375. platform = ststm32
  376. framework = arduino
  377. board = genericSTM32F103VE
  378. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  379. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  380. ${common.build_flags} -std=gnu++14
  381. build_unflags = -std=gnu++11
  382. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  383. lib_deps = ${common.lib_deps}
  384. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  385. #
  386. # MKS Robin Nano (STM32F103VET6)
  387. #
  388. [env:mks_robin_nano]
  389. platform = ststm32
  390. framework = arduino
  391. board = genericSTM32F103VE
  392. extra_scripts = buildroot/share/PlatformIO/scripts/mks_robin_nano.py
  393. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  394. ${common.build_flags} -std=gnu++14
  395. build_unflags = -std=gnu++11
  396. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  397. lib_deps = ${common.lib_deps}
  398. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  399. #
  400. # JGAurora A5S A1 (STM32F103ZET6)
  401. #
  402. [env:jgaurora_a5s_a1]
  403. platform = ststm32
  404. framework = arduino
  405. board = genericSTM32F103ZE
  406. extra_scripts = buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  407. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
  408. ${common.build_flags} -DSTM32F1xx -std=gnu++14
  409. build_unflags = -std=gnu++11
  410. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  411. lib_deps = ${common.lib_deps}
  412. lib_ignore = Adafruit NeoPixel, TMC26XStepper
  413. monitor_speed = 250000
  414. #
  415. # STM32F407VET6 with RAMPS-like shield
  416. # 'Black' STM32F407VET6 board - http://wiki.stm32duino.com/index.php?title=STM32F407
  417. # Shield - https://github.com/jmz52/Hardware
  418. #
  419. [env:black_stm32f407ve]
  420. platform = ststm32@5.4.3
  421. framework = arduino
  422. board = blackSTM32F407VET6
  423. extra_scripts = pre:buildroot/share/PlatformIO/scripts/black_stm32f407vet6.py
  424. build_flags = ${common.build_flags}
  425. -DSTM32F4 -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"BLACK_F407VE\"
  426. lib_deps = ${common.lib_deps}
  427. lib_ignore = Adafruit NeoPixel, TMCStepper, TMC26XStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  428. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  429. monitor_speed = 250000
  430. #
  431. # Bigtreetech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  432. #
  433. [env:BIGTREE_SKR_PRO]
  434. platform = ststm32@5.4.3
  435. framework = arduino
  436. board = BigTree_SKR_Pro
  437. extra_scripts = pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  438. build_flags = ${common.build_flags}
  439. -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSB_PRODUCT=\"STM32F407ZG\"
  440. -DTARGET_STM32F4 -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000 -DHAVE_HWSERIAL6
  441. lib_deps = ${common.lib_deps}
  442. lib_ignore = Adafruit NeoPixel, TMC26XStepper, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster
  443. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32>
  444. monitor_speed = 250000
  445. #
  446. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  447. #
  448. [env:teensy31]
  449. platform = teensy
  450. framework = arduino
  451. board = teensy31
  452. build_flags = ${common.build_flags}
  453. lib_deps = ${common.lib_deps}
  454. lib_ignore = Adafruit NeoPixel
  455. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY31_32>
  456. monitor_speed = 250000
  457. #
  458. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  459. #
  460. [env:teensy35]
  461. platform = teensy
  462. framework = arduino
  463. board = teensy35
  464. build_flags = ${common.build_flags}
  465. lib_deps = ${common.lib_deps}
  466. lib_ignore = Adafruit NeoPixel
  467. src_filter = ${common.default_src_filter} +<src/HAL/HAL_TEENSY35_36>
  468. monitor_speed = 250000
  469. #
  470. # Malyan M200 (STM32F1)
  471. #
  472. [env:malyanm200]
  473. platform = ststm32
  474. framework = arduino
  475. board = malyanM200
  476. build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections
  477. -DDEBUG_LEVEL=0
  478. src_filter = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
  479. #-<frameworks>
  480. lib_ignore = Adafruit NeoPixel, LiquidCrystal, LiquidTWI2, TMCStepper, TMC26XStepper, U8glib-HAL
  481. #
  482. # Espressif ESP32
  483. #
  484. [env:esp32]
  485. platform = espressif32
  486. board = esp32dev
  487. framework = arduino
  488. upload_speed = 115200
  489. monitor_speed = 115200
  490. upload_port = /dev/ttyUSB0
  491. lib_deps =
  492. AsyncTCP=https://github.com/me-no-dev/AsyncTCP/archive/master.zip
  493. ESPAsyncWebServer=https://github.com/me-no-dev/ESPAsyncWebServer/archive/master.zip
  494. lib_ignore = TMC26XStepper, LiquidCrystal, LiquidTWI2, SailfishLCD, SailfishRGB_LED
  495. src_filter = ${common.default_src_filter} +<src/HAL/HAL_ESP32>
  496. #
  497. # FYSETC F6 V1.3
  498. #
  499. [env:fysetc_f6_13]
  500. platform = atmelavr
  501. framework = arduino
  502. board = fysetc_f6_13
  503. build_flags = ${common.build_flags}
  504. board_build.f_cpu = 16000000L
  505. lib_deps = ${common.lib_deps}
  506. src_filter = ${common.default_src_filter} +<src/HAL/HAL_AVR>
  507. monitor_speed = 250000
  508. #
  509. # Native
  510. # No supported Arduino libraries, base Marlin only
  511. #
  512. [env:linux_native]
  513. platform = native
  514. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread
  515. src_build_flags = -Wall -IMarlin/src/HAL/HAL_LINUX/include
  516. build_unflags = -Wall
  517. lib_ldf_mode = off
  518. lib_deps =
  519. extra_scripts =
  520. src_filter = ${common.default_src_filter} +<src/HAL/HAL_LINUX>
  521. #
  522. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  523. #
  524. [env:adafruit_grandcentral_m4]
  525. platform = atmelsam
  526. board = adafruit_grandcentral_m4
  527. framework = arduino
  528. build_flags = ${common.build_flags} -std=gnu++17
  529. build_unflags = -std=gnu++11
  530. lib_deps = ${common.lib_deps}
  531. lib_ignore = U8glib-HAL, TMC26XStepper
  532. src_filter = ${common.default_src_filter} +<src/HAL/HAL_SAMD51>
  533. debug_tool = jlink