My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

platformio.ini 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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. extra_configs =
  21. ini/avr.ini
  22. ini/due.ini
  23. ini/esp32.ini
  24. ini/features.ini
  25. ini/lpc176x.ini
  26. ini/native.ini
  27. ini/samd51.ini
  28. ini/stm32f0.ini
  29. ini/stm32f1.ini
  30. ini/stm32f4.ini
  31. ini/stm32f7.ini
  32. ini/teensy.ini
  33. #
  34. # The 'common' values are used for most Marlin builds
  35. #
  36. [common]
  37. default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
  38. -<src/lcd/HD44780> -<src/lcd/TFTGLCD> -<src/lcd/dwin> -<src/lcd/dogm> -<src/lcd/tft> -<src/lcd/tft_io>
  39. -<src/HAL/STM32/tft> -<src/HAL/STM32F1/tft>
  40. -<src/lcd/menu>
  41. -<src/lcd/menu/game/game.cpp> -<src/lcd/menu/game/brickout.cpp> -<src/lcd/menu/game/invaders.cpp>
  42. -<src/lcd/menu/game/maze.cpp> -<src/lcd/menu/game/snake.cpp>
  43. -<src/lcd/menu/menu_backlash.cpp>
  44. -<src/lcd/menu/menu_bed_corners.cpp>
  45. -<src/lcd/menu/menu_bed_leveling.cpp>
  46. -<src/lcd/menu/menu_cancelobject.cpp>
  47. -<src/lcd/menu/menu_delta_calibrate.cpp>
  48. -<src/lcd/menu/menu_filament.cpp>
  49. -<src/lcd/menu/menu_info.cpp>
  50. -<src/lcd/menu/menu_job_recovery.cpp>
  51. -<src/lcd/menu/menu_language.cpp>
  52. -<src/lcd/menu/menu_led.cpp>
  53. -<src/lcd/menu/menu_media.cpp>
  54. -<src/lcd/menu/menu_mmu2.cpp>
  55. -<src/lcd/menu/menu_password.cpp>
  56. -<src/lcd/menu/menu_power_monitor.cpp>
  57. -<src/lcd/menu/menu_spindle_laser.cpp>
  58. -<src/lcd/menu/menu_temperature.cpp>
  59. -<src/lcd/menu/menu_tmc.cpp>
  60. -<src/lcd/menu/menu_touch_screen.cpp>
  61. -<src/lcd/menu/menu_tramming.cpp>
  62. -<src/lcd/menu/menu_ubl.cpp>
  63. -<src/lcd/extui/lib/mks_ui>
  64. -<src/lcd/extui/lib/dgus> -<src/lcd/extui/dgus_lcd.cpp>
  65. -<src/lcd/extui/lib/dgus/fysetc> -<src/lcd/extui/lib/dgus/hiprecy> -<src/lcd/extui/lib/dgus/mks> -<src/lcd/extui/lib/dgus/origin>
  66. -<src/lcd/extui/example.cpp>
  67. -<src/lcd/extui/malyan_lcd.cpp>
  68. -<src/lcd/extui/lib/ftdi_eve_touch_ui>
  69. -<src/lcd/extui/anycubic_chiron_lcd.cpp> -<src/lcd/extui/lib/anycubic_chiron>
  70. -<src/lcd/extui/anycubic_i3mega_lcd.cpp> -<src/lcd/extui/lib/anycubic_i3mega>
  71. -<src/lcd/extui/nextion_lcd.cpp> -<src/lcd/extui/lib/nextion>
  72. -<src/lcd/lcdprint.cpp>
  73. -<src/lcd/touch/touch_buttons.cpp>
  74. -<src/sd/usb_flashdrive/lib-uhs2> -<src/sd/usb_flashdrive/lib-uhs3>
  75. -<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
  76. -<src/sd/cardreader.cpp> -<src/sd/Sd2Card.cpp> -<src/sd/SdBaseFile.cpp> -<src/sd/SdFatUtil.cpp> -<src/sd/SdFile.cpp> -<src/sd/SdVolume.cpp> -<src/gcode/sd>
  77. -<src/HAL/shared/backtrace>
  78. -<src/HAL/shared/cpu_exception>
  79. -<src/HAL/shared/eeprom_if_i2c.cpp>
  80. -<src/HAL/shared/eeprom_if_spi.cpp>
  81. -<src/feature/babystep.cpp>
  82. -<src/feature/backlash.cpp>
  83. -<src/feature/baricuda.cpp> -<src/gcode/feature/baricuda>
  84. -<src/feature/bedlevel/abl> -<src/gcode/bedlevel/abl>
  85. -<src/feature/bedlevel/mbl> -<src/gcode/bedlevel/mbl>
  86. -<src/feature/bedlevel/ubl> -<src/gcode/bedlevel/ubl>
  87. -<src/feature/bedlevel/hilbert_curve.cpp>
  88. -<src/feature/binary_stream.cpp> -<src/libs/heatshrink>
  89. -<src/feature/bltouch.cpp>
  90. -<src/feature/cancel_object.cpp> -<src/gcode/feature/cancel>
  91. -<src/feature/caselight.cpp> -<src/gcode/feature/caselight>
  92. -<src/feature/closedloop.cpp>
  93. -<src/feature/controllerfan.cpp> -<src/gcode/feature/controllerfan>
  94. -<src/feature/cooler.cpp> -<src/gcode/temp/M143_M193.cpp>
  95. -<src/feature/dac> -<src/feature/digipot>
  96. -<src/feature/direct_stepping.cpp> -<src/gcode/motion/G6.cpp>
  97. -<src/feature/e_parser.cpp>
  98. -<src/feature/encoder_i2c.cpp>
  99. -<src/feature/ethernet.cpp> -<src/gcode/feature/network/M552-M554.cpp>
  100. -<src/feature/fanmux.cpp>
  101. -<src/feature/filwidth.cpp> -<src/gcode/feature/filwidth>
  102. -<src/feature/fwretract.cpp> -<src/gcode/feature/fwretract>
  103. -<src/feature/host_actions.cpp>
  104. -<src/feature/hotend_idle.cpp>
  105. -<src/feature/joystick.cpp>
  106. -<src/feature/leds/blinkm.cpp>
  107. -<src/feature/leds/leds.cpp>
  108. -<src/feature/leds/neopixel.cpp>
  109. -<src/feature/leds/pca9533.cpp>
  110. -<src/feature/leds/pca9632.cpp>
  111. -<src/feature/leds/printer_event_leds.cpp>
  112. -<src/feature/leds/tempstat.cpp>
  113. -<src/feature/max7219.cpp>
  114. -<src/feature/meatpack.cpp>
  115. -<src/feature/mixing.cpp>
  116. -<src/feature/mmu/mmu.cpp>
  117. -<src/feature/mmu/mmu2.cpp> -<src/gcode/feature/prusa_MMU2>
  118. -<src/feature/password> -<src/gcode/feature/password>
  119. -<src/feature/pause.cpp>
  120. -<src/feature/power.cpp>
  121. -<src/feature/power_monitor.cpp> -<src/gcode/feature/power_monitor>
  122. -<src/feature/powerloss.cpp> -<src/gcode/feature/powerloss>
  123. -<src/feature/probe_temp_comp.cpp>
  124. -<src/feature/repeat.cpp>
  125. -<src/feature/runout.cpp> -<src/gcode/feature/runout>
  126. -<src/feature/snmm.cpp>
  127. -<src/feature/solenoid.cpp> -<src/gcode/control/M380_M381.cpp>
  128. -<src/feature/spindle_laser.cpp> -<src/gcode/control/M3-M5.cpp>
  129. -<src/feature/tmc_util.cpp> -<src/module/stepper/trinamic.cpp>
  130. -<src/feature/tramming.cpp>
  131. -<src/feature/twibus.cpp>
  132. -<src/feature/z_stepper_align.cpp>
  133. -<src/gcode/bedlevel/G26.cpp>
  134. -<src/gcode/bedlevel/G35.cpp>
  135. -<src/gcode/bedlevel/G42.cpp>
  136. -<src/gcode/bedlevel/M420.cpp> -<src/feature/bedlevel/bedlevel.cpp>
  137. -<src/gcode/calibrate/G33.cpp>
  138. -<src/gcode/calibrate/G34.cpp>
  139. -<src/gcode/calibrate/G34_M422.cpp>
  140. -<src/gcode/calibrate/G76_M192_M871.cpp>
  141. -<src/gcode/calibrate/G425.cpp>
  142. -<src/gcode/calibrate/M12.cpp>
  143. -<src/gcode/calibrate/M48.cpp>
  144. -<src/gcode/calibrate/M100.cpp>
  145. -<src/gcode/calibrate/M425.cpp>
  146. -<src/gcode/calibrate/M666.cpp>
  147. -<src/gcode/calibrate/M852.cpp>
  148. -<src/gcode/control/M42.cpp> -<src/gcode/control/M226.cpp>
  149. -<src/gcode/config/M43.cpp>
  150. -<src/gcode/config/M217.cpp>
  151. -<src/gcode/config/M218.cpp>
  152. -<src/gcode/config/M221.cpp>
  153. -<src/gcode/config/M281.cpp>
  154. -<src/gcode/config/M301.cpp>
  155. -<src/gcode/config/M302.cpp>
  156. -<src/gcode/config/M304.cpp>
  157. -<src/gcode/config/M305.cpp>
  158. -<src/gcode/config/M540.cpp>
  159. -<src/gcode/config/M575.cpp>
  160. -<src/gcode/config/M672.cpp>
  161. -<src/gcode/control/M7-M9.cpp>
  162. -<src/gcode/control/M211.cpp>
  163. -<src/gcode/control/M350_M351.cpp>
  164. -<src/gcode/control/M605.cpp>
  165. -<src/gcode/feature/advance>
  166. -<src/gcode/feature/camera>
  167. -<src/gcode/feature/i2c>
  168. -<src/gcode/feature/L6470>
  169. -<src/gcode/feature/leds/M150.cpp>
  170. -<src/gcode/feature/leds/M7219.cpp>
  171. -<src/gcode/feature/macro>
  172. -<src/gcode/feature/mixing/M163-M165.cpp>
  173. -<src/gcode/feature/mixing/M166.cpp>
  174. -<src/gcode/feature/pause/G27.cpp>
  175. -<src/gcode/feature/pause/G60.cpp>
  176. -<src/gcode/feature/pause/G61.cpp>
  177. -<src/gcode/feature/pause/M125.cpp>
  178. -<src/gcode/feature/pause/M600.cpp>
  179. -<src/gcode/feature/pause/M603.cpp>
  180. -<src/gcode/feature/pause/M701_M702.cpp>
  181. -<src/gcode/feature/trinamic/M122.cpp>
  182. -<src/gcode/feature/trinamic/M569.cpp>
  183. -<src/gcode/feature/trinamic/M906.cpp>
  184. -<src/gcode/feature/trinamic/M911-M914.cpp>
  185. -<src/gcode/geometry/G17-G19.cpp>
  186. -<src/gcode/geometry/G53-G59.cpp>
  187. -<src/gcode/geometry/M206_M428.cpp>
  188. -<src/gcode/host/M16.cpp>
  189. -<src/gcode/host/M113.cpp>
  190. -<src/gcode/host/M360.cpp>
  191. -<src/gcode/host/M876.cpp>
  192. -<src/gcode/lcd/M0_M1.cpp>
  193. -<src/gcode/lcd/M250.cpp>
  194. -<src/gcode/lcd/M73.cpp>
  195. -<src/gcode/lcd/M995.cpp>
  196. -<src/gcode/motion/G2_G3.cpp>
  197. -<src/gcode/motion/G5.cpp>
  198. -<src/gcode/motion/G80.cpp>
  199. -<src/gcode/motion/M290.cpp>
  200. -<src/gcode/probe/G30.cpp>
  201. -<src/gcode/probe/G31_G32.cpp>
  202. -<src/gcode/probe/G38.cpp>
  203. -<src/gcode/probe/M401_M402.cpp>
  204. -<src/gcode/probe/M851.cpp>
  205. -<src/gcode/probe/M951.cpp>
  206. -<src/gcode/scara>
  207. -<src/gcode/sd>
  208. -<src/gcode/sd/M32.cpp>
  209. -<src/gcode/sd/M808.cpp>
  210. -<src/gcode/temp/M104_M109.cpp>
  211. -<src/gcode/temp/M155.cpp>
  212. -<src/gcode/units/G20_G21.cpp>
  213. -<src/gcode/units/M149.cpp>
  214. -<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
  215. -<src/libs/L64XX> -<src/module/stepper/L64xx.cpp> -<src/HAL/shared/HAL_spi_L6470.cpp>
  216. -<src/libs/hex_print.cpp>
  217. -<src/libs/least_squares_fit.cpp>
  218. -<src/libs/nozzle.cpp> -<src/gcode/feature/clean>
  219. -<src/module/delta.cpp>
  220. -<src/module/planner_bezier.cpp>
  221. -<src/module/printcounter.cpp>
  222. -<src/module/probe.cpp>
  223. -<src/module/scara.cpp> -<src/gcode/calibrate/M665.cpp>
  224. -<src/module/servo.cpp> -<src/gcode/control/M280.cpp>
  225. -<src/module/stepper/TMC26X.cpp>
  226. extra_scripts =
  227. pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
  228. pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
  229. pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
  230. post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
  231. build_flags = -fmax-errors=5 -g3 -D__MARLIN_FIRMWARE__ -fmerge-constants
  232. lib_deps =
  233. #
  234. # Default values apply to all 'env:' prefixed environments
  235. #
  236. [env]
  237. framework = arduino
  238. extra_scripts = ${common.extra_scripts}
  239. build_flags = ${common.build_flags}
  240. lib_deps = ${common.lib_deps}
  241. monitor_speed = 250000
  242. monitor_flags =
  243. --quiet
  244. --echo
  245. --eol
  246. LF
  247. --filter
  248. colorize
  249. --filter
  250. time
  251. #
  252. # Just print the dependency tree
  253. #
  254. [env:include_tree]
  255. platform = atmelavr
  256. board = megaatmega2560
  257. build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
  258. src_filter = +<src/MarlinCore.cpp>