platformio.ini 50 KB

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