My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

platformio.ini 55KB

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