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

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