My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

platformio.ini 46KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329
  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>
  26. -<src/lcd/menu>
  27. -<src/lcd/menu/game/game.cpp> -<src/lcd/menu/game/brickout.cpp> -<src/lcd/menu/game/invaders.cpp>
  28. -<src/lcd/menu/game/maze.cpp> -<src/lcd/menu/game/snake.cpp>
  29. -<src/lcd/menu/menu_backlash.cpp>
  30. -<src/lcd/menu/menu_bed_corners.cpp>
  31. -<src/lcd/menu/menu_bed_leveling.cpp>
  32. -<src/lcd/menu/menu_cancelobject.cpp>
  33. -<src/lcd/menu/menu_delta_calibrate.cpp>
  34. -<src/lcd/menu/menu_filament.cpp>
  35. -<src/lcd/menu/menu_info.cpp>
  36. -<src/lcd/menu/menu_job_recovery.cpp>
  37. -<src/lcd/menu/menu_led.cpp>
  38. -<src/lcd/menu/menu_media.cpp>
  39. -<src/lcd/menu/menu_mmu2.cpp>
  40. -<src/lcd/menu/menu_password.cpp>
  41. -<src/lcd/menu/menu_power_monitor.cpp>
  42. -<src/lcd/menu/menu_spindle_laser.cpp>
  43. -<src/lcd/menu/menu_temperature.cpp>
  44. -<src/lcd/menu/menu_tmc.cpp>
  45. -<src/lcd/menu/menu_touch_screen.cpp>
  46. -<src/lcd/menu/menu_ubl.cpp>
  47. -<src/lcd/extui/lib/mks_ui>
  48. -<src/lcd/extui/lib/dgus> -<src/lcd/extui/dgus_lcd.cpp>
  49. -<src/lcd/extui/example.cpp>
  50. -<src/lcd/extui/malyan_lcd.cpp>
  51. -<src/lcd/extui/lib/ftdi_eve_touch_ui>
  52. -<src/lcd/extui/anycubic_chiron_lcd.cpp>
  53. -<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
  54. -<src/lcd/lcdprint.cpp>
  55. -<src/sd/usb_flashdrive>
  56. -<src/feature/backlash.cpp>
  57. -<src/feature/baricuda.cpp> -<src/gcode/feature/baricuda>
  58. -<src/feature/bedlevel/abl> -<src/gcode/bedlevel/abl>
  59. -<src/feature/bedlevel/mbl> -<src/gcode/bedlevel/mbl>
  60. -<src/feature/bedlevel/ubl> -<src/gcode/bedlevel/ubl>
  61. -<src/feature/binary_stream.cpp> -<src/libs/heatshrink>
  62. -<src/feature/bltouch.cpp>
  63. -<src/feature/cancel_object.cpp> -<src/gcode/feature/cancel>
  64. -<src/feature/caselight> -<src/gcode/feature/caselight>
  65. -<src/feature/closedloop.cpp>
  66. -<src/feature/controllerfan.cpp> -<src/gcode/feature/controllerfan>
  67. -<src/feature/dac> -<src/feature/digipot>
  68. -<src/feature/direct_stepping.cpp> -<src/gcode/motion/G6.cpp>
  69. -<src/feature/e_parser.cpp>
  70. -<src/feature/encoder_i2c.cpp>
  71. -<src/feature/fanmux.cpp>
  72. -<src/feature/filwidth.cpp> -<src/gcode/feature/filwidth>
  73. -<src/feature/fwretract.cpp> -<src/gcode/feature/fwretract>
  74. -<src/feature/host_actions.cpp>
  75. -<src/feature/hotend_idle.cpp>
  76. -<src/feature/joystick.cpp>
  77. -<src/feature/leds/blinkm.cpp>
  78. -<src/feature/leds/leds.cpp>
  79. -<src/feature/leds/pca9533.cpp>
  80. -<src/feature/leds/pca9632.cpp>
  81. -<src/feature/leds/printer_event_leds.cpp>
  82. -<src/feature/leds/tempstat.cpp>
  83. -<src/feature/max7219.cpp>
  84. -<src/feature/mixing.cpp>
  85. -<src/feature/mmu2> -<src/gcode/feature/prusa_MMU2>
  86. -<src/feature/password> -<src/gcode/feature/password>
  87. -<src/feature/pause.cpp>
  88. -<src/feature/power.cpp>
  89. -<src/feature/power_monitor.cpp> -<src/gcode/feature/power_monitor>
  90. -<src/feature/powerloss.cpp> -<src/gcode/feature/powerloss>
  91. -<src/feature/probe_temp_comp.cpp>
  92. -<src/feature/runout.cpp> -<src/gcode/feature/runout>
  93. -<src/feature/snmm.cpp>
  94. -<src/feature/solenoid.cpp>
  95. -<src/feature/spindle_laser.cpp> -<src/gcode/control/M3-M5.cpp>
  96. -<src/feature/tmc_util.cpp> -<src/module/stepper/trinamic.cpp>
  97. -<src/feature/twibus.cpp>
  98. -<src/feature/z_stepper_align.cpp>
  99. -<src/gcode/bedlevel/G26.cpp>
  100. -<src/gcode/bedlevel/G35.cpp>
  101. -<src/gcode/bedlevel/G42.cpp>
  102. -<src/gcode/bedlevel/M420.cpp>
  103. -<src/gcode/calibrate/G33.cpp>
  104. -<src/gcode/calibrate/G34_M422.cpp>
  105. -<src/gcode/calibrate/G76_M871.cpp>
  106. -<src/gcode/calibrate/G425.cpp>
  107. -<src/gcode/calibrate/M12.cpp>
  108. -<src/gcode/calibrate/M48.cpp>
  109. -<src/gcode/calibrate/M100.cpp>
  110. -<src/gcode/calibrate/M425.cpp>
  111. -<src/gcode/calibrate/M666.cpp>
  112. -<src/gcode/calibrate/M852.cpp>
  113. -<src/gcode/config/M43.cpp>
  114. -<src/gcode/config/M217.cpp>
  115. -<src/gcode/config/M218.cpp>
  116. -<src/gcode/config/M221.cpp>
  117. -<src/gcode/config/M281.cpp>
  118. -<src/gcode/config/M302.cpp>
  119. -<src/gcode/config/M305.cpp>
  120. -<src/gcode/config/M540.cpp>
  121. -<src/gcode/control/M7-M9.cpp>
  122. -<src/gcode/control/M211.cpp>
  123. -<src/gcode/control/M605.cpp>
  124. -<src/gcode/feature/advance>
  125. -<src/gcode/feature/camera>
  126. -<src/gcode/feature/i2c>
  127. -<src/gcode/feature/L6470>
  128. -<src/gcode/feature/leds/M150.cpp>
  129. -<src/gcode/feature/leds/M7219.cpp>
  130. -<src/gcode/feature/macro>
  131. -<src/gcode/feature/mixing/M163-M165.cpp>
  132. -<src/gcode/feature/mixing/M166.cpp>
  133. -<src/gcode/feature/pause/G27.cpp>
  134. -<src/gcode/feature/pause/G60.cpp>
  135. -<src/gcode/feature/pause/G61.cpp>
  136. -<src/gcode/feature/pause/M125.cpp>
  137. -<src/gcode/feature/pause/M600.cpp>
  138. -<src/gcode/feature/pause/M603.cpp>
  139. -<src/gcode/feature/pause/M701_M702.cpp>
  140. -<src/gcode/feature/trinamic/M122.cpp>
  141. -<src/gcode/feature/trinamic/M569.cpp>
  142. -<src/gcode/feature/trinamic/M906.cpp>
  143. -<src/gcode/feature/trinamic/M911-M914.cpp>
  144. -<src/gcode/geometry/G17-G19.cpp>
  145. -<src/gcode/geometry/G53-G59.cpp>
  146. -<src/gcode/geometry/M206_M428.cpp>
  147. -<src/gcode/host/M16.cpp>
  148. -<src/gcode/host/M113.cpp>
  149. -<src/gcode/host/M360.cpp>
  150. -<src/gcode/host/M876.cpp>
  151. -<src/gcode/lcd/M0_M1.cpp>
  152. -<src/gcode/lcd/M250.cpp>
  153. -<src/gcode/lcd/M73.cpp>
  154. -<src/gcode/lcd/M995.cpp>
  155. -<src/gcode/motion/G2_G3.cpp>
  156. -<src/gcode/motion/G5.cpp>
  157. -<src/gcode/motion/G80.cpp>
  158. -<src/gcode/motion/M290.cpp>
  159. -<src/gcode/probe/G30.cpp>
  160. -<src/gcode/probe/G31_G32.cpp>
  161. -<src/gcode/probe/G38.cpp>
  162. -<src/gcode/probe/M401_M402.cpp>
  163. -<src/gcode/probe/M851.cpp>
  164. -<src/gcode/probe/M951.cpp>
  165. -<src/gcode/scara>
  166. -<src/gcode/sd>
  167. -<src/gcode/temp/M104_M109.cpp>
  168. -<src/gcode/units/G20_G21.cpp>
  169. -<src/gcode/units/M149.cpp>
  170. -<src/libs/L64XX> -<src/module/stepper/L64xx.cpp>
  171. -<src/libs/hex_print.cpp>
  172. -<src/libs/least_squares_fit.cpp>
  173. -<src/libs/nozzle.cpp> -<src/gcode/feature/clean>
  174. -<src/module/delta.cpp>
  175. -<src/module/planner_bezier.cpp>
  176. -<src/module/printcounter.cpp>
  177. -<src/module/probe.cpp>
  178. -<src/module/scara.cpp> -<src/gcode/calibrate/M665.cpp>
  179. -<src/module/stepper/TMC26X.cpp>
  180. extra_scripts =
  181. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  182. pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  183. post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
  184. build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
  185. lib_deps =
  186. #
  187. # Feature Dependencies
  188. #
  189. [features]
  190. HAS_TFT_LVGL_UI = lvgl=https://github.com/makerbase-mks/LVGL-6.1.1-MKS/archive/master.zip
  191. src_filter=+<src/lcd/extui/lib/mks_ui>
  192. extra_scripts=download_mks_assets.py
  193. HAS_TRINAMIC_CONFIG = TMCStepper@~0.7.1
  194. 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>
  195. HAS_STEALTHCHOP = src_filter=+<src/gcode/feature/trinamic/M569.cpp>
  196. SR_LCD_3W_NL = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/master.zip
  197. HAS_I2C_DIGIPOT = SlowSoftI2CMaster
  198. src_filter=+<src/feature/digipot>
  199. HAS_TMC26X = TMC26XStepper=https://github.com/trinamic/TMC26XStepper/archive/master.zip
  200. src_filter=+<src/module/TMC26X.cpp>
  201. HAS_L64XX = Arduino-L6470@0.8.0
  202. src_filter=+<src/libs/L64XX> +<src/module/stepper/L64xx.cpp> +<src/gcode/feature/L6470>
  203. NEOPIXEL_LED = Adafruit NeoPixel@1.5.0
  204. src_filter=+<src/feature/leds/neopixel.cpp>
  205. MAX6675_IS_MAX31865 = Adafruit MAX31865 library@~1.1.0
  206. USES_LIQUIDCRYSTAL = LiquidCrystal@1.5.0
  207. USES_LIQUIDTWI2 = LiquidTWI2@1.2.7
  208. HAS_WIRED_LCD = src_filter=+<src/lcd/lcdprint.cpp>
  209. HAS_MARLINUI_HD44780 = src_filter=+<src/lcd/HD44780>
  210. HAS_MARLINUI_U8GLIB = U8glib-HAL@~0.4.1
  211. src_filter=+<src/lcd/dogm>
  212. HAS_GRAPHICAL_TFT = src_filter=+<src/lcd/tft>
  213. DWIN_CREALITY_LCD = src_filter=+<src/lcd/dwin>
  214. IS_TFTGLCD_PANEL = src_filter=+<src/lcd/TFTGLCD>
  215. HAS_LCD_MENU = src_filter=+<src/lcd/menu>
  216. HAS_GAMES = src_filter=+<src/lcd/menu/game/game.cpp>
  217. MARLIN_BRICKOUT = src_filter=+<src/lcd/menu/game/brickout.cpp>
  218. MARLIN_INVADERS = src_filter=+<src/lcd/menu/game/invaders.cpp>
  219. MARLIN_MAZE = src_filter=+<src/lcd/menu/game/maze.cpp>
  220. MARLIN_SNAKE = src_filter=+<src/lcd/menu/game/snake.cpp>
  221. HAS_MENU_BACKLASH = src_filter=+<src/lcd/menu/menu_backlash.cpp>
  222. HAS_MENU_BED_CORNERS = src_filter=+<src/lcd/menu/menu_bed_corners.cpp>
  223. LCD_BED_LEVELING = src_filter=+<src/lcd/menu/menu_bed_leveling.cpp>
  224. HAS_MENU_CANCELOBJECT = src_filter=+<src/lcd/menu/menu_cancelobject.cpp>
  225. HAS_MENU_DELTA_CALIBRATE = src_filter=+<src/lcd/menu/menu_delta_calibrate.cpp>
  226. HAS_MENU_FILAMENT = src_filter=+<src/lcd/menu/menu_filament.cpp>
  227. LCD_INFO_MENU = src_filter=+<src/lcd/menu/menu_info.cpp>
  228. HAS_MENU_JOB_RECOVERY = src_filter=+<src/lcd/menu/menu_job_recovery.cpp>
  229. HAS_MENU_LED = src_filter=+<src/lcd/menu/menu_led.cpp>
  230. HAS_MENU_MEDIA = src_filter=+<src/lcd/menu/menu_media.cpp>
  231. HAS_MENU_MIXER = src_filter=+<src/lcd/menu/menu_mixer.cpp>
  232. HAS_MENU_MMU2 = src_filter=+<src/lcd/menu/menu_mmu2.cpp>
  233. HAS_MENU_PASSWORD = src_filter=+<src/lcd/menu/menu_password.cpp>
  234. HAS_MENU_POWER_MONITOR = src_filter=+<src/lcd/menu/menu_power_monitor.cpp>
  235. HAS_MENU_CUTTER = src_filter=+<src/lcd/menu/menu_spindle_laser.cpp>
  236. HAS_MENU_TEMPERATURE = src_filter=+<src/lcd/menu/menu_temperature.cpp>
  237. HAS_MENU_TMC = src_filter=+<src/lcd/menu/menu_tmc.cpp>
  238. HAS_MENU_TOUCH_SCREEN = src_filter=+<src/lcd/menu/menu_touch_screen.cpp>
  239. HAS_MENU_UBL = src_filter=+<src/lcd/menu/menu_ubl.cpp>
  240. ANYCUBIC_LCD_CHIRON = src_filter=+<src/lcd/extui/anycubic_chiron_lcd.cpp>
  241. ANYCUBIC_LCD_I3MEGA = src_filter=+<src/lcd/extui/anycubic_i3mega_lcd.cpp> +<src/lcd/extui/lib/anycubic_i3mega>
  242. HAS_DGUS_LCD = src_filter=+<src/lcd/extui/lib/dgus> +<src/lcd/extui/dgus_lcd.cpp>
  243. TOUCH_UI_FTDI_EVE = src_filter=+<src/lcd/extui/lib/ftdi_eve_touch_ui>
  244. EXTUI_EXAMPLE = src_filter=+<src/lcd/extui/example.cpp>
  245. MALYAN_LCD = src_filter=+<src/lcd/extui/malyan_lcd.cpp>
  246. USB_FLASH_DRIVE_SUPPORT = src_filter=+<src/sd/usb_flashdrive>
  247. AUTO_BED_LEVELING_BILINEAR = src_filter=+<src/feature/bedlevel/abl>
  248. AUTO_BED_LEVELING_(3POINT|(BI)?LINEAR) = src_filter=+<src/gcode/bedlevel/abl>
  249. MESH_BED_LEVELING = src_filter=+<src/feature/bedlevel/mbl> +<src/gcode/bedlevel/mbl>
  250. AUTO_BED_LEVELING_UBL = src_filter=+<src/feature/bedlevel/ubl> +<src/gcode/bedlevel/ubl>
  251. BACKLASH_COMPENSATION = src_filter=+<src/feature/backlash.cpp>
  252. BARICUDA = src_filter=+<src/feature/baricuda.cpp> +<src/gcode/feature/baricuda>
  253. BINARY_FILE_TRANSFER = src_filter=+<src/feature/binary_stream.cpp> +<src/libs/heatshrink>
  254. BLTOUCH = src_filter=+<src/feature/bltouch.cpp>
  255. CANCEL_OBJECTS = src_filter=+<src/feature/cancel_object.cpp> +<src/gcode/feature/cancel>
  256. CASE_LIGHT_ENABLE = src_filter=+<src/feature/caselight> +<src/gcode/feature/caselight>
  257. EXTERNAL_CLOSED_LOOP_CONTROLLER = src_filter=+<src/feature/closedloop.cpp> +<src/gcode/calibrate/M12.cpp>
  258. USE_CONTROLLER_FAN = src_filter=+<src/feature/controllerfan.cpp>
  259. DAC_STEPPER_CURRENT = src_filter=+<src/feature/dac>
  260. DIRECT_STEPPING = src_filter=+<src/feature/direct_stepping.cpp> +<src/gcode/motion/G6.cpp>
  261. EMERGENCY_PARSER = src_filter=+<src/feature/e_parser.cpp> -<src/gcode/control/M108_*.cpp>
  262. I2C_POSITION_ENCODERS = src_filter=+<src/feature/encoder_i2c.cpp>
  263. HAS_FANMUX = src_filter=+<src/feature/fanmux.cpp>
  264. FILAMENT_WIDTH_SENSOR = src_filter=+<src/feature/filwidth.cpp> +<src/gcode/feature/filwidth>
  265. FWRETRACT = src_filter=+<src/feature/fwretract.cpp> +<src/gcode/feature/fwretract>
  266. HOST_ACTION_COMMANDS = src_filter=+<src/feature/host_actions.cpp>
  267. HOTEND_IDLE_TIMEOUT = src_filter=+<src/feature/hotend_idle.cpp>
  268. JOYSTICK = src_filter=+<src/feature/joystick.cpp>
  269. BLINKM = src_filter=+<src/feature/leds/blinkm.cpp>
  270. HAS_COLOR_LEDS = src_filter=+<src/feature/leds/leds.cpp> +<src/gcode/feature/leds/M150.cpp>
  271. PCA9533 = src_filter=+<src/feature/leds/pca9533.cpp>
  272. PCA9632 = src_filter=+<src/feature/leds/pca9632.cpp>
  273. PRINTER_EVENT_LEDS = src_filter=+<src/feature/leds/printer_event_leds.cpp>
  274. TEMP_STAT_LEDS = src_filter=+<src/feature/leds/tempstat.cpp>
  275. MAX7219_DEBUG = src_filter=+<src/feature/max7219.cpp> +<src/gcode/feature/leds/M7219.cpp>
  276. MIXING_EXTRUDER = src_filter=+<src/feature/mixing.cpp> +<src/gcode/feature/mixing/M163-M165.cpp>
  277. PRUSA_MMU2 = src_filter=+<src/feature/mmu2> +<src/gcode/feature/prusa_MMU2>
  278. PASSWORD_FEATURE = src_filter=+<src/feature/password> +<src/gcode/feature/password>
  279. ADVANCED_PAUSE_FEATURE = src_filter=+<src/feature/pause.cpp> +<src/gcode/feature/pause/M600.cpp> +<src/gcode/feature/pause/M603.cpp>
  280. AUTO_POWER_CONTROL = src_filter=+<src/feature/power.cpp>
  281. HAS_POWER_MONITOR = src_filter=+<src/feature/power_monitor.cpp> +<src/gcode/feature/power_monitor>
  282. POWER_LOSS_RECOVERY = src_filter=+<src/feature/powerloss.cpp> +<src/gcode/feature/powerloss>
  283. PROBE_TEMP_COMPENSATION = src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M871.cpp>
  284. HAS_FILAMENT_SENSOR = src_filter=+<src/feature/runout.cpp> +<src/gcode/feature/runout>
  285. MK2_MULTIPLEXER = src_filter=+<src/feature/snmm.cpp>
  286. EXT_SOLENOID|MANUAL_SOLENOID_CONTROL = src_filter=+<src/feature/solenoid.cpp>
  287. HAS_CUTTER = src_filter=+<src/feature/spindle_laser.cpp> +<src/gcode/control/M3-M5.cpp>
  288. EXPERIMENTAL_I2CBUS = src_filter=+<src/feature/twibus.cpp> +<src/gcode/feature/i2c>
  289. Z_STEPPER_AUTO_ALIGN = src_filter=+<src/feature/z_stepper_align.cpp> +<src/gcode/calibrate/G34_M422.cpp>
  290. G26_MESH_VALIDATION = src_filter=+<src/gcode/bedlevel/G26.cpp>
  291. ASSISTED_TRAMMING = src_filter=+<src/gcode/bedlevel/G35.cpp>
  292. HAS_MESH = src_filter=+<src/gcode/bedlevel/G42.cpp>
  293. HAS_LEVELING = src_filter=+<src/gcode/bedlevel/M420.cpp>
  294. DELTA_AUTO_CALIBRATION = src_filter=+<src/gcode/calibrate/G33.cpp>
  295. CALIBRATION_GCODE = src_filter=+<src/gcode/calibrate/G425.cpp>
  296. Z_MIN_PROBE_REPEATABILITY_TEST = src_filter=+<src/gcode/calibrate/M48.cpp>
  297. M100_FREE_MEMORY_WATCHER = src_filter=+<src/gcode/calibrate/M100.cpp>
  298. BACKLASH_GCODE = src_filter=+<src/gcode/calibrate/M425.cpp>
  299. IS_KINEMATIC = src_filter=+<src/gcode/calibrate/M665.cpp>
  300. HAS_EXTRA_ENDSTOPS = src_filter=+<src/gcode/calibrate/M666.cpp>
  301. SKEW_CORRECTION_GCODE = src_filter=+<src/gcode/calibrate/M852.cpp>
  302. PINS_DEBUGGING = src_filter=-<src/gcode/config/M43.cpp>
  303. NO_VOLUMETRICS = src_filter=-<src/gcode/config/M200-M205.cpp>
  304. HAS_MULTI_EXTRUDER = src_filter=+<src/gcode/config/M217.cpp>
  305. HAS_HOTEND_OFFSET = src_filter=+<src/gcode/config/M218.cpp>
  306. EDITABLE_SERVO_ANGLES = src_filter=+<src/gcode/config/M281.cpp>
  307. PREVENT_COLD_EXTRUSION = src_filter=+<src/gcode/config/M302.cpp>
  308. HAS_USER_THERMISTORS = src_filter=+<src/gcode/config/M305.cpp>
  309. SD_ABORT_ON_ENDSTOP_HIT = src_filter=+<src/gcode/config/M540.cpp>
  310. COOLANT_CONTROL = src_filter=+<src/gcode/control/M7-M9.cpp>
  311. HAS_SOFTWARE_ENDSTOPS = src_filter=+<src/gcode/control/M211.cpp>
  312. HAS_DUPLICATION_MODE = src_filter=+<src/gcode/control/M605.cpp>
  313. LIN_ADVANCE = src_filter=+<src/gcode/feature/advance>
  314. PHOTO_GCODE = src_filter=+<src/gcode/feature/camera>
  315. CONTROLLER_FAN_EDITABLE = src_filter=+<src/gcode/feature/controllerfan>
  316. GCODE_MACROS = src_filter=+<src/gcode/feature/macro>
  317. GRADIENT_MIX = src_filter=+<src/gcode/feature/mixing/M166.cpp>
  318. HAS_SAVED_POSITIONS = src_filter=+<src/gcode/feature/pause/G60.cpp> +<src/gcode/feature/pause/G61.cpp>
  319. PARK_HEAD_ON_PAUSE = src_filter=+<src/gcode/feature/pause/M125.cpp>
  320. FILAMENT_LOAD_UNLOAD_GCODES = src_filter=+<src/gcode/feature/pause/M701_M702.cpp>
  321. CNC_WORKSPACE_PLANES = src_filter=+<src/gcode/geometry/G17-G19.cpp>
  322. CNC_COORDINATE_SYSTEMS = src_filter=+<src/gcode/geometry/G53-G59.cpp>
  323. HAS_M206_COMMAND = src_filter=+<src/gcode/geometry/M206_M428.cpp>
  324. EXPECTED_PRINTER_CHECK = src_filter=+<src/gcode/host/M16.cpp>
  325. HOST_KEEPALIVE_FEATURE = src_filter=+<src/gcode/host/M113.cpp>
  326. REPETIER_GCODE_M360 = src_filter=+<src/gcode/host/M360.cpp>
  327. HAS_GCODE_M876 = src_filter=+<src/gcode/host/M876.cpp>
  328. HAS_RESUME_CONTINUE = src_filter=+<src/gcode/lcd/M0_M1.cpp>
  329. HAS_LCD_CONTRAST = src_filter=+<src/gcode/lcd/M250.cpp>
  330. LCD_SET_PROGRESS_MANUALLY = src_filter=+<src/gcode/lcd/M73.cpp>
  331. TOUCH_SCREEN_CALIBRATION = src_filter=+<src/gcode/lcd/M995.cpp>
  332. ARC_SUPPORT = src_filter=+<src/gcode/motion/G2_G3.cpp>
  333. GCODE_MOTION_MODES = src_filter=+<src/gcode/motion/G80.cpp>
  334. BABYSTEPPING = src_filter=+<src/gcode/motion/M290.cpp>
  335. Z_PROBE_SLED = src_filter=+<src/gcode/probe/G31_G32.cpp>
  336. G38_PROBE_TARGET = src_filter=+<src/gcode/probe/G38.cpp>
  337. MAGNETIC_PARKING_EXTRUDER = src_filter=+<src/gcode/probe/M951.cpp>
  338. SDSUPPORT = src_filter=+<src/gcode/sd>
  339. HAS_EXTRUDERS = src_filter=+<src/gcode/temp/M104_M109.cpp> +<src/gcode/config/M221.cpp>
  340. INCH_MODE_SUPPORT = src_filter=+<src/gcode/units/G20_G21.cpp>
  341. TEMPERATURE_UNITS_SUPPORT = src_filter=+<src/gcode/units/M149.cpp>
  342. NEED_HEX_PRINT = src_filter=+<src/libs/hex_print.cpp>
  343. NEED_LSF = src_filter=+<src/libs/least_squares_fit.cpp>
  344. NOZZLE_PARK_FEATURE = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/pause/G27.cpp>
  345. NOZZLE_CLEAN_FEATURE = src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/clean>
  346. DELTA = src_filter=+<src/module/delta.cpp> +<src/gcode/calibrate/M666.cpp>
  347. BEZIER_CURVE_SUPPORT = src_filter=+<src/module/planner_bezier.cpp> +<src/gcode/motion/G5.cpp>
  348. PRINTCOUNTER = src_filter=+<src/module/printcounter.cpp>
  349. 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>
  350. IS_SCARA = src_filter=+<src/module/scara.cpp>
  351. MORGAN_SCARA = src_filter=+<src/gcode/scara>
  352. (ESP3D_)?WIFISUPPORT = AsyncTCP, ESP Async WebServer
  353. ESP3DLib=https://github.com/luc-github/ESP3DLib.git
  354. arduinoWebSockets=https://github.com/Links2004/arduinoWebSockets.git
  355. ESP32SSDP=https://github.com/luc-github/ESP32SSDP.git
  356. lib_ignore=ESPAsyncTCP
  357. #
  358. # Default values apply to all 'env:' prefixed environments
  359. #
  360. [env]
  361. framework = arduino
  362. extra_scripts = ${common.extra_scripts}
  363. build_flags = ${common.build_flags}
  364. lib_deps = ${common.lib_deps}
  365. monitor_speed = 250000
  366. monitor_flags =
  367. --quiet
  368. --echo
  369. --eol
  370. LF
  371. --filter
  372. colorize
  373. --filter
  374. time
  375. #################################
  376. # #
  377. # Unique Core Architectures #
  378. # #
  379. # Add a new "env" below if no #
  380. # entry has values suitable to #
  381. # build for a given board. #
  382. # #
  383. #################################
  384. #################################
  385. # #
  386. # AVR Architecture #
  387. # #
  388. #################################
  389. #
  390. # AVR (8-bit) Common Environment values
  391. #
  392. [common_avr8]
  393. board_build.f_cpu = 16000000L
  394. src_filter = ${common.default_src_filter} +<src/HAL/AVR>
  395. #
  396. # ATmega2560
  397. #
  398. [env:mega2560]
  399. platform = atmelavr
  400. extends = common_avr8
  401. board = megaatmega2560
  402. #
  403. # ATmega2560 with extended pins 70-85 defined
  404. # BOARD_BQ_ZUM_MEGA_3D
  405. # BOARD_ULTIMAIN_2
  406. # BOARD_MIGHTYBOARD_REVE
  407. # BOARD_EINSTART_S
  408. #
  409. [env:mega2560ext]
  410. platform = atmelavr
  411. extends = mega2560
  412. board = megaatmega2560
  413. board_build.variant = megaextendedpins
  414. extra_scripts = ${common.extra_scripts}
  415. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  416. #
  417. # ATmega1280
  418. #
  419. [env:mega1280]
  420. platform = atmelavr
  421. extends = common_avr8
  422. board = megaatmega1280
  423. #
  424. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  425. #
  426. [env:MightyBoard1280]
  427. platform = atmelavr
  428. extends = common_avr8
  429. board = ATmega1280
  430. upload_speed = 57600
  431. #
  432. # MightyBoard ATmega2560 (MegaCore 100 pin boards variants)
  433. #
  434. [env:MightyBoard2560]
  435. platform = atmelavr
  436. extends = common_avr8
  437. board = ATmega2560
  438. upload_protocol = wiring
  439. upload_speed = 57600
  440. board_upload.maximum_size = 253952
  441. #
  442. # RAMBo
  443. #
  444. [env:rambo]
  445. platform = atmelavr
  446. extends = common_avr8
  447. board = reprap_rambo
  448. #
  449. # FYSETC F6 V1.3
  450. #
  451. [env:FYSETC_F6_13]
  452. platform = atmelavr
  453. extends = common_avr8
  454. board = fysetc_f6_13
  455. #
  456. # FYSETC F6 V1.4
  457. #
  458. [env:FYSETC_F6_14]
  459. platform = atmelavr
  460. extends = common_avr8
  461. board = fysetc_f6_14
  462. #
  463. # Sanguinololu (ATmega644p)
  464. #
  465. [env:sanguino644p]
  466. platform = atmelavr
  467. extends = common_avr8
  468. board = sanguino_atmega644p
  469. #
  470. # Sanguinololu (ATmega1284p)
  471. #
  472. [env:sanguino1284p]
  473. platform = atmelavr
  474. extends = common_avr8
  475. board = sanguino_atmega1284p
  476. board_upload.maximum_size = 126976
  477. #
  478. # Melzi and clones (ATmega1284p)
  479. #
  480. [env:melzi]
  481. platform = atmelavr
  482. extends = common_avr8
  483. board = sanguino_atmega1284p
  484. upload_speed = 57600
  485. board_upload.maximum_size = 126976
  486. #
  487. # Melzi and clones (Optiboot bootloader)
  488. #
  489. [env:melzi_optiboot]
  490. platform = atmelavr
  491. extends = common_avr8
  492. board = sanguino_atmega1284p
  493. upload_speed = 115200
  494. #
  495. # Melzi and clones (Zonestar Melzi2 with tuned flags)
  496. #
  497. [env:melzi_optimized]
  498. platform = atmelavr
  499. extends = env:melzi_optiboot
  500. build_flags = ${common.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -Wl,--relax -mcall-prologues
  501. build_unflags = -g -ggdb
  502. #
  503. # AT90USB1286 boards using CDC bootloader
  504. # - BRAINWAVE
  505. # - BRAINWAVE_PRO
  506. # - SAV_MKI
  507. # - TEENSYLU
  508. #
  509. [env:at90usb1286_cdc]
  510. platform = teensy
  511. extends = common_avr8
  512. board = at90usb1286
  513. #
  514. # AT90USB1286 boards using DFU bootloader
  515. # - PrintrBoard
  516. # - PrintrBoard Rev.F
  517. # - ? 5DPRINT ?
  518. #
  519. [env:at90usb1286_dfu]
  520. platform = teensy
  521. extends = env:at90usb1286_cdc
  522. #################################
  523. # #
  524. # DUE Architecture #
  525. # #
  526. #################################
  527. #
  528. # Due (Atmel SAM3X8E ARM Cortex-M3)
  529. #
  530. # - RAMPS4DUE
  531. # - RADDS
  532. #
  533. [env:DUE]
  534. platform = atmelsam
  535. board = due
  536. src_filter = ${common.default_src_filter} +<src/HAL/DUE>
  537. [env:DUE_USB]
  538. platform = atmelsam
  539. extends = env:DUE
  540. board = dueUSB
  541. [env:DUE_debug]
  542. # Used when WATCHDOG_RESET_MANUAL is enabled
  543. platform = atmelsam
  544. extends = env:DUE
  545. build_flags = ${common.build_flags}
  546. -funwind-tables
  547. -mpoke-function-name
  548. #
  549. # Archim SAM
  550. #
  551. [common_DUE_archim]
  552. platform = atmelsam
  553. extends = env:DUE
  554. board = archim
  555. build_flags = ${common.build_flags}
  556. -DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
  557. board_build.variants_dir = buildroot/share/PlatformIO/variants/
  558. extra_scripts = ${common.extra_scripts}
  559. Marlin/src/HAL/DUE/upload_extra_script.py
  560. [env:DUE_archim]
  561. platform = ${common_DUE_archim.platform}
  562. extends = common_DUE_archim
  563. # Used when WATCHDOG_RESET_MANUAL is enabled
  564. [env:DUE_archim_debug]
  565. platform = ${common_DUE_archim.platform}
  566. extends = common_DUE_archim
  567. build_flags = ${common_DUE_archim.build_flags} -funwind-tables -mpoke-function-name
  568. #################################
  569. # #
  570. # SAMD51 Architecture #
  571. # #
  572. #################################
  573. #
  574. # Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
  575. #
  576. [env:SAMD51_grandcentral_m4]
  577. platform = atmelsam
  578. board = adafruit_grandcentral_m4
  579. build_flags = ${common.build_flags} -std=gnu++17
  580. build_unflags = -std=gnu++11
  581. src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
  582. lib_deps = ${common.lib_deps}
  583. SoftwareSerialM
  584. Adafruit SPIFlash
  585. custom_marlin.SDSUPPORT = SdFat - Adafruit Fork
  586. debug_tool = jlink
  587. #################################
  588. # #
  589. # LPC176x Architecture #
  590. # #
  591. #################################
  592. #
  593. # NXP LPC176x ARM Cortex-M3
  594. #
  595. [common_LPC]
  596. platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
  597. platform_packages = framework-arduino-lpc176x@^0.2.5
  598. board = nxp_lpc1768
  599. lib_ldf_mode = off
  600. lib_compat_mode = strict
  601. extra_scripts = ${common.extra_scripts}
  602. Marlin/src/HAL/LPC1768/upload_extra_script.py
  603. src_filter = ${common.default_src_filter} +<src/HAL/LPC1768>
  604. lib_deps = ${common.lib_deps}
  605. Servo
  606. custom_marlin.USES_LIQUIDCRYSTAL = LiquidCrystal@1.0.0
  607. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
  608. build_flags = ${common.build_flags} -DU8G_HAL_LINKS -IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
  609. # debug options for backtrace
  610. #-funwind-tables
  611. #-mpoke-function-name
  612. #
  613. # NXP LPC176x ARM Cortex-M3
  614. #
  615. [env:LPC1768]
  616. platform = ${common_LPC.platform}
  617. extends = common_LPC
  618. board = nxp_lpc1768
  619. [env:LPC1769]
  620. platform = ${common_LPC.platform}
  621. extends = common_LPC
  622. board = nxp_lpc1769
  623. #################################
  624. # #
  625. # STM32 Architecture #
  626. # #
  627. #################################
  628. #
  629. # HAL/STM32 Base Environment values
  630. #
  631. [common_stm32]
  632. platform = ststm32@~8.0
  633. build_flags = ${common.build_flags}
  634. -std=gnu++14
  635. -DUSBCON -DUSBD_USE_CDC
  636. -DTIM_IRQ_PRIO=13
  637. build_unflags = -std=gnu++11
  638. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  639. #
  640. # HAL/STM32F1 Common Environment values
  641. #
  642. [common_stm32f1]
  643. platform = ststm32@~6.1
  644. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  645. ${common.build_flags} -std=gnu++14 -DHAVE_SW_SERIAL
  646. build_unflags = -std=gnu11 -std=gnu++11
  647. src_filter = ${common.default_src_filter} +<src/HAL/STM32F1>
  648. lib_ignore = SPI
  649. lib_deps = ${common.lib_deps}
  650. SoftwareSerialM
  651. #
  652. # STM32F103RC
  653. #
  654. [env:STM32F103RC]
  655. platform = ${common_stm32f1.platform}
  656. extends = common_stm32f1
  657. board = genericSTM32F103RC
  658. platform_packages = tool-stm32duino
  659. monitor_speed = 115200
  660. #
  661. # MEEB_3DP (STM32F103RCT6 with 512K)
  662. #
  663. [env:STM32F103RC_meeb]
  664. platform = ${common_stm32f1.platform}
  665. extends = common_stm32f1
  666. board = MEEB_3DP
  667. platform_packages = tool-stm32duino
  668. build_flags = ${common_stm32f1.build_flags}
  669. -DDEBUG_LEVEL=0
  670. -DSS_TIMER=4
  671. -DSTM32_FLASH_SIZE=512
  672. -DHSE_VALUE=12000000U
  673. -DUSE_USB_COMPOSITE
  674. -DVECT_TAB_OFFSET=0x2000
  675. -DGENERIC_BOOTLOADER
  676. extra_scripts = ${common.extra_scripts}
  677. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  678. buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
  679. lib_deps = ${common.lib_deps}
  680. SoftwareSerialM
  681. USBComposite for STM32F1@0.91
  682. custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
  683. debug_tool = stlink
  684. upload_protocol = dfu
  685. #
  686. # STM32F103RC_fysetc
  687. #
  688. [env:STM32F103RC_fysetc]
  689. platform = ${common_stm32f1.platform}
  690. extends = env:STM32F103RC
  691. extra_scripts = ${common.extra_scripts}
  692. buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
  693. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0
  694. lib_ldf_mode = chain
  695. debug_tool = stlink
  696. upload_protocol = serial
  697. #
  698. # BigTree SKR Mini V1.1 / SKR mini E3 / SKR E3 DIP (STM32F103RCT6 ARM Cortex-M3)
  699. #
  700. # STM32F103RC_btt ............. RCT6 with 256K
  701. # STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
  702. # STM32F103RC_btt_512K ........ RCT6 with 512K
  703. # STM32F103RC_btt_512K_USB .... RCT6 with 512K (USB mass storage)
  704. #
  705. # WARNING! If you have an SKR Mini v1.1 or an SKR Mini E3 1.0 / 1.2 / 2.0 / DIP
  706. # and experience a printer freeze, re-flash Marlin using the regular (non-512K)
  707. # build option. 256K chips may be re-branded 512K chips, but this means the
  708. # upper 256K is sketchy, and failure is very likely.
  709. #
  710. [env:STM32F103RC_btt]
  711. platform = ${common_stm32f1.platform}
  712. extends = env:STM32F103RC
  713. extra_scripts = ${common.extra_scripts}
  714. buildroot/share/PlatformIO/scripts/STM32F103RC_SKR_MINI.py
  715. build_flags = ${common_stm32f1.build_flags}
  716. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  717. monitor_speed = 115200
  718. [env:STM32F103RC_btt_USB]
  719. platform = ${common_stm32f1.platform}
  720. extends = env:STM32F103RC_btt
  721. build_flags = ${env:STM32F103RC_btt.build_flags} -DUSE_USB_COMPOSITE
  722. lib_deps = ${env:STM32F103RC_btt.lib_deps}
  723. USBComposite for STM32F1@0.91
  724. [env:STM32F103RC_btt_512K]
  725. platform = ${common_stm32f1.platform}
  726. extends = env:STM32F103RC_btt
  727. board_upload.maximum_size=524288
  728. build_flags = ${env:STM32F103RC_btt.build_flags} -DSTM32_FLASH_SIZE=512
  729. [env:STM32F103RC_btt_512K_USB]
  730. platform = ${common_stm32f1.platform}
  731. extends = env:STM32F103RC_btt_512K
  732. build_flags = ${env:STM32F103RC_btt_512K.build_flags} -DUSE_USB_COMPOSITE
  733. lib_deps = ${env:STM32F103RC_btt_512K.lib_deps}
  734. USBComposite for STM32F1@0.91
  735. #
  736. # STM32F103RE
  737. #
  738. [env:STM32F103RE]
  739. platform = ${common_stm32f1.platform}
  740. extends = common_stm32f1
  741. board = genericSTM32F103RE
  742. platform_packages = tool-stm32duino
  743. monitor_speed = 115200
  744. #
  745. # STM32F103RE_btt ............. RET6
  746. # STM32F103RE_btt_USB ......... RET6 (USB mass storage)
  747. #
  748. [env:STM32F103RE_btt]
  749. platform = ${common_stm32f1.platform}
  750. extends = env:STM32F103RE
  751. extra_scripts = ${common.extra_scripts}
  752. buildroot/share/PlatformIO/scripts/STM32F103RE_SKR_E3_DIP.py
  753. build_flags = ${common_stm32f1.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
  754. debug_tool = stlink
  755. upload_protocol = stlink
  756. [env:STM32F103RE_btt_USB]
  757. platform = ${common_stm32f1.platform}
  758. extends = env:STM32F103RE_btt
  759. build_flags = ${env:STM32F103RE_btt.build_flags} -DUSE_USB_COMPOSITE
  760. lib_deps = ${common_stm32f1.lib_deps}
  761. USBComposite for STM32F1@0.91
  762. #
  763. # STM32F4 with STM32GENERIC
  764. #
  765. [env:STM32F4]
  766. platform = ${common_stm32.platform}
  767. board = disco_f407vg
  768. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F4 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  769. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F7>
  770. #
  771. # STM32F7 with STM32GENERIC
  772. #
  773. [env:STM32F7]
  774. platform = ${common_stm32.platform}
  775. board = remram_v1
  776. build_flags = ${common.build_flags} -DUSE_STM32GENERIC -DSTM32GENERIC -DSTM32F7 -DMENU_USB_SERIAL -DMENU_SERIAL=SerialUSB -DHAL_IWDG_MODULE_ENABLED
  777. src_filter = ${common.default_src_filter} +<src/HAL/STM32_F4_F7> -<src/HAL/STM32_F4_F7/STM32F4>
  778. #
  779. # ARMED (STM32)
  780. #
  781. [env:ARMED]
  782. platform = ${common_stm32.platform}
  783. extends = common_stm32
  784. board = armed_v1
  785. build_flags = ${common_stm32.build_flags}
  786. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  787. #
  788. # Geeetech GTM32 (STM32F103VET6)
  789. #
  790. [env:STM32F103VE_GTM32]
  791. platform = ${common_stm32f1.platform}
  792. extends = common_stm32f1
  793. board = genericSTM32F103VE
  794. build_flags = ${common_stm32f1.build_flags}
  795. -ffunction-sections -fdata-sections -nostdlib -MMD
  796. -DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
  797. -DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
  798. -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  799. upload_protocol = serial
  800. #
  801. # Longer 3D board in Alfawise U20 (STM32F103VET6)
  802. #
  803. [env:STM32F103VE_longer]
  804. platform = ${common_stm32f1.platform}
  805. extends = common_stm32f1
  806. board = genericSTM32F103VE
  807. extra_scripts = ${common.extra_scripts}
  808. buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py
  809. build_flags = ${common_stm32f1.build_flags}
  810. -DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
  811. build_unflags = ${common_stm32f1.build_unflags}
  812. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  813. lib_ignore = ${common_stm32f1.lib_ignore}
  814. #
  815. # MKS Robin Mini (STM32F103VET6)
  816. #
  817. [env:mks_robin_mini]
  818. platform = ${common_stm32f1.platform}
  819. extends = common_stm32f1
  820. board = genericSTM32F103VE
  821. extra_scripts = ${common.extra_scripts}
  822. buildroot/share/PlatformIO/scripts/mks_robin_mini.py
  823. build_flags = ${common_stm32f1.build_flags}
  824. -DMCU_STM32F103VE
  825. #
  826. # MKS Robin Nano (STM32F103VET6)
  827. # v1.2 - Emulated Graphical 128x64 (DOGM) UI and LVGL UI
  828. # v2.0 - LVGL UI
  829. #
  830. [env:mks_robin_nano35]
  831. platform = ${common_stm32f1.platform}
  832. extends = common_stm32f1
  833. board = genericSTM32F103VE
  834. platform_packages = tool-stm32duino
  835. extra_scripts = ${common.extra_scripts}
  836. buildroot/share/PlatformIO/scripts/mks_robin_nano35.py
  837. build_flags = ${common_stm32f1.build_flags}
  838. -DMCU_STM32F103VE -DSS_TIMER=4
  839. debug_tool = jlink
  840. upload_protocol = jlink
  841. #
  842. # MKS Robin (STM32F103ZET6)
  843. #
  844. [env:mks_robin]
  845. platform = ${common_stm32f1.platform}
  846. extends = common_stm32f1
  847. board = genericSTM32F103ZE
  848. extra_scripts = ${common.extra_scripts}
  849. buildroot/share/PlatformIO/scripts/mks_robin.py
  850. build_flags = ${common_stm32f1.build_flags}
  851. -DSS_TIMER=4 -DSTM32_XL_DENSITY
  852. # MKS Robin (STM32F103ZET6)
  853. # Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
  854. #
  855. [env:mks_robin_stm32]
  856. platform = ${common_stm32.platform}
  857. extends = common_stm32
  858. board = genericSTM32F103ZE
  859. board_build.core = stm32
  860. board_build.variant = MARLIN_F103Zx
  861. board_build.ldscript = ldscript.ld
  862. board_build.offset = 0x7000
  863. board_build.firmware = Robin.bin
  864. build_flags = ${common_stm32.build_flags}
  865. -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
  866. build_unflags = ${common_stm32.build_unflags}
  867. -DUSBCON -DUSBD_USE_CDC
  868. extra_scripts = ${common.extra_scripts}
  869. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  870. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  871. buildroot/share/PlatformIO/scripts/mks_encrypt.py
  872. lib_deps =
  873. #
  874. # MKS Robin Pro (STM32F103ZET6)
  875. #
  876. [env:mks_robin_pro]
  877. platform = ${common_stm32f1.platform}
  878. extends = env:mks_robin
  879. extra_scripts = ${common.extra_scripts}
  880. buildroot/share/PlatformIO/scripts/mks_robin_pro.py
  881. #
  882. # TRIGORILLA PRO (STM32F103ZET6)
  883. #
  884. [env:trigorilla_pro]
  885. platform = ${common_stm32f1.platform}
  886. extends = env:mks_robin
  887. extra_scripts = ${common.extra_scripts}
  888. #
  889. # MKS Robin E3D (STM32F103RCT6) and
  890. # MKS Robin E3 with TMC2209
  891. #
  892. [env:mks_robin_e3]
  893. platform = ${common_stm32f1.platform}
  894. extends = common_stm32f1
  895. board = genericSTM32F103RC
  896. platform_packages = tool-stm32duino
  897. extra_scripts = ${common.extra_scripts}
  898. buildroot/share/PlatformIO/scripts/mks_robin_e3.py
  899. build_flags = ${common_stm32f1.build_flags}
  900. -DDEBUG_LEVEL=0 -DSS_TIMER=4
  901. #
  902. # MKS Robin E3p (STM32F103VET6)
  903. # - LVGL UI
  904. #
  905. [env:mks_robin_e3p]
  906. platform = ${common_stm32f1.platform}
  907. extends = common_stm32f1
  908. board = genericSTM32F103VE
  909. platform_packages = tool-stm32duino
  910. extra_scripts = ${common.extra_scripts}
  911. buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
  912. build_flags = ${common_stm32f1.build_flags}
  913. -DMCU_STM32F103VE -DSS_TIMER=4
  914. debug_tool = jlink
  915. upload_protocol = jlink
  916. #
  917. # MKS Robin Lite/Lite2 (STM32F103RCT6)
  918. #
  919. [env:mks_robin_lite]
  920. platform = ${common_stm32f1.platform}
  921. extends = common_stm32f1
  922. board = genericSTM32F103RC
  923. extra_scripts = ${common.extra_scripts}
  924. buildroot/share/PlatformIO/scripts/mks_robin_lite.py
  925. #
  926. # MKS ROBIN LITE3 (STM32F103RCT6)
  927. #
  928. [env:mks_robin_lite3]
  929. platform = ${common_stm32f1.platform}
  930. extends = common_stm32f1
  931. board = genericSTM32F103RC
  932. extra_scripts = ${common.extra_scripts}
  933. buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
  934. #
  935. # JGAurora A5S A1 (STM32F103ZET6)
  936. #
  937. [env:jgaurora_a5s_a1]
  938. platform = ${common_stm32f1.platform}
  939. extends = common_stm32f1
  940. board = genericSTM32F103ZE
  941. extra_scripts = ${common.extra_scripts}
  942. buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
  943. build_flags = ${common_stm32f1.build_flags}
  944. -DSTM32F1xx -DSTM32_XL_DENSITY
  945. #
  946. # Malyan M200 (STM32F103CB)
  947. #
  948. [env:STM32F103CB_malyan]
  949. platform = ${common_stm32f1.platform}
  950. extends = common_stm32f1
  951. board = malyanM200
  952. build_flags = ${common_stm32f1.build_flags}
  953. -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
  954. -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
  955. lib_ignore = ${common_stm32f1.lib_ignore}
  956. SoftwareSerialM
  957. #
  958. # Malyan M200 v2 (STM32F070RB)
  959. #
  960. [env:STM32F070RB_malyan]
  961. platform = ${common_stm32.platform}
  962. extends = common_stm32
  963. board = malyanM200v2
  964. build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
  965. -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
  966. -DCUSTOM_STARTUP_FILE
  967. #
  968. # Malyan M200 v2 (STM32F070CB)
  969. #
  970. [env:STM32F070CB_malyan]
  971. platform = ${common_stm32.platform}
  972. extends = common_stm32
  973. board = malyanm200_f070cb
  974. build_flags = ${common_stm32.build_flags}
  975. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
  976. #
  977. # Malyan M300 (STM32F070CB)
  978. #
  979. [env:malyan_M300]
  980. platform = ${common_stm32.platform}
  981. extends = common_stm32
  982. board = malyanm300_f070cb
  983. build_flags = ${common_stm32.build_flags}
  984. -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
  985. src_filter = ${common.default_src_filter} +<src/HAL/STM32>
  986. #
  987. # Chitu boards like Tronxy X5s (STM32F103ZET6)
  988. #
  989. [env:chitu_f103]
  990. platform = ${common_stm32f1.platform}
  991. extends = common_stm32f1
  992. board = CHITU_F103
  993. extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  994. pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
  995. buildroot/share/PlatformIO/scripts/chitu_crypt.py
  996. build_flags = ${common_stm32f1.build_flags}
  997. -DSTM32F1xx -DSTM32_XL_DENSITY
  998. build_unflags = ${common_stm32f1.build_unflags}
  999. -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
  1000. #
  1001. # Some Chitu V5 boards have a problem with GPIO init.
  1002. # Use this target if G28 or G29 are always failing.
  1003. #
  1004. [env:chitu_v5_gpio_init]
  1005. platform = ${common_stm32f1.platform}
  1006. extends = env:chitu_f103
  1007. build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
  1008. #
  1009. # Creality (STM32F103RET6)
  1010. #
  1011. [env:STM32F103RET6_creality]
  1012. platform = ${common_stm32f1.platform}
  1013. extends = common_stm32f1
  1014. board = genericSTM32F103RE
  1015. build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
  1016. ${common.build_flags} -std=gnu++14 -DSTM32_XL_DENSITY -DTEMP_TIMER_CHAN=4
  1017. extra_scripts = ${common.extra_scripts}
  1018. pre:buildroot/share/PlatformIO/scripts/random-bin.py
  1019. buildroot/share/PlatformIO/scripts/creality.py
  1020. lib_ignore = ${common_stm32f1.lib_ignore}
  1021. debug_tool = jlink
  1022. upload_protocol = jlink
  1023. monitor_speed = 115200
  1024. #
  1025. # STM32F401VE
  1026. # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
  1027. #
  1028. [env:STM32F401VE_STEVAL]
  1029. platform = ${common_stm32.platform}
  1030. extends = common_stm32
  1031. board = STEVAL_STM32F401VE
  1032. build_flags = ${common_stm32.build_flags}
  1033. -DARDUINO_STEVAL -DSTM32F401xE
  1034. -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  1035. extra_scripts = ${common.extra_scripts}
  1036. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1037. buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
  1038. #
  1039. # FLYF407ZG
  1040. #
  1041. [env:FLYF407ZG]
  1042. platform = ${common_stm32.platform}
  1043. extends = common_stm32
  1044. board = FLYF407ZG
  1045. build_flags = ${common_stm32.build_flags}
  1046. -DVECT_TAB_OFFSET=0x8000
  1047. extra_scripts = ${common.extra_scripts}
  1048. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1049. #
  1050. # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
  1051. #
  1052. [env:FYSETC_S6]
  1053. platform = ${common_stm32.platform}
  1054. extends = common_stm32
  1055. platform_packages = tool-stm32duino
  1056. board = marlin_fysetc_s6
  1057. build_flags = ${common_stm32.build_flags}
  1058. -DVECT_TAB_OFFSET=0x10000
  1059. -DHAL_PCD_MODULE_ENABLED
  1060. extra_scripts = ${common.extra_scripts}
  1061. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1062. debug_tool = stlink
  1063. upload_protocol = dfu
  1064. upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
  1065. #
  1066. # STM32F407VET6 with RAMPS-like shield
  1067. # 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
  1068. # Shield - https://github.com/jmz52/Hardware
  1069. #
  1070. [env:STM32F407VE_black]
  1071. platform = ${common_stm32.platform}
  1072. extends = common_stm32
  1073. board = blackSTM32F407VET6
  1074. build_flags = ${common_stm32.build_flags}
  1075. -DARDUINO_BLACK_F407VE
  1076. -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
  1077. extra_scripts = ${common.extra_scripts}
  1078. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1079. #
  1080. # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
  1081. #
  1082. [env:BIGTREE_SKR_PRO]
  1083. platform = ${common_stm32.platform}
  1084. extends = common_stm32
  1085. board = BigTree_SKR_Pro
  1086. build_flags = ${common_stm32.build_flags}
  1087. -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
  1088. extra_scripts = ${common.extra_scripts}
  1089. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1090. #upload_protocol = stlink
  1091. #upload_command = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
  1092. debug_tool = stlink
  1093. debug_init_break =
  1094. #
  1095. # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
  1096. #
  1097. [env:BIGTREE_GTR_V1_0]
  1098. platform = ${common_stm32.platform}
  1099. extends = common_stm32
  1100. board = BigTree_GTR_v1
  1101. extra_scripts = ${common.extra_scripts}
  1102. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1103. build_flags = ${common_stm32.build_flags}
  1104. -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
  1105. #
  1106. # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
  1107. #
  1108. [env:BIGTREE_BTT002]
  1109. platform = ${common_stm32.platform}
  1110. extends = common_stm32
  1111. board = BigTree_Btt002
  1112. build_flags = ${common_stm32.build_flags}
  1113. -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
  1114. -DHAVE_HWSERIAL2
  1115. -DHAVE_HWSERIAL3
  1116. -DPIN_SERIAL2_RX=PD_6
  1117. -DPIN_SERIAL2_TX=PD_5
  1118. extra_scripts = ${common.extra_scripts}
  1119. pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
  1120. #
  1121. # Lerdge base
  1122. #
  1123. [lerdge_common]
  1124. platform = ${common_stm32.platform}
  1125. extends = common_stm32
  1126. board = LERDGE
  1127. board_build.offset = 0x10000
  1128. extra_scripts = ${common.extra_scripts}
  1129. pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
  1130. buildroot/share/PlatformIO/scripts/stm32_bootloader.py
  1131. buildroot/share/PlatformIO/scripts/lerdge.py
  1132. build_flags = ${common_stm32.build_flags}
  1133. -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
  1134. -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
  1135. -DTRANSFER_CLOCK_DIV=8 -DHAL_SRAM_MODULE_ENABLED
  1136. build_unflags = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
  1137. #
  1138. # Lerdge X
  1139. #
  1140. [env:LERDGEX]
  1141. extends = lerdge_common
  1142. board_build.firmware = Lerdge_X_firmware_force.bin
  1143. #
  1144. # Lerdge S
  1145. #
  1146. [env:LERDGES]
  1147. extends = lerdge_common
  1148. board_build.firmware = Lerdge_firmware_force.bin
  1149. #
  1150. # Lerdge K
  1151. #
  1152. [env:LERDGEK]
  1153. extends = lerdge_common
  1154. board_build.firmware = Lerdge_K_firmware_force.bin
  1155. build_flags = ${lerdge_common.build_flags}
  1156. -DLERDGEK
  1157. #
  1158. # RUMBA32
  1159. #
  1160. [env:rumba32]
  1161. platform = ${common_stm32.platform}
  1162. extends = common_stm32
  1163. build_flags = ${common_stm32.build_flags}
  1164. -Os
  1165. -DHAL_PCD_MODULE_ENABLED
  1166. -DDISABLE_GENERIC_SERIALUSB
  1167. -DHAL_UART_MODULE_ENABLED
  1168. -DTIMER_SERIAL=TIM9
  1169. board = rumba32_f446ve
  1170. upload_protocol = dfu
  1171. monitor_speed = 500000
  1172. #################################
  1173. # #
  1174. # Other Architectures #
  1175. # #
  1176. #################################
  1177. #
  1178. # Espressif ESP32
  1179. #
  1180. [env:esp32]
  1181. platform = espressif32@1.11.2
  1182. board = esp32dev
  1183. build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
  1184. src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
  1185. upload_speed = 115200
  1186. #upload_port = marlinesp.local
  1187. #board_build.flash_mode = qio
  1188. #
  1189. # Teensy 3.1 / 3.2 (ARM Cortex-M4)
  1190. #
  1191. [env:teensy31]
  1192. platform = teensy
  1193. board = teensy31
  1194. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
  1195. #
  1196. # Teensy 3.5 / 3.6 (ARM Cortex-M4)
  1197. #
  1198. [env:teensy35]
  1199. platform = teensy
  1200. board = teensy35
  1201. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  1202. [env:teensy36]
  1203. platform = teensy
  1204. board = teensy36
  1205. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
  1206. #
  1207. # Teensy 4.0 / 4.1 (ARM Cortex-M7)
  1208. #
  1209. [env:teensy41]
  1210. platform = teensy
  1211. board = teensy41
  1212. src_filter = ${common.default_src_filter} +<src/HAL/TEENSY40_41>
  1213. #
  1214. # Native
  1215. # No supported Arduino libraries, base Marlin only
  1216. #
  1217. [env:linux_native]
  1218. platform = native
  1219. framework =
  1220. build_flags = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
  1221. src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
  1222. build_unflags = -Wall
  1223. lib_ldf_mode = off
  1224. lib_deps =
  1225. src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
  1226. #
  1227. # Just print the dependency tree
  1228. #
  1229. [env:include_tree]
  1230. platform = atmelavr
  1231. board = megaatmega2560
  1232. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  1233. src_filter = +<src/MarlinCore.cpp>