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

platformio.ini 60KB

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