My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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