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

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