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

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