My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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