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

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