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 45KB

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