My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

platformio.ini 59KB

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