My Marlin configs for Fabrikator Mini and CTC i3 Pro B
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

platformio.ini 53KB

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