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 60KB

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