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

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