My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platformio.ini 60KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660
  1. #
  2. # Marlin Firmware
  3. # PlatformIO Configuration File
  4. #
  5. # For detailed documentation with EXAMPLES:
  6. #
  7. # https://docs.platformio.org/en/latest/projectconf/index.html
  8. #
  9. # Automatic targets - enable auto-uploading
  10. #targets = upload
  11. #
  12. # By default platformio build will abort after 5 errors.
  13. # Remove '-fmax-errors=5' from build_flags below to see all.
  14. #
  15. [platformio]
  16. src_dir = Marlin
  17. boards_dir = buildroot/share/PlatformIO/boards
  18. default_envs = mega2560
  19. include_dir = Marlin
  20. #
  21. # The 'common' values are used for most Marlin builds
  22. #
  23. [common]
  24. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  25. -<src/lcd/HD44780> -<src/lcd/TFTGLCD> -<src/lcd/dwin> -<src/lcd/dogm> -<src/lcd/tft> -<src/lcd/tft_io>
  26. -<src/HAL/STM32/tft> -<src/HAL/STM32F1/tft>
  27. -<src/lcd/menu>
  28. -<src/lcd/menu/game/game.cpp> -<src/lcd/menu/game/brickout.cpp> -<src/lcd/menu/game/invaders.cpp>
  29. -<src/lcd/menu/game/maze.cpp> -<src/lcd/menu/game/snake.cpp>
  30. -<src/lcd/menu/menu_backlash.cpp>
  31. -<src/lcd/menu/menu_bed_corners.cpp>
  32. -<src/lcd/menu/menu_bed_leveling.cpp>
  33. -<src/lcd/menu/menu_cancelobject.cpp>
  34. -<src/lcd/menu/menu_delta_calibrate.cpp>
  35. -<src/lcd/menu/menu_filament.cpp>
  36. -<src/lcd/menu/menu_info.cpp>
  37. -<src/lcd/menu/menu_job_recovery.cpp>
  38. -<src/lcd/menu/menu_language.cpp>
  39. -<src/lcd/menu/menu_led.cpp>
  40. -<src/lcd/menu/menu_media.cpp>
  41. -<src/lcd/menu/menu_mmu2.cpp>
  42. -<src/lcd/menu/menu_password.cpp>
  43. -<src/lcd/menu/menu_power_monitor.cpp>
  44. -<src/lcd/menu/menu_spindle_laser.cpp>
  45. -<src/lcd/menu/menu_temperature.cpp>
  46. -<src/lcd/menu/menu_tmc.cpp>
  47. -<src/lcd/menu/menu_touch_screen.cpp>
  48. -<src/lcd/menu/menu_tramming.cpp>
  49. -<src/lcd/menu/menu_ubl.cpp>
  50. -<src/lcd/extui/lib/mks_ui>
  51. -<src/lcd/extui/lib/dgus> -<src/lcd/extui/dgus_lcd.cpp>
  52. -<src/lcd/extui/lib/dgus/fysetc> -<src/lcd/extui/lib/dgus/hiprecy> -<src/lcd/extui/lib/dgus/mks> -<src/lcd/extui/lib/dgus/origin>
  53. -<src/lcd/extui/example.cpp>
  54. -<src/lcd/extui/malyan_lcd.cpp>
  55. -<src/lcd/extui/lib/ftdi_eve_touch_ui>
  56. -<src/lcd/extui/anycubic_chiron_lcd.cpp> -<src/lcd/extui/lib/anycubic_chiron>
  57. -<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
  58. -<src/lcd/lcdprint.cpp>
  59. -<src/lcd/touch/touch_buttons.cpp>
  60. -<src/sd/usb_flashdrive/lib-uhs2> -<src/sd/usb_flashdrive/lib-uhs3>
  61. -<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
  62. -<src/sd/cardreader.cpp> -<src/sd/Sd2Card.cpp> -<src/sd/SdBaseFile.cpp> -<src/sd/SdFatUtil.cpp> -<src/sd/SdFile.cpp> -<src/sd/SdVolume.cpp> -<src/gcode/sd>
  63. -<src/HAL/shared/backtrace>
  64. -<src/HAL/shared/cpu_exception>
  65. -<src/HAL/shared/eeprom_if_i2c.cpp>
  66. -<src/HAL/shared/eeprom_if_spi.cpp>
  67. -<src/feature/babystep.cpp>
  68. -<src/feature/backlash.cpp>
  69. -<src/feature/baricuda.cpp> -<src/gcode/feature/baricuda>
  70. -<src/feature/bedlevel/abl> -<src/gcode/bedlevel/abl>
  71. -<src/feature/bedlevel/mbl> -<src/gcode/bedlevel/mbl>
  72. -<src/feature/bedlevel/ubl> -<src/gcode/bedlevel/ubl>
  73. -<src/feature/binary_stream.cpp> -<src/libs/heatshrink>
  74. -<src/feature/bltouch.cpp>
  75. -<src/feature/cancel_object.cpp> -<src/gcode/feature/cancel>
  76. -<src/feature/caselight.cpp> -<src/gcode/feature/caselight>
  77. -<src/feature/closedloop.cpp>
  78. -<src/feature/controllerfan.cpp> -<src/gcode/feature/controllerfan>
  79. -<src/feature/dac> -<src/feature/digipot>
  80. -<src/feature/direct_stepping.cpp> -<src/gcode/motion/G6.cpp>
  81. -<src/feature/e_parser.cpp>
  82. -<src/feature/encoder_i2c.cpp>
  83. -<src/feature/ethernet.cpp> -<src/gcode/feature/network/M552-M554.cpp>
  84. -<src/feature/fanmux.cpp>
  85. -<src/feature/filwidth.cpp> -<src/gcode/feature/filwidth>
  86. -<src/feature/fwretract.cpp> -<src/gcode/feature/fwretract>
  87. -<src/feature/host_actions.cpp>
  88. -<src/feature/hotend_idle.cpp>
  89. -<src/feature/joystick.cpp>
  90. -<src/feature/leds/blinkm.cpp>
  91. -<src/feature/leds/leds.cpp>
  92. -<src/feature/leds/neopixel.cpp>
  93. -<src/feature/leds/pca9533.cpp>
  94. -<src/feature/leds/pca9632.cpp>
  95. -<src/feature/leds/printer_event_leds.cpp>
  96. -<src/feature/leds/tempstat.cpp>
  97. -<src/feature/max7219.cpp>
  98. -<src/feature/meatpack.cpp>
  99. -<src/feature/mixing.cpp>
  100. -<src/feature/mmu/mmu.cpp>
  101. -<src/feature/mmu/mmu2.cpp> -<src/gcode/feature/prusa_MMU2>
  102. -<src/feature/password> -<src/gcode/feature/password>
  103. -<src/feature/pause.cpp>
  104. -<src/feature/power.cpp>
  105. -<src/feature/power_monitor.cpp> -<src/gcode/feature/power_monitor>
  106. -<src/feature/powerloss.cpp> -<src/gcode/feature/powerloss>
  107. -<src/feature/probe_temp_comp.cpp>
  108. -<src/feature/repeat.cpp>
  109. -<src/feature/runout.cpp> -<src/gcode/feature/runout>
  110. -<src/feature/snmm.cpp>
  111. -<src/feature/solenoid.cpp> -<src/gcode/control/M380_M381.cpp>
  112. -<src/feature/spindle_laser.cpp> -<src/gcode/control/M3-M5.cpp>
  113. -<src/feature/tmc_util.cpp> -<src/module/stepper/trinamic.cpp>
  114. -<src/feature/tramming.cpp>
  115. -<src/feature/twibus.cpp>
  116. -<src/feature/z_stepper_align.cpp>
  117. -<src/gcode/bedlevel/G26.cpp>
  118. -<src/gcode/bedlevel/G35.cpp>
  119. -<src/gcode/bedlevel/G42.cpp>
  120. -<src/gcode/bedlevel/M420.cpp> -<src/feature/bedlevel/bedlevel.cpp>
  121. -<src/gcode/calibrate/G33.cpp>
  122. -<src/gcode/calibrate/G34.cpp>
  123. -<src/gcode/calibrate/G34_M422.cpp>
  124. -<src/gcode/calibrate/G76_M192_M871.cpp>
  125. -<src/gcode/calibrate/G425.cpp>
  126. -<src/gcode/calibrate/M12.cpp>
  127. -<src/gcode/calibrate/M48.cpp>
  128. -<src/gcode/calibrate/M100.cpp>
  129. -<src/gcode/calibrate/M425.cpp>
  130. -<src/gcode/calibrate/M666.cpp>
  131. -<src/gcode/calibrate/M852.cpp>
  132. -<src/gcode/control/M42.cpp> -<src/gcode/control/M226.cpp>
  133. -<src/gcode/config/M43.cpp>
  134. -<src/gcode/config/M217.cpp>
  135. -<src/gcode/config/M218.cpp>
  136. -<src/gcode/config/M221.cpp>
  137. -<src/gcode/config/M281.cpp>
  138. -<src/gcode/config/M301.cpp>
  139. -<src/gcode/config/M302.cpp>
  140. -<src/gcode/config/M304.cpp>
  141. -<src/gcode/config/M305.cpp>
  142. -<src/gcode/config/M540.cpp>
  143. -<src/gcode/config/M575.cpp>
  144. -<src/gcode/config/M672.cpp>
  145. -<src/gcode/control/M7-M9.cpp>
  146. -<src/gcode/control/M211.cpp>
  147. -<src/gcode/control/M350_M351.cpp>
  148. -<src/gcode/control/M605.cpp>
  149. -<src/gcode/feature/advance>
  150. -<src/gcode/feature/camera>
  151. -<src/gcode/feature/i2c>
  152. -<src/gcode/feature/L6470>
  153. -<src/gcode/feature/leds/M150.cpp>
  154. -<src/gcode/feature/leds/M7219.cpp>
  155. -<src/gcode/feature/macro>
  156. -<src/gcode/feature/mixing/M163-M165.cpp>
  157. -<src/gcode/feature/mixing/M166.cpp>
  158. -<src/gcode/feature/pause/G27.cpp>
  159. -<src/gcode/feature/pause/G60.cpp>
  160. -<src/gcode/feature/pause/G61.cpp>
  161. -<src/gcode/feature/pause/M125.cpp>
  162. -<src/gcode/feature/pause/M600.cpp>
  163. -<src/gcode/feature/pause/M603.cpp>
  164. -<src/gcode/feature/pause/M701_M702.cpp>
  165. -<src/gcode/feature/trinamic/M122.cpp>
  166. -<src/gcode/feature/trinamic/M569.cpp>
  167. -<src/gcode/feature/trinamic/M906.cpp>
  168. -<src/gcode/feature/trinamic/M911-M914.cpp>
  169. -<src/gcode/geometry/G17-G19.cpp>
  170. -<src/gcode/geometry/G53-G59.cpp>
  171. -<src/gcode/geometry/M206_M428.cpp>
  172. -<src/gcode/host/M16.cpp>
  173. -<src/gcode/host/M113.cpp>
  174. -<src/gcode/host/M360.cpp>
  175. -<src/gcode/host/M876.cpp>
  176. -<src/gcode/lcd/M0_M1.cpp>
  177. -<src/gcode/lcd/M250.cpp>
  178. -<src/gcode/lcd/M73.cpp>
  179. -<src/gcode/lcd/M995.cpp>
  180. -<src/gcode/motion/G2_G3.cpp>
  181. -<src/gcode/motion/G5.cpp>
  182. -<src/gcode/motion/G80.cpp>
  183. -<src/gcode/motion/M290.cpp>
  184. -<src/gcode/probe/G30.cpp>
  185. -<src/gcode/probe/G31_G32.cpp>
  186. -<src/gcode/probe/G38.cpp>
  187. -<src/gcode/probe/M401_M402.cpp>
  188. -<src/gcode/probe/M851.cpp>
  189. -<src/gcode/probe/M951.cpp>
  190. -<src/gcode/scara>
  191. -<src/gcode/sd>
  192. -<src/gcode/sd/M32.cpp>
  193. -<src/gcode/sd/M808.cpp>
  194. -<src/gcode/temp/M104_M109.cpp>
  195. -<src/gcode/temp/M143_M193.cpp>
  196. -<src/gcode/temp/M155.cpp>
  197. -<src/gcode/units/G20_G21.cpp>
  198. -<src/gcode/units/M149.cpp>
  199. -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
  200. -<src/libs/L64XX> -<src/module/stepper/L64xx.cpp> -<src/HAL/shared/HAL_spi_L6470.cpp>
  201. -<src/libs/hex_print.cpp>
  202. -<src/libs/least_squares_fit.cpp>
  203. -<src/libs/nozzle.cpp> -<src/gcode/feature/clean>
  204. -<src/module/delta.cpp>
  205. -<src/module/planner_bezier.cpp>
  206. -<src/module/printcounter.cpp>
  207. -<src/module/probe.cpp>
  208. -<src/module/scara.cpp> -<src/gcode/calibrate/M665.cpp>
  209. -<src/module/servo.cpp> -<src/gcode/control/M280.cpp>
  210. -<src/module/stepper/TMC26X.cpp>
  211. extra_scripts =
  212. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  213. pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  214. pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
  215. post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
  216. build_flags = -fmax-errors=5 -g3 -D__MARLIN_FIRMWARE__ -fmerge-constants
  217. lib_deps =
  218. #
  219. # Feature Dependencies
  220. #
  221. [features]
  222. YHCB2004 = red-scorp/LiquidCrystal_AIP31068@^1.0.4, red-scorp/SoftSPIB@^1.1.1
  223. HAS_TFT_LVGL_UI = lvgl=https://github.com/makerbase-mks/LVGL-6.1.1-MKS/archive/master.zip
  224. src_filter=+<src/lcd/extui/lib/mks_ui>
  225. extra_scripts=download_mks_assets.py
  226. POSTMORTEM_DEBUGGING = src_filter=+<src/HAL/shared/cpu_exception> +<src/HAL/shared/backtrace>
  227. build_flags=-funwind-tables
  228. MKS_WIFI_MODULE = QRCode=https://github.com/makerbase-mks/QRCode/archive/master.zip
  229. HAS_TRINAMIC_CONFIG = TMCStepper@~0.7.1
  230. src_filter=+<src/feature/tmc_util.cpp> +<src/module/stepper/trinamic.cpp> +<src/gcode/feature/trinamic/M122.cpp> +<src/gcode/feature/trinamic/M906.cpp> +<src/gcode/feature/trinamic/M911-M914.cpp>
  231. HAS_STEALTHCHOP = src_filter=+<src/gcode/feature/trinamic/M569.cpp>
  232. SR_LCD_3W_NL = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  233. HAS_MOTOR_CURRENT_I2C = SlowSoftI2CMaster
  234. src_filter=+<src/feature/digipot>
  235. HAS_TMC26X = TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  236. src_filter=+<src/module/TMC26X.cpp>
  237. HAS_L64XX = Arduino-L6470@0.8.0
  238. src_filter=+<src/libs/L64XX> +<src/module/stepper/L64xx.cpp> +<src/gcode/feature/L6470> +<src/HAL/shared/HAL_spi_L6470.cpp>
  239. NEOPIXEL_LED = Adafruit NeoPixel@1.5.0
  240. src_filter=+<src/feature/leds/neopixel.cpp>
  241. TEMP_.+_IS_MAX31865 = Adafruit MAX31865 library@~1.1.0
  242. USES_LIQUIDCRYSTAL = bitbucket-fmalpartida/LiquidCrystal@1.5.0
  243. USES_LIQUIDCRYSTAL_I2C = marcoschwartz/LiquidCrystal_I2C@1.1.4
  244. USES_LIQUIDTWI2 = LiquidTWI2@1.2.7
  245. HAS_WIRED_LCD = src_filter=+<src/lcd/lcdprint.cpp>
  246. HAS_MARLINUI_HD44780 = src_filter=+<src/lcd/HD44780>
  247. HAS_MARLINUI_U8GLIB = U8glib-HAL@~0.4.1
  248. src_filter=+<src/lcd/dogm>
  249. HAS_(FSMC|SPI)_TFT = src_filter=+<src/HAL/STM32/tft> +<src/HAL/STM32F1/tft> +<src/lcd/tft_io>
  250. HAS_FSMC_TFT = src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp>
  251. HAS_SPI_TFT = src_filter=+<src/HAL/STM32/tft/tft_spi.cpp> +<src/HAL/STM32F1/tft/tft_spi.cpp>
  252. I2C_EEPROM = src_filter=+<src/HAL/shared/eeprom_if_i2c.cpp>
  253. SPI_EEPROM = src_filter=+<src/HAL/shared/eeprom_if_spi.cpp>
  254. HAS_GRAPHICAL_TFT = src_filter=+<src/lcd/tft>
  255. DWIN_CREALITY_LCD = src_filter=+<src/lcd/dwin>
  256. IS_TFTGLCD_PANEL = src_filter=+<src/lcd/TFTGLCD>
  257. HAS_TOUCH_BUTTONS = src_filter=+<src/lcd/touch/touch_buttons.cpp>
  258. HAS_LCD_MENU = src_filter=+<src/lcd/menu>
  259. HAS_GAMES = src_filter=+<src/lcd/menu/game/game.cpp>
  260. MARLIN_BRICKOUT = src_filter=+<src/lcd/menu/game/brickout.cpp>
  261. MARLIN_INVADERS = src_filter=+<src/lcd/menu/game/invaders.cpp>
  262. MARLIN_MAZE = src_filter=+<src/lcd/menu/game/maze.cpp>
  263. MARLIN_SNAKE = src_filter=+<src/lcd/menu/game/snake.cpp>
  264. HAS_MENU_BACKLASH = src_filter=+<src/lcd/menu/menu_backlash.cpp>
  265. HAS_MENU_BED_CORNERS = src_filter=+<src/lcd/menu/menu_bed_corners.cpp>
  266. LCD_BED_LEVELING = src_filter=+<src/lcd/menu/menu_bed_leveling.cpp>
  267. HAS_MENU_CANCELOBJECT = src_filter=+<src/lcd/menu/menu_cancelobject.cpp>
  268. HAS_MENU_DELTA_CALIBRATE = src_filter=+<src/lcd/menu/menu_delta_calibrate.cpp>
  269. HAS_MENU_FILAMENT = src_filter=+<src/lcd/menu/menu_filament.cpp>
  270. LCD_INFO_MENU = src_filter=+<src/lcd/menu/menu_info.cpp>
  271. HAS_MENU_JOB_RECOVERY = src_filter=+<src/lcd/menu/menu_job_recovery.cpp>
  272. HAS_MULTI_LANGUAGE = src_filter=+<src/lcd/menu/menu_language.cpp>
  273. HAS_MENU_LED = src_filter=+<src/lcd/menu/menu_led.cpp>
  274. HAS_MENU_MEDIA = src_filter=+<src/lcd/menu/menu_media.cpp>
  275. HAS_MENU_MIXER = src_filter=+<src/lcd/menu/menu_mixer.cpp>
  276. HAS_MENU_MMU2 = src_filter=+<src/lcd/menu/menu_mmu2.cpp>
  277. HAS_MENU_PASSWORD = src_filter=+<src/lcd/menu/menu_password.cpp>
  278. HAS_MENU_POWER_MONITOR = src_filter=+<src/lcd/menu/menu_power_monitor.cpp>
  279. HAS_MENU_CUTTER = src_filter=+<src/lcd/menu/menu_spindle_laser.cpp>
  280. HAS_MENU_TEMPERATURE = src_filter=+<src/lcd/menu/menu_temperature.cpp>
  281. HAS_MENU_TMC = src_filter=+<src/lcd/menu/menu_tmc.cpp>
  282. HAS_MENU_TOUCH_SCREEN = src_filter=+<src/lcd/menu/menu_touch_screen.cpp>
  283. HAS_MENU_TRAMMING = src_filter=+<src/lcd/menu/menu_tramming.cpp>
  284. HAS_MENU_UBL = src_filter=+<src/lcd/menu/menu_ubl.cpp>
  285. ANYCUBIC_LCD_CHIRON = src_filter=+<src/lcd/extui/anycubic_chiron_lcd.cpp> +<src/lcd/extui/lib/anycubic_chiron>
  286. ANYCUBIC_LCD_I3MEGA = src_filter=+<src/lcd/extui/anycubic_i3mega_lcd.cpp> +<src/lcd/extui/lib/anycubic_i3mega>
  287. HAS_DGUS_LCD = src_filter=+<src/lcd/extui/lib/dgus> +<src/lcd/extui/dgus_lcd.cpp>
  288. DGUS_LCD_UI_FYSETC = src_filter=+<src/lcd/extui/lib/dgus/fysetc>
  289. DGUS_LCD_UI_HIPRECY = src_filter=+<src/lcd/extui/lib/dgus/hiprecy>
  290. DGUS_LCD_UI_MKS = src_filter=+<src/lcd/extui/lib/dgus/mks>
  291. DGUS_LCD_UI_ORIGIN = src_filter=+<src/lcd/extui/lib/dgus/origin>
  292. TOUCH_UI_FTDI_EVE = src_filter=+<src/lcd/extui/lib/ftdi_eve_touch_ui>
  293. EXTUI_EXAMPLE = src_filter=+<src/lcd/extui/example.cpp>
  294. MALYAN_LCD = src_filter=+<src/lcd/extui/malyan_lcd.cpp>
  295. USE_UHS2_USB = src_filter=+<src/sd/usb_flashdrive/lib-uhs2>
  296. USE_UHS3_USB = src_filter=+<src/sd/usb_flashdrive/lib-uhs3>
  297. USB_FLASH_DRIVE_SUPPORT = src_filter=+<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
  298. AUTO_BED_LEVELING_BILINEAR = src_filter=+<src/feature/bedlevel/abl>
  299. AUTO_BED_LEVELING_(3POINT|(BI)?LINEAR) = src_filter=+<src/gcode/bedlevel/abl>
  300. MESH_BED_LEVELING = src_filter=+<src/feature/bedlevel/mbl> +<src/gcode/bedlevel/mbl>
  301. AUTO_BED_LEVELING_UBL = src_filter=+<src/feature/bedlevel/ubl> +<src/gcode/bedlevel/ubl>
  302. BACKLASH_COMPENSATION = src_filter=+<src/feature/backlash.cpp>
  303. BARICUDA = src_filter=+<src/feature/baricuda.cpp> +<src/gcode/feature/baricuda>
  304. BINARY_FILE_TRANSFER = src_filter=+<src/feature/binary_stream.cpp> +<src/libs/heatshrink>
  305. BLTOUCH = src_filter=+<src/feature/bltouch.cpp>
  306. CANCEL_OBJECTS = src_filter=+<src/feature/cancel_object.cpp> +<src/gcode/feature/cancel>
  307. CASE_LIGHT_ENABLE = src_filter=+<src/feature/caselight.cpp> +<src/gcode/feature/caselight>
  308. EXTERNAL_CLOSED_LOOP_CONTROLLER = src_filter=+<src/feature/closedloop.cpp> +<src/gcode/calibrate/M12.cpp>
  309. USE_CONTROLLER_FAN = src_filter=+<src/feature/controllerfan.cpp>
  310. HAS_MOTOR_CURRENT_DAC = src_filter=+<src/feature/dac>
  311. DIRECT_STEPPING = src_filter=+<src/feature/direct_stepping.cpp> +<src/gcode/motion/G6.cpp>
  312. EMERGENCY_PARSER = src_filter=+<src/feature/e_parser.cpp> -<src/gcode/control/M108_*.cpp>
  313. I2C_POSITION_ENCODERS = src_filter=+<src/feature/encoder_i2c.cpp>
  314. IIC_BL24CXX_EEPROM = src_filter=+<src/libs/BL24CXX.cpp>
  315. HAS_SPI_FLASH = src_filter=+<src/libs/W25Qxx.cpp>
  316. HAS_ETHERNET = src_filter=+<src/feature/ethernet.cpp> +<src/gcode/feature/network/M552-M554.cpp>
  317. HAS_FANMUX = src_filter=+<src/feature/fanmux.cpp>
  318. FILAMENT_WIDTH_SENSOR = src_filter=+<src/feature/filwidth.cpp> +<src/gcode/feature/filwidth>
  319. FWRETRACT = src_filter=+<src/feature/fwretract.cpp> +<src/gcode/feature/fwretract>
  320. HOST_ACTION_COMMANDS = src_filter=+<src/feature/host_actions.cpp>
  321. HOTEND_IDLE_TIMEOUT = src_filter=+<src/feature/hotend_idle.cpp>
  322. JOYSTICK = src_filter=+<src/feature/joystick.cpp>
  323. BLINKM = src_filter=+<src/feature/leds/blinkm.cpp>
  324. HAS_COLOR_LEDS = src_filter=+<src/feature/leds/leds.cpp> +<src/gcode/feature/leds/M150.cpp>
  325. PCA9533 = src_filter=+<src/feature/leds/pca9533.cpp>
  326. PCA9632 = src_filter=+<src/feature/leds/pca9632.cpp>
  327. PRINTER_EVENT_LEDS = src_filter=+<src/feature/leds/printer_event_leds.cpp>
  328. TEMP_STAT_LEDS = src_filter=+<src/feature/leds/tempstat.cpp>
  329. MAX7219_DEBUG = src_filter=+<src/feature/max7219.cpp> +<src/gcode/feature/leds/M7219.cpp>
  330. HAS_MEATPACK = src_filter=+<src/feature/meatpack.cpp>
  331. MIXING_EXTRUDER = src_filter=+<src/feature/mixing.cpp> +<src/gcode/feature/mixing/M163-M165.cpp>
  332. HAS_PRUSA_MMU1 = src_filter=+<src/feature/mmu/mmu.cpp>
  333. HAS_PRUSA_MMU2 = src_filter=+<src/feature/mmu/mmu2.cpp> +<src/gcode/feature/prusa_MMU2>
  334. PASSWORD_FEATURE = src_filter=+<src/feature/password> +<src/gcode/feature/password>
  335. ADVANCED_PAUSE_FEATURE = src_filter=+<src/feature/pause.cpp> +<src/gcode/feature/pause/M600.cpp> +<src/gcode/feature/pause/M603.cpp>
  336. AUTO_POWER_CONTROL = src_filter=+<src/feature/power.cpp>
  337. HAS_POWER_MONITOR = src_filter=+<src/feature/power_monitor.cpp> +<src/gcode/feature/power_monitor>
  338. POWER_LOSS_RECOVERY = src_filter=+<src/feature/powerloss.cpp> +<src/gcode/feature/powerloss>
  339. PROBE_TEMP_COMPENSATION = src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M192_M871.cpp>
  340. HAS_FILAMENT_SENSOR = src_filter=+<src/feature/runout.cpp> +<src/gcode/feature/runout>
  341. (EXT|MANUAL)_SOLENOID.* = src_filter=+<src/feature/solenoid.cpp> +<src/gcode/control/M380_M381.cpp>
  342. MK2_MULTIPLEXER = src_filter=+<src/feature/snmm.cpp>
  343. HAS_CUTTER = src_filter=+<src/feature/spindle_laser.cpp> +<src/gcode/control/M3-M5.cpp>
  344. EXPERIMENTAL_I2CBUS = src_filter=+<src/feature/twibus.cpp> +<src/gcode/feature/i2c>
  345. MECHANICAL_GANTRY_CAL.+ = src_filter=+<src/gcode/calibrate/G34.cpp>
  346. Z_MULTI_ENDSTOPS = src_filter=+<src/gcode/calibrate/G34_M422.cpp>
  347. Z_STEPPER_AUTO_ALIGN = src_filter=+<src/feature/z_stepper_align.cpp> +<src/gcode/calibrate/G34_M422.cpp>
  348. G26_MESH_VALIDATION = src_filter=+<src/gcode/bedlevel/G26.cpp>
  349. ASSISTED_TRAMMING = src_filter=+<src/feature/tramming.cpp> +<src/gcode/bedlevel/G35.cpp>
  350. HAS_MESH = src_filter=+<src/gcode/bedlevel/G42.cpp>
  351. HAS_LEVELING = src_filter=+<src/gcode/bedlevel/M420.cpp> +<src/feature/bedlevel/bedlevel.cpp>
  352. DELTA_AUTO_CALIBRATION = src_filter=+<src/gcode/calibrate/G33.cpp>
  353. CALIBRATION_GCODE = src_filter=+<src/gcode/calibrate/G425.cpp>
  354. Z_MIN_PROBE_REPEATABILITY_TEST = src_filter=+<src/gcode/calibrate/M48.cpp>
  355. M100_FREE_MEMORY_WATCHER = src_filter=+<src/gcode/calibrate/M100.cpp>
  356. BACKLASH_GCODE = src_filter=+<src/gcode/calibrate/M425.cpp>
  357. IS_KINEMATIC = src_filter=+<src/gcode/calibrate/M665.cpp>
  358. HAS_EXTRA_ENDSTOPS = src_filter=+<src/gcode/calibrate/M666.cpp>
  359. SKEW_CORRECTION_GCODE = src_filter=+<src/gcode/calibrate/M852.cpp>
  360. DIRECT_PIN_CONTROL = src_filter=+<src/gcode/control/M42.cpp> +<src/gcode/control/M226.cpp>
  361. PINS_DEBUGGING = src_filter=+<src/gcode/config/M43.cpp>
  362. NO_VOLUMETRICS = src_filter=-<src/gcode/config/M200-M205.cpp>
  363. HAS_MULTI_EXTRUDER = src_filter=+<src/gcode/config/M217.cpp>
  364. HAS_HOTEND_OFFSET = src_filter=+<src/gcode/config/M218.cpp>
  365. EDITABLE_SERVO_ANGLES = src_filter=+<src/gcode/config/M281.cpp>
  366. PIDTEMP = src_filter=+<src/gcode/config/M301.cpp>
  367. PREVENT_COLD_EXTRUSION = src_filter=+<src/gcode/config/M302.cpp>
  368. PIDTEMPBED = src_filter=+<src/gcode/config/M304.cpp>
  369. HAS_USER_THERMISTORS = src_filter=+<src/gcode/config/M305.cpp>
  370. SD_ABORT_ON_ENDSTOP_HIT = src_filter=+<src/gcode/config/M540.cpp>
  371. BAUD_RATE_GCODE = src_filter=+<src/gcode/config/M575.cpp>
  372. HAS_SMART_EFF_MOD = src_filter=+<src/gcode/config/M672.cpp>
  373. COOLANT_CONTROL = src_filter=+<src/gcode/control/M7-M9.cpp>
  374. HAS_SOFTWARE_ENDSTOPS = src_filter=+<src/gcode/control/M211.cpp>
  375. HAS_DUPLICATION_MODE = src_filter=+<src/gcode/control/M605.cpp>
  376. LIN_ADVANCE = src_filter=+<src/gcode/feature/advance>
  377. PHOTO_GCODE = src_filter=+<src/gcode/feature/camera>
  378. CONTROLLER_FAN_EDITABLE = src_filter=+<src/gcode/feature/controllerfan>
  379. GCODE_MACROS = src_filter=+<src/gcode/feature/macro>
  380. GRADIENT_MIX = src_filter=+<src/gcode/feature/mixing/M166.cpp>
  381. HAS_SAVED_POSITIONS = src_filter=+<src/gcode/feature/pause/G60.cpp> +<src/gcode/feature/pause/G61.cpp>
  382. PARK_HEAD_ON_PAUSE = src_filter=+<src/gcode/feature/pause/M125.cpp>
  383. FILAMENT_LOAD_UNLOAD_GCODES = src_filter=+<src/gcode/feature/pause/M701_M702.cpp>
  384. CNC_WORKSPACE_PLANES = src_filter=+<src/gcode/geometry/G17-G19.cpp>
  385. CNC_COORDINATE_SYSTEMS = src_filter=+<src/gcode/geometry/G53-G59.cpp>
  386. HAS_M206_COMMAND = src_filter=+<src/gcode/geometry/M206_M428.cpp>
  387. EXPECTED_PRINTER_CHECK = src_filter=+<src/gcode/host/M16.cpp>
  388. HOST_KEEPALIVE_FEATURE = src_filter=+<src/gcode/host/M113.cpp>
  389. REPETIER_GCODE_M360 = src_filter=+<src/gcode/host/M360.cpp>
  390. HAS_GCODE_M876 = src_filter=+<src/gcode/host/M876.cpp>
  391. HAS_RESUME_CONTINUE = src_filter=+<src/gcode/lcd/M0_M1.cpp>
  392. HAS_LCD_CONTRAST = src_filter=+<src/gcode/lcd/M250.cpp>
  393. LCD_SET_PROGRESS_MANUALLY = src_filter=+<src/gcode/lcd/M73.cpp>
  394. TOUCH_SCREEN_CALIBRATION = src_filter=+<src/gcode/lcd/M995.cpp>
  395. ARC_SUPPORT = src_filter=+<src/gcode/motion/G2_G3.cpp>
  396. GCODE_MOTION_MODES = src_filter=+<src/gcode/motion/G80.cpp>
  397. BABYSTEPPING = src_filter=+<src/gcode/motion/M290.cpp> +<src/feature/babystep.cpp>
  398. Z_PROBE_SLED = src_filter=+<src/gcode/probe/G31_G32.cpp>
  399. G38_PROBE_TARGET = src_filter=+<src/gcode/probe/G38.cpp>
  400. MAGNETIC_PARKING_EXTRUDER = src_filter=+<src/gcode/probe/M951.cpp>
  401. SDSUPPORT = src_filter=+<src/sd/cardreader.cpp> +<src/sd/Sd2Card.cpp> +<src/sd/SdBaseFile.cpp> +<src/sd/SdFatUtil.cpp> +<src/sd/SdFile.cpp> +<src/sd/SdVolume.cpp> +<src/gcode/sd>
  402. HAS_MEDIA_SUBCALLS = src_filter=+<src/gcode/sd/M32.cpp>
  403. GCODE_REPEAT_MARKERS = src_filter=+<src/feature/repeat.cpp> +<src/gcode/sd/M808.cpp>
  404. HAS_EXTRUDERS = src_filter=+<src/gcode/temp/M104_M109.cpp> +<src/gcode/config/M221.cpp>
  405. HAS_COOLER = src_filter=-<src/gcode/temp/M143_M193.cpp>
  406. AUTO_REPORT_TEMPERATURES = src_filter=+<src/gcode/temp/M155.cpp>
  407. INCH_MODE_SUPPORT = src_filter=+<src/gcode/units/G20_G21.cpp>
  408. TEMPERATURE_UNITS_SUPPORT = src_filter=+<src/gcode/units/M149.cpp>
  409. NEED_HEX_PRINT = src_filter=+<src/libs/hex_print.cpp>
  410. NEED_LSF = src_filter=+<src/libs/least_squares_fit.cpp>
  411. NOZZLE_PARK_FEATURE = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/pause/G27.cpp>
  412. NOZZLE_CLEAN_FEATURE = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/clean>
  413. DELTA = src_filter=+<src/module/delta.cpp> +<src/gcode/calibrate/M666.cpp>
  414. BEZIER_CURVE_SUPPORT = src_filter=+<src/module/planner_bezier.cpp> +<src/gcode/motion/G5.cpp>
  415. PRINTCOUNTER = src_filter=+<src/module/printcounter.cpp>
  416. HAS_BED_PROBE = src_filter=+<src/module/probe.cpp> +<src/gcode/probe/G30.cpp> +<src/gcode/probe/M401_M402.cpp> +<src/gcode/probe/M851.cpp>
  417. IS_SCARA = src_filter=+<src/module/scara.cpp>
  418. HAS_SERVOS = src_filter=+<src/module/servo.cpp> +<src/gcode/control/M280.cpp>
  419. MORGAN_SCARA = src_filter=+<src/gcode/scara>
  420. HAS_MICROSTEPS = src_filter=+<src/gcode/control/M350_M351.cpp>
  421. (ESP3D_)?WIFISUPPORT = AsyncTCP, ESP Async WebServer
  422. ESP3DLib=https://github.com/luc-github/ESP3DLib/archive/master.zip
  423. arduinoWebSockets=links2004/WebSockets@2.3.4
  424. luc-github/ESP32SSDP@^1.1.1
  425. lib_ignore=ESPAsyncTCP
  426. #
  427. # Default values apply to all 'env:' prefixed environments
  428. #
  429. [env]
  430. framework = arduino
  431. extra_scripts = ${common.extra_scripts}
  432. build_flags = ${common.build_flags}
  433. lib_deps = ${common.lib_deps}
  434. monitor_speed = 250000
  435. monitor_flags =
  436. --quiet
  437. --echo
  438. --eol
  439. LF
  440. --filter
  441. colorize
  442. --filter
  443. time
  444. #################################
  445. # #
  446. # Unique Core Architectures #
  447. # #
  448. # Add a new "env" below if no #
  449. # entry has values suitable to #
  450. # build for a given board. #
  451. # #
  452. #################################
  453. #################################
  454. # #
  455. # AVR Architecture #
  456. # #
  457. #################################
  458. #
  459. # AVR (8-bit) Common Environment values
  460. #
  461. [common_avr8]
  462. board_build.f_cpu = 16000000L
  463. src_filter = ${common.default_src_filter} +<src/HAL/AVR>
  464. #
  465. # ATmega2560
  466. #
  467. [env:mega2560]
  468. platform = atmelavr
  469. extends = common_avr8
  470. board = megaatmega2560
  471. #
  472. # ATmega2560 with extended pins 70-85 defined
  473. # BOARD_BQ_ZUM_MEGA_3D
  474. # BOARD_ULTIMAIN_2
  475. # BOARD_MIGHTYBOARD_REVE
  476. # BOARD_EINSTART_S
  477. #
  478. [env:mega2560ext]
  479. platform = atmelavr
  480. extends = env:mega2560
  481. board_build.variant = megaextendedpins
  482. extra_scripts = ${common.extra_scripts}
  483. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  484. #
  485. # ATmega1280
  486. #
  487. [env:mega1280]
  488. platform = atmelavr
  489. extends = common_avr8
  490. board = megaatmega1280
  491. #
  492. # MightyBoard AVR with extended pins
  493. #
  494. [mega_extended_optimized]
  495. extends = common_avr8
  496. board_build.variant = megaextendedpins
  497. extra_scripts = ${common.extra_scripts}
  498. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  499. upload_speed = 57600
  500. build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
  501. #
  502. # MightyBoard ATmega1280
  503. #
  504. [env:MightyBoard1280]
  505. platform = atmelavr
  506. extends = mega_extended_optimized
  507. board = megaatmega1280
  508. #
  509. # MightyBoard ATmega2560
  510. #
  511. [env:MightyBoard2560]
  512. platform = atmelavr
  513. extends = mega_extended_optimized
  514. board = megaatmega2560
  515. #
  516. # RAMBo
  517. #
  518. [env:rambo]
  519. platform = atmelavr
  520. extends = common_avr8
  521. board = reprap_rambo
  522. #
  523. # FYSETC F6 V1.3 / V1.4
  524. #
  525. [env:FYSETC_F6]
  526. platform = atmelavr
  527. extends = common_avr8
  528. board = fysetc_f6
  529. #
  530. # Sanguinololu (ATmega644p)
  531. #
  532. [env:sanguino644p]
  533. platform = atmelavr
  534. extends = common_avr8
  535. board = sanguino_atmega644p
  536. #
  537. # Sanguinololu (ATmega1284p)
  538. #
  539. [env:sanguino1284p]
  540. platform = atmelavr
  541. extends = common_avr8
  542. board = sanguino_atmega1284p
  543. board_upload.maximum_size = 126976
  544. #
  545. # Melzi and clones (ATmega1284p)
  546. #
  547. [env:melzi]
  548. platform = atmelavr
  549. extends = env:sanguino1284p
  550. upload_speed = 57600
  551. #
  552. # Sanguinololu (ATmega1284p stock bootloader with tuned flags)
  553. #
  554. [tuned_1284p]
  555. build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
  556. [env:sanguino1284p_optimized]
  557. platform = atmelavr
  558. extends = env:melzi
  559. build_flags = ${tuned_1284p.build_flags}
  560. #
  561. # Melzi and clones (alias for sanguino1284p_optimized)
  562. #
  563. [env:melzi_optimized]
  564. platform = atmelavr
  565. extends = env:sanguino1284p_optimized
  566. #
  567. # Melzi and clones (Optiboot bootloader)
  568. #
  569. [env:melzi_optiboot]
  570. platform = atmelavr
  571. extends = common_avr8
  572. board = sanguino_atmega1284p
  573. upload_speed = 115200
  574. #
  575. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  576. #
  577. [env:melzi_optiboot_optimized]
  578. platform = atmelavr
  579. extends = env:melzi_optiboot
  580. build_flags = ${tuned_1284p.build_flags}
  581. #
  582. # AT90USB1286 boards using CDC bootloader
  583. # - BRAINWAVE
  584. # - BRAINWAVE_PRO
  585. # - SAV_MKI
  586. # - TEENSYLU
  587. #
  588. [env:at90usb1286_cdc]
  589. platform = teensy
  590. extends = common_avr8
  591. board = at90usb1286
  592. lib_ignore = ${env:common_avr8.lib_ignore}, Teensy_ADC, NativeEthernet
  593. #
  594. # AT90USB1286 boards using DFU bootloader
  595. # - Printrboard
  596. # - Printrboard Rev.F
  597. # - ? 5DPRINT ?
  598. #
  599. [env:at90usb1286_dfu]
  600. platform = teensy
  601. extends = env:at90usb1286_cdc
  602. #################################
  603. # #
  604. # DUE Architecture #
  605. # #
  606. #################################
  607. #
  608. # Due (Atmel SAM3X8E ARM Cortex-M3)
  609. #
  610. # - RAMPS4DUE
  611. # - RADDS
  612. #
  613. [env:DUE]
  614. platform = atmelsam
  615. board = due
  616. src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
  617. [env:DUE_USB]
  618. platform = atmelsam
  619. extends = env:DUE
  620. board = dueUSB
  621. #
  622. # Archim SAM
  623. #
  624. [common_DUE_archim]
  625. platform = atmelsam
  626. extends = env:DUE
  627. board = archim
  628. build_flags = ${common.build_flags}
  629. -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
  630. board_build.variants_dir = buildroot/share/PlatformIO/variants/
  631. extra_scripts = ${common.extra_scripts}
  632. Marlin/src/HAL/DUE/upload_extra_script.py
  633. [env:DUE_archim]
  634. platform = ${common_DUE_archim.platform}
  635. extends = common_DUE_archim
  636. #################################
  637. # #
  638. # SAMD51 Architecture #
  639. # #
  640. #################################
  641. #
  642. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  643. #
  644. [env:SAMD51_grandcentral_m4]
  645. platform = atmelsam
  646. board = adafruit_grandcentral_m4
  647. build_flags = ${common.build_flags} -std=gnu++17
  648. build_unflags = -std=gnu++11
  649. src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
  650. lib_deps = ${common.lib_deps}
  651. SoftwareSerialM
  652. Adafruit SPIFlash
  653. extra_scripts = ${common.extra_scripts}
  654. pre:buildroot/share/PlatformIO/scripts/SAMD51_grandcentral_m4.py
  655. custom_marlin.SDSUPPORT = SdFat - Adafruit Fork
  656. debug_tool = jlink
  657. #################################
  658. # #
  659. # LPC176x Architecture #
  660. # #
  661. #################################
  662. #
  663. # NXP LPC176x ARM Cortex-M3
  664. #
  665. [common_LPC]
  666. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
  667. platform_packages = framework-arduino-lpc176x@^0.2.6
  668. board = nxp_lpc1768
  669. lib_ldf_mode = off
  670. lib_compat_mode = strict
  671. extra_scripts = ${common.extra_scripts}
  672. Marlin/src/HAL/LPC1768/upload_extra_script.py
  673. src_filter = ${common.default_src_filter} +<src/HAL/LPC1768> +<src/HAL/shared/backtrace>
  674. lib_deps = ${common.lib_deps}
  675. Servo
  676. custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7
  677. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
  678. build_flags = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
  679. # debug options for backtrace
  680. #-funwind-tables
  681. #-mpoke-function-name
  682. #
  683. # NXP LPC176x ARM Cortex-M3
  684. #
  685. [env:LPC1768]
  686. platform = ${common_LPC.platform}
  687. extends = common_LPC
  688. board = nxp_lpc1768
  689. [env:LPC1769]
  690. platform = ${common_LPC.platform}
  691. extends = common_LPC
  692. board = nxp_lpc1769
  693. #################################
  694. # #
  695. # STM32 Architecture #
  696. # #
  697. #################################
  698. #
  699. # HAL/STM32 Base Environment values
  700. #
  701. [common_stm32]
  702. platform = ststm32@~12.0
  703. build_flags = ${common.build_flags}
  704. -std=gnu++14
  705. -DUSBCON -DUSBD_USE_CDC
  706. -DTIM_IRQ_PRIO=13
  707. -DADC_RESOLUTION=12
  708. build_unflags = -std=gnu++11
  709. src_filter = ${common.default_src_filter} +<src/HAL/STM32> +<src/HAL/shared/backtrace>
  710. #
  711. # HAL/STM32F1 Common Environment values
  712. #
  713. [common_stm32f1]
  714. platform = ststm32@~12.0
  715. board_build.core = maple
  716. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  717. ${common.build_flags}
  718. -DARDUINO_ARCH_STM32
  719. build_unflags = -std=gnu11 -std=gnu++11
  720. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  721. lib_ignore = SPI, FreeRTOS701, FreeRTOS821
  722. lib_deps = ${common.lib_deps}
  723. SoftwareSerialM
  724. platform_packages = tool-stm32duino
  725. extra_scripts = ${common.extra_scripts}
  726. pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
  727. #
  728. # STM32F103RC
  729. #
  730. [env:STM32F103RC]
  731. platform = ${common_stm32f1.platform}
  732. extends = common_stm32f1
  733. board = genericSTM32F103RC
  734. monitor_speed = 115200
  735. #
  736. # MEEB_3DP (STM32F103RCT6 with 512K)
  737. #
  738. [env:STM32F103RC_meeb]
  739. platform = ${common_stm32f1.platform}
  740. extends = common_stm32f1
  741. board = MEEB_3DP
  742. build_flags = ${common_stm32f1.build_flags}
  743. -DDEBUG_LEVEL=0
  744. -DSS_TIMER=4
  745. -DSTM32_FLASH_SIZE=512
  746. -DHSE_VALUE=12000000U
  747. -DUSE_USB_COMPOSITE
  748. -DVECT_TAB_OFFSET=0x2000
  749. -DGENERIC_BOOTLOADER
  750. extra_scripts = ${common_stm32f1.extra_scripts}
  751. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  752. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  753. lib_deps = ${common.lib_deps}
  754. SoftwareSerialM
  755. USBComposite for STM32F1@0.91
  756. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  757. debug_tool = stlink
  758. upload_protocol = dfu
  759. #
  760. # STM32F103RC_fysetc
  761. #
  762. [env:STM32F103RC_fysetc]
  763. platform = ${common_stm32f1.platform}
  764. extends = env:STM32F103RC
  765. extra_scripts = ${common_stm32f1.extra_scripts}
  766. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  767. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  768. lib_ldf_mode = chain
  769. debug_tool = stlink
  770. upload_protocol = serial
  771. #
  772. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  773. #
  774. # STM32F103RC_btt ............. RCT6 with 256K
  775. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  776. # STM32F103RC_btt_512K ........ RCT6 with 512K
  777. # STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
  778. #
  779. # WARNING! If you have an SKR Mini v1.1 or an SKR Mini E3 1.0 / 1.2 / 2.0 / DIP
  780. # and experience a printer freeze, re-flash Marlin using the regular (non-512K)
  781. # build option. 256K chips may be re-branded 512K chips, but this means the
  782. # upper 256K is sketchy, and failure is very likely.
  783. #
  784. [env:STM32F103RC_btt]
  785. platform = ${common_stm32f1.platform}
  786. extends = env:STM32F103RC
  787. extra_scripts = ${common_stm32f1.extra_scripts}
  788. buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  789. build_flags = ${common_stm32f1.build_flags}
  790. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  791. monitor_speed = 115200
  792. [env:STM32F103RC_btt_USB]
  793. platform = ${common_stm32f1.platform}
  794. extends = env:STM32F103RC_btt
  795. build_flags = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
  796. lib_deps = ${env:STM32F103RC_btt.lib_deps}
  797. USBComposite for STM32F1@0.91
  798. [env:STM32F103RC_btt_512K]
  799. platform = ${common_stm32f1.platform}
  800. extends = env:STM32F103RC_btt
  801. board_upload.maximum_size=524288
  802. build_flags = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
  803. [env:STM32F103RC_btt_512K_USB]
  804. platform = ${common_stm32f1.platform}
  805. extends = env:STM32F103RC_btt_512K
  806. build_flags = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
  807. lib_deps = ${env:STM32F103RC_btt_512K.lib_deps}
  808. USBComposite for STM32F1@0.91
  809. #
  810. # STM32F103RE
  811. #
  812. [env:STM32F103RE]
  813. platform = ${common_stm32f1.platform}
  814. extends = common_stm32f1
  815. board = genericSTM32F103RE
  816. monitor_speed = 115200
  817. #
  818. # STM32F103RE_btt ............. RET6
  819. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  820. #
  821. [env:STM32F103RE_btt]
  822. platform = ${common_stm32f1.platform}
  823. extends = env:STM32F103RE
  824. extra_scripts = ${common_stm32f1.extra_scripts}
  825. buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  826. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  827. debug_tool = stlink
  828. upload_protocol = stlink
  829. [env:STM32F103RE_btt_USB]
  830. platform = ${common_stm32f1.platform}
  831. extends = env:STM32F103RE_btt
  832. build_flags = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
  833. lib_deps = ${common_stm32f1.lib_deps}
  834. USBComposite for STM32F1@0.91
  835. #
  836. # REMRAM_V1
  837. #
  838. [env:REMRAM_V1]
  839. platform = ${common_stm32.platform}
  840. extends = common_stm32
  841. board = remram_v1
  842. build_flags = ${common_stm32.build_flags}
  843. #
  844. # ST NUCLEO-F767ZI Development Board
  845. # This environment is for testing purposes prior to control boards
  846. # being readily available based on STM32F7 MCUs
  847. #
  848. [env:NUCLEO_F767ZI]
  849. platform = ${common_stm32.platform}
  850. extends = common_stm32
  851. board = nucleo_f767zi
  852. build_flags = ${common_stm32.build_flags} -DTIMER_SERIAL=TIM9
  853. #
  854. # ARMED (STM32)
  855. #
  856. [env:ARMED]
  857. platform = ${common_stm32.platform}
  858. extends = common_stm32
  859. board = armed_v1
  860. build_flags = ${common_stm32.build_flags}
  861. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  862. #
  863. # Geeetech GTM32 (STM32F103VET6)
  864. #
  865. [env:STM32F103VE_GTM32]
  866. platform = ${common_stm32f1.platform}
  867. extends = common_stm32f1
  868. board = genericSTM32F103VE
  869. build_flags = ${common_stm32f1.build_flags}
  870. -ffunction-sections -fdata-sections -nostdlib -MMD
  871. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  872. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  873. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  874. upload_protocol = serial
  875. #
  876. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  877. #
  878. [env:STM32F103VE_longer]
  879. platform = ${common_stm32f1.platform}
  880. extends = common_stm32f1
  881. board = genericSTM32F103VE
  882. extra_scripts = ${common_stm32f1.extra_scripts}
  883. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  884. build_flags = ${common_stm32f1.build_flags}
  885. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  886. build_unflags = ${common_stm32f1.build_unflags}
  887. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  888. #
  889. # MKS Robin Mini (STM32F103VET6)
  890. #
  891. [env:mks_robin_mini]
  892. platform = ${common_stm32f1.platform}
  893. extends = common_stm32f1
  894. board = genericSTM32F103VE
  895. extra_scripts = ${common_stm32f1.extra_scripts}
  896. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  897. build_flags = ${common_stm32f1.build_flags}
  898. -DMCU_STM32F103VE
  899. #
  900. # MKS Robin Nano (STM32F103VET6)
  901. #
  902. [env:mks_robin_nano35]
  903. platform = ${common_stm32f1.platform}
  904. extends = common_stm32f1
  905. board = genericSTM32F103VE
  906. extra_scripts = ${common_stm32f1.extra_scripts}
  907. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  908. build_flags = ${common_stm32f1.build_flags}
  909. -DMCU_STM32F103VE -DSS_TIMER=4
  910. debug_tool = jlink
  911. upload_protocol = jlink
  912. #
  913. # MKS Robin (STM32F103ZET6)
  914. #
  915. [env:mks_robin]
  916. platform = ${common_stm32f1.platform}
  917. extends = common_stm32f1
  918. board = genericSTM32F103ZE
  919. extra_scripts = ${common_stm32f1.extra_scripts}
  920. buildroot/share/PlatformIO/scripts/mks_robin.py
  921. build_flags = ${common_stm32f1.build_flags}
  922. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  923. # MKS Robin (STM32F103ZET6)
  924. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  925. #
  926. [env:mks_robin_stm32]
  927. platform = ${common_stm32.platform}
  928. extends = common_stm32
  929. board = genericSTM32F103ZE
  930. board_build.core = stm32
  931. board_build.variant = MARLIN_F103Zx
  932. board_build.ldscript = ldscript.ld
  933. board_build.offset = 0x7000
  934. board_build.encrypt = Yes
  935. board_build.firmware = Robin.bin
  936. build_flags = ${common_stm32.build_flags}
  937. -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  938. build_unflags = ${common_stm32.build_unflags}
  939. -DUSBCON -DUSBD_USE_CDC
  940. extra_scripts = ${common.extra_scripts}
  941. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  942. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  943. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  944. lib_deps =
  945. #
  946. # MKS Robin Pro (STM32F103ZET6)
  947. #
  948. [env:mks_robin_pro]
  949. platform = ${common_stm32f1.platform}
  950. extends = env:mks_robin
  951. extra_scripts = ${common_stm32f1.extra_scripts}
  952. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  953. #
  954. # TRIGORILLA PRO (STM32F103ZET6)
  955. #
  956. [env:trigorilla_pro]
  957. platform = ${common_stm32f1.platform}
  958. extends = env:mks_robin
  959. extra_scripts = ${common_stm32f1.extra_scripts}
  960. #
  961. # MKS Robin E3D (STM32F103RCT6) and
  962. # MKS Robin E3 with TMC2209
  963. #
  964. [env:mks_robin_e3]
  965. platform = ${common_stm32f1.platform}
  966. extends = common_stm32f1
  967. board = genericSTM32F103RC
  968. platform_packages = tool-stm32duino
  969. extra_scripts = ${common_stm32f1.extra_scripts}
  970. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  971. build_flags = ${common_stm32f1.build_flags}
  972. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  973. #
  974. # MKS Robin E3p (STM32F103VET6)
  975. # - LVGL UI
  976. #
  977. [env:mks_robin_e3p]
  978. platform = ${common_stm32f1.platform}
  979. extends = common_stm32f1
  980. board = genericSTM32F103VE
  981. extra_scripts = ${common_stm32f1.extra_scripts}
  982. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  983. build_flags = ${common_stm32f1.build_flags}
  984. -DMCU_STM32F103VE -DSS_TIMER=4
  985. debug_tool = jlink
  986. upload_protocol = jlink
  987. #
  988. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  989. #
  990. [env:mks_robin_lite]
  991. platform = ${common_stm32f1.platform}
  992. extends = common_stm32f1
  993. board = genericSTM32F103RC
  994. extra_scripts = ${common_stm32f1.extra_scripts}
  995. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  996. #
  997. # MKS ROBIN LITE3 (STM32F103RCT6)
  998. #
  999. [env:mks_robin_lite3]
  1000. platform = ${common_stm32f1.platform}
  1001. extends = common_stm32f1
  1002. board = genericSTM32F103RC
  1003. extra_scripts = ${common_stm32f1.extra_scripts}
  1004. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  1005. #
  1006. # JGAurora A5S A1 (STM32F103ZET6)
  1007. #
  1008. [env:jgaurora_a5s_a1]
  1009. platform = ${common_stm32f1.platform}
  1010. extends = common_stm32f1
  1011. board = genericSTM32F103ZE
  1012. extra_scripts = ${common_stm32f1.extra_scripts}
  1013. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  1014. build_flags = ${common_stm32f1.build_flags}
  1015. -DSTM32F1xx -DSTM32_XL_DENSITY
  1016. #
  1017. # Malyan M200 (STM32F103CB)
  1018. #
  1019. [env:STM32F103CB_malyan]
  1020. platform = ${common_stm32f1.platform}
  1021. extends = common_stm32f1
  1022. board = malyanM200
  1023. build_flags = ${common_stm32f1.build_flags}
  1024. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  1025. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  1026. lib_ignore = ${common_stm32f1.lib_ignore}
  1027. SoftwareSerialM
  1028. #
  1029. # Malyan M200 v2 (STM32F070RB)
  1030. #
  1031. [env:STM32F070RB_malyan]
  1032. platform = ${common_stm32.platform}
  1033. extends = common_stm32
  1034. board = malyanM200v2
  1035. build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
  1036. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  1037. -DCUSTOM_STARTUP_FILE
  1038. #
  1039. # Malyan M200 v2 (STM32F070CB)
  1040. #
  1041. [env:STM32F070CB_malyan]
  1042. platform = ${common_stm32.platform}
  1043. extends = common_stm32
  1044. board = malyanm200_f070cb
  1045. build_flags = ${common_stm32.build_flags}
  1046. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
  1047. #
  1048. # Malyan M300 (STM32F070CB)
  1049. #
  1050. [env:malyan_M300]
  1051. platform = ${common_stm32.platform}
  1052. extends = common_stm32
  1053. board = malyanm300_f070cb
  1054. build_flags = ${common_stm32.build_flags}
  1055. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  1056. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  1057. #
  1058. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  1059. #
  1060. [env:chitu_f103]
  1061. platform = ${common_stm32f1.platform}
  1062. extends = common_stm32f1
  1063. board = CHITU_F103
  1064. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  1065. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  1066. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  1067. build_flags = ${common_stm32f1.build_flags}
  1068. -DSTM32F1xx -DSTM32_XL_DENSITY
  1069. build_unflags = ${common_stm32f1.build_unflags}
  1070. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  1071. #
  1072. # Some Chitu V5 boards have a problem with GPIO init.
  1073. # Use this target if G28 or G29 are always failing.
  1074. #
  1075. [env:chitu_v5_gpio_init]
  1076. platform = ${common_stm32f1.platform}
  1077. extends = env:chitu_f103
  1078. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  1079. #
  1080. # Creality (STM32F103RET6)
  1081. #
  1082. [env:STM32F103RET6_creality]
  1083. platform = ${env:STM32F103RE.platform}
  1084. extends = env:STM32F103RE
  1085. build_flags = ${env:STM32F103RE.build_flags} -DTEMP_TIMER_CHAN=4
  1086. extra_scripts = ${env:STM32F103RE.extra_scripts}
  1087. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  1088. buildroot/share/PlatformIO/scripts/STM32F103RET6_creality.py
  1089. debug_tool = jlink
  1090. upload_protocol = jlink
  1091. #
  1092. # FLSUN QQS Pro (STM32F103VET6) using hal STM32
  1093. # board Hispeedv1
  1094. #
  1095. [env:flsun_hispeedv1]
  1096. platform = ${common_stm32.platform}
  1097. extends = common_stm32
  1098. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  1099. board = genericSTM32F103VE
  1100. board_build.core = stm32
  1101. board_build.variant = MARLIN_F103Vx
  1102. board_build.ldscript = ldscript.ld
  1103. board_build.offset = 0x7000
  1104. board_build.firmware = Robin_mini.bin
  1105. board_build.encrypt = Yes
  1106. board_upload.offset_address = 0x08007000
  1107. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  1108. extra_scripts = ${common.extra_scripts}
  1109. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1110. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1111. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  1112. #
  1113. # STM32F401VE
  1114. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  1115. #
  1116. [env:STM32F401VE_STEVAL]
  1117. platform = ${common_stm32.platform}
  1118. extends = common_stm32
  1119. board = STEVAL_STM32F401VE
  1120. build_flags = ${common_stm32.build_flags}
  1121. -DARDUINO_STEVAL -DSTM32F401xE
  1122. -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  1123. extra_scripts = ${common.extra_scripts}
  1124. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1125. buildroot/share/PlatformIO/scripts/STM32F401VE_STEVAL.py
  1126. #
  1127. # STM32F401RC
  1128. #
  1129. [env:FYSETC_CHEETAH_V20]
  1130. platform = ${common_stm32.platform}
  1131. extends = common_stm32
  1132. board = FYSETC_CHEETAH_V20
  1133. build_flags = ${common_stm32.build_flags} -DSTM32F401xC -DVECT_TAB_OFFSET=0xC000
  1134. extra_scripts = ${common.extra_scripts}
  1135. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1136. buildroot/share/PlatformIO/scripts/FYSETC_CHEETAH_V20.py
  1137. #
  1138. # FLYF407ZG
  1139. #
  1140. [env:FLYF407ZG]
  1141. platform = ${common_stm32.platform}
  1142. extends = common_stm32
  1143. board = FLYF407ZG
  1144. build_flags = ${common_stm32.build_flags}
  1145. -DVECT_TAB_OFFSET=0x8000
  1146. extra_scripts = ${common.extra_scripts}
  1147. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1148. #
  1149. # FLY MINI(stm32f103rct6)
  1150. #
  1151. [env:FLY_MINI]
  1152. platform = ${common_stm32f1.platform}
  1153. extends = common_stm32f1
  1154. board = genericSTM32F103RC
  1155. extra_scripts = ${common_stm32f1.extra_scripts}
  1156. buildroot/share/PlatformIO/scripts/fly_mini.py
  1157. build_flags = ${common_stm32f1.build_flags}
  1158. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  1159. #
  1160. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  1161. #
  1162. [env:FYSETC_S6]
  1163. platform = ${common_stm32.platform}
  1164. extends = common_stm32
  1165. platform_packages = tool-stm32duino
  1166. board = marlin_fysetc_s6
  1167. build_flags = ${common_stm32.build_flags}
  1168. -DVECT_TAB_OFFSET=0x10000
  1169. -DHAL_PCD_MODULE_ENABLED
  1170. extra_scripts = ${common.extra_scripts}
  1171. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1172. debug_tool = stlink
  1173. upload_protocol = dfu
  1174. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  1175. #
  1176. # STM32F407VET6 with RAMPS-like shield
  1177. # 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
  1178. # Shield - https://github.com/jmz52/Hardware
  1179. #
  1180. [env:STM32F407VE_black]
  1181. platform = ${common_stm32.platform}
  1182. extends = common_stm32
  1183. board = blackSTM32F407VET6
  1184. build_flags = ${common_stm32.build_flags}
  1185. -DARDUINO_BLACK_F407VE
  1186. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  1187. extra_scripts = ${common.extra_scripts}
  1188. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1189. #
  1190. # Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
  1191. # For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
  1192. # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
  1193. #
  1194. [env:Anet_ET4_OpenBLT]
  1195. platform = ${common_stm32.platform}
  1196. extends = common_stm32
  1197. build_flags = ${common_stm32.build_flags} -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
  1198. board = genericSTM32F407VGT6
  1199. board_build.core = stm32
  1200. board_build.variant = MARLIN_F4x7Vx
  1201. board_build.ldscript = ldscript.ld
  1202. board_build.firmware = firmware.srec
  1203. # Just openblt.py (not stm32_bootloader.py) generates the file
  1204. board_build.encrypt = Yes
  1205. board_build.offset = 0x10000
  1206. board_upload.offset_address = 0x08010000
  1207. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  1208. debug_tool = jlink
  1209. upload_protocol = jlink
  1210. extra_scripts = ${common.extra_scripts}
  1211. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1212. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1213. buildroot/share/PlatformIO/scripts/openblt.py
  1214. #
  1215. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  1216. #
  1217. [env:BIGTREE_SKR_PRO]
  1218. platform = ${common_stm32.platform}
  1219. extends = common_stm32
  1220. board = BigTree_SKR_Pro
  1221. build_flags = ${common_stm32.build_flags}
  1222. -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  1223. extra_scripts = ${common.extra_scripts}
  1224. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1225. #upload_protocol = stlink
  1226. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  1227. debug_tool = stlink
  1228. debug_init_break =
  1229. #
  1230. # USB Flash Drive mix-ins for STM32
  1231. #
  1232. [stm32_flash_drive]
  1233. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc.zip
  1234. build_flags = ${common_stm32.build_flags}
  1235. -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
  1236. -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
  1237. #
  1238. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
  1239. #
  1240. [env:BIGTREE_SKR_PRO_usb_flash_drive]
  1241. extends = env:BIGTREE_SKR_PRO
  1242. platform_packages = ${stm32_flash_drive.platform_packages}
  1243. build_unflags = -DUSBCON -DUSBD_USE_CDC
  1244. build_flags = ${stm32_flash_drive.build_flags}
  1245. -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  1246. #
  1247. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  1248. #
  1249. [env:BIGTREE_GTR_V1_0]
  1250. platform = ${common_stm32.platform}
  1251. extends = common_stm32
  1252. board = BigTree_GTR_v1
  1253. extra_scripts = ${common.extra_scripts}
  1254. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1255. build_flags = ${common_stm32.build_flags}
  1256. -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  1257. #
  1258. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
  1259. #
  1260. [env:BIGTREE_GTR_V1_0_usb_flash_drive]
  1261. extends = env:BIGTREE_GTR_V1_0
  1262. platform_packages = ${stm32_flash_drive.platform_packages}
  1263. build_unflags = -DUSBCON -DUSBD_USE_CDC
  1264. build_flags = ${stm32_flash_drive.build_flags}
  1265. -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  1266. #
  1267. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  1268. #
  1269. [env:BIGTREE_BTT002]
  1270. platform = ${common_stm32.platform}
  1271. extends = common_stm32
  1272. board = BigTree_Btt002
  1273. build_flags = ${common_stm32.build_flags}
  1274. -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  1275. -DHAVE_HWSERIAL2
  1276. -DHAVE_HWSERIAL3
  1277. -DPIN_SERIAL2_RX=PD_6
  1278. -DPIN_SERIAL2_TX=PD_5
  1279. extra_scripts = ${common.extra_scripts}
  1280. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1281. #
  1282. # Lerdge base
  1283. #
  1284. [lerdge_common]
  1285. platform = ${common_stm32.platform}
  1286. extends = common_stm32
  1287. board = LERDGE
  1288. board_build.offset = 0x10000
  1289. board_build.encrypt = Yes
  1290. extra_scripts = ${common.extra_scripts}
  1291. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  1292. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1293. buildroot/share/PlatformIO/scripts/lerdge.py
  1294. build_flags = ${common_stm32.build_flags}
  1295. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  1296. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  1297. -DHAL_SRAM_MODULE_ENABLED
  1298. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  1299. #
  1300. # Lerdge X
  1301. #
  1302. [env:LERDGEX]
  1303. platform = ${lerdge_common.platform}
  1304. extends = lerdge_common
  1305. board_build.firmware = Lerdge_X_firmware_force.bin
  1306. #
  1307. # Lerdge X with USB Flash Drive Support
  1308. #
  1309. [env:LERDGEX_usb_flash_drive]
  1310. platform = ${env:LERDGEX.platform}
  1311. extends = env:LERDGEX
  1312. platform_packages = ${stm32_flash_drive.platform_packages}
  1313. build_flags = ${stm32_flash_drive.build_flags}
  1314. #
  1315. # Lerdge S
  1316. #
  1317. [env:LERDGES]
  1318. platform = ${lerdge_common.platform}
  1319. extends = lerdge_common
  1320. board_build.firmware = Lerdge_firmware_force.bin
  1321. #
  1322. # Lerdge S with USB Flash Drive Support
  1323. #
  1324. [env:LERDGES_usb_flash_drive]
  1325. platform = ${env:LERDGES.platform}
  1326. extends = env:LERDGES
  1327. platform_packages = ${stm32_flash_drive.platform_packages}
  1328. build_flags = ${stm32_flash_drive.build_flags}
  1329. #
  1330. # Lerdge K
  1331. #
  1332. [env:LERDGEK]
  1333. platform = ${lerdge_common.platform}
  1334. extends = lerdge_common
  1335. board_build.firmware = Lerdge_K_firmware_force.bin
  1336. build_flags = ${lerdge_common.build_flags}
  1337. -DLERDGEK
  1338. #
  1339. # Lerdge K with USB Flash Drive Support
  1340. #
  1341. [env:LERDGEK_usb_flash_drive]
  1342. platform = ${env:LERDGEK.platform}
  1343. extends = env:LERDGEK
  1344. platform_packages = ${stm32_flash_drive.platform_packages}
  1345. build_flags = ${stm32_flash_drive.build_flags}
  1346. #
  1347. # RUMBA32
  1348. #
  1349. [env:rumba32]
  1350. platform = ${common_stm32.platform}
  1351. extends = common_stm32
  1352. build_flags = ${common_stm32.build_flags}
  1353. -Os
  1354. -DHAL_PCD_MODULE_ENABLED
  1355. -DDISABLE_GENERIC_SERIALUSB
  1356. -DHAL_UART_MODULE_ENABLED
  1357. -DTIMER_SERIAL=TIM9
  1358. board = rumba32_f446ve
  1359. upload_protocol = dfu
  1360. monitor_speed = 500000
  1361. #
  1362. # MKS Robin Nano V1.2 and V2 using hal STM32
  1363. #
  1364. [env:mks_robin_nano35_stm32]
  1365. platform = ${common_stm32.platform}
  1366. extends = common_stm32
  1367. build_flags = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
  1368. board = genericSTM32F103VE
  1369. board_build.core = stm32
  1370. board_build.variant = MARLIN_F103Vx
  1371. board_build.ldscript = ldscript.ld
  1372. board_build.offset = 0x7000
  1373. board_build.encrypt = Yes
  1374. board_build.firmware = Robin_nano35.bin
  1375. board_upload.offset_address = 0x08007000
  1376. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  1377. debug_tool = jlink
  1378. upload_protocol = jlink
  1379. extra_scripts = ${common.extra_scripts}
  1380. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1381. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1382. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  1383. #
  1384. # MKS Robin Pro V2
  1385. #
  1386. [env:mks_robin_pro2]
  1387. platform = ${common_stm32.platform}
  1388. platform_packages = ${stm32_flash_drive.platform_packages}
  1389. extends = common_stm32
  1390. build_flags = ${stm32_flash_drive.build_flags}
  1391. board = genericSTM32F407VET6
  1392. board_build.core = stm32
  1393. board_build.variant = MARLIN_F4x7Vx
  1394. board_build.ldscript = ldscript.ld
  1395. board_build.firmware = firmware.bin
  1396. board_build.offset = 0x0000
  1397. board_upload.offset_address = 0x08000000
  1398. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  1399. debug_tool = jlink
  1400. upload_protocol = jlink
  1401. extra_scripts = ${common.extra_scripts}
  1402. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1403. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1404. #
  1405. # This SPI is used by Robin Nano V3
  1406. #
  1407. [stm32f4_I2C1]
  1408. build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
  1409. #
  1410. # MKS Robin Nano V3
  1411. #
  1412. [env:mks_robin_nano_v3]
  1413. platform = ${common_stm32.platform}
  1414. extends = common_stm32
  1415. build_flags = ${common_stm32.build_flags} ${stm32f4_I2C1.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
  1416. board = genericSTM32F407VGT6
  1417. board_build.core = stm32
  1418. board_build.variant = MARLIN_F4x7Vx
  1419. board_build.ldscript = ldscript.ld
  1420. board_build.firmware = Robin_nano_v3.bin
  1421. board_build.offset = 0xC000
  1422. board_upload.offset_address = 0x0800C000
  1423. build_unflags = ${common_stm32.build_unflags}
  1424. debug_tool = jlink
  1425. upload_protocol = jlink
  1426. extra_scripts = ${common.extra_scripts}
  1427. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1428. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1429. #
  1430. # MKS Robin Nano V3 with USB Flash Drive Support
  1431. # Currently, using a STM32duino fork, until USB Host get merged
  1432. #
  1433. [env:mks_robin_nano_v3_usb_flash_drive]
  1434. extends = env:mks_robin_nano_v3
  1435. platform_packages = ${stm32_flash_drive.platform_packages}
  1436. build_flags = ${stm32_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  1437. -DUSBCON
  1438. -DUSE_USBHOST_HS
  1439. -DUSBD_IRQ_PRIO=5
  1440. -DUSBD_IRQ_SUBPRIO=6
  1441. -DUSE_USB_HS_IN_FS
  1442. -DUSBD_USE_CDC
  1443. #
  1444. # MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
  1445. # Currently, using a STM32duino fork, until USB Host and USB Device MSC get merged
  1446. #
  1447. [env:mks_robin_nano_v3_usb_flash_drive_msc]
  1448. platform = ${common_stm32.platform}
  1449. extends = env:mks_robin_nano_v3
  1450. platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc.zip
  1451. build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
  1452. build_flags = ${stm32_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
  1453. -DUSBCON
  1454. -DUSE_USBHOST_HS
  1455. -DUSBD_IRQ_PRIO=5
  1456. -DUSBD_IRQ_SUBPRIO=6
  1457. -DUSE_USB_HS_IN_FS
  1458. -DUSBD_USE_CDC_MSC
  1459. #
  1460. # Mingda MPX_ARM_MINI
  1461. #
  1462. [env:mingda_mpx_arm_mini]
  1463. platform = ${common_stm32.platform}
  1464. extends = common_stm32
  1465. board = genericSTM32F103ZE
  1466. board_build.core = stm32
  1467. board_build.variant = MARLIN_F103Zx
  1468. board_build.ldscript = ldscript.ld
  1469. board_build.offset = 0x10000
  1470. build_flags = ${common_stm32.build_flags} -DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
  1471. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
  1472. extra_scripts = ${common.extra_scripts}
  1473. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1474. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1475. #################################
  1476. # #
  1477. # Other Architectures #
  1478. # #
  1479. #################################
  1480. #
  1481. # Espressif ESP32
  1482. #
  1483. [env:esp32]
  1484. platform = espressif32@2.1.0
  1485. board = esp32dev
  1486. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  1487. src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
  1488. lib_ignore = NativeEthernet
  1489. upload_speed = 500000
  1490. monitor_speed = 250000
  1491. #upload_port = marlinesp.local
  1492. #board_build.flash_mode = qio
  1493. [env:FYSETC_E4]
  1494. platform = espressif32@1.11.2
  1495. extends = env:esp32
  1496. board_build.partitions = default_16MB.csv
  1497. #
  1498. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  1499. #
  1500. [env:teensy31]
  1501. platform = teensy
  1502. board = teensy31
  1503. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
  1504. lib_ignore = NativeEthernet
  1505. #
  1506. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  1507. #
  1508. [env:teensy35]
  1509. platform = teensy
  1510. board = teensy35
  1511. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  1512. lib_ignore = NativeEthernet
  1513. [env:teensy36]
  1514. platform = teensy
  1515. board = teensy36
  1516. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  1517. lib_ignore = NativeEthernet
  1518. #
  1519. # Teensy 4.0 / 4.1 (ARM Cortex-M7)
  1520. #
  1521. [env:teensy41]
  1522. platform = teensy
  1523. board = teensy41
  1524. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY40_41>
  1525. #
  1526. # Native
  1527. # No supported Arduino libraries, base Marlin only
  1528. #
  1529. [env:linux_native]
  1530. platform = native
  1531. framework =
  1532. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  1533. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  1534. build_unflags = -Wall
  1535. lib_ldf_mode = off
  1536. lib_deps =
  1537. src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
  1538. #
  1539. # Just print the dependency tree
  1540. #
  1541. [env:include_tree]
  1542. platform = atmelavr
  1543. board = megaatmega2560
  1544. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  1545. src_filter = +<src/MarlinCore.cpp>