My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

platformio.ini 46KB

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