My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

platformio.ini 51KB

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