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

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