2016-07-03 08:33:24 -05:00
|
|
|
#
|
2017-09-25 20:05:22 -05:00
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
# For detailed documentation with EXAMPLES:
|
2016-07-03 08:33:24 -05:00
|
|
|
#
|
2020-07-28 01:04:44 -05:00
|
|
|
# https://docs.platformio.org/en/latest/projectconf/index.html
|
2016-07-03 08:33:24 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
# Automatic targets - enable auto-uploading
|
2020-06-11 20:17:22 -05:00
|
|
|
#targets = upload
|
2016-07-03 08:33:24 -05:00
|
|
|
|
|
|
|
[platformio]
|
2019-06-29 02:21:36 -05:00
|
|
|
src_dir = Marlin
|
|
|
|
boards_dir = buildroot/share/PlatformIO/boards
|
2020-03-01 17:39:46 -06:00
|
|
|
default_envs = mega2560
|
2020-07-07 19:31:44 -05:00
|
|
|
include_dir = Marlin
|
2021-04-01 21:53:19 -05:00
|
|
|
extra_configs =
|
|
|
|
ini/avr.ini
|
|
|
|
ini/due.ini
|
|
|
|
ini/esp32.ini
|
|
|
|
ini/features.ini
|
|
|
|
ini/lpc176x.ini
|
|
|
|
ini/native.ini
|
|
|
|
ini/samd51.ini
|
2021-07-20 14:20:28 -05:00
|
|
|
ini/stm32-common.ini
|
2021-04-01 21:53:19 -05:00
|
|
|
ini/stm32f0.ini
|
2021-06-02 01:42:15 -05:00
|
|
|
ini/stm32f1-maple.ini
|
2021-04-01 21:53:19 -05:00
|
|
|
ini/stm32f1.ini
|
|
|
|
ini/stm32f4.ini
|
|
|
|
ini/stm32f7.ini
|
2021-07-20 14:20:28 -05:00
|
|
|
ini/stm32h7.ini
|
2021-04-01 21:53:19 -05:00
|
|
|
ini/teensy.ini
|
2016-07-03 08:33:24 -05:00
|
|
|
|
2020-06-11 20:17:22 -05:00
|
|
|
#
|
2021-04-18 14:07:30 -05:00
|
|
|
# The 'common' section applies to most Marlin builds.
|
|
|
|
#
|
|
|
|
# By default platformio build will abort after 5 errors.
|
|
|
|
# Remove '-fmax-errors=5' from build_flags below to see all.
|
2020-06-11 20:17:22 -05:00
|
|
|
#
|
2017-04-30 14:07:01 -05:00
|
|
|
[common]
|
2021-04-26 19:30:34 -05:00
|
|
|
build_flags = -g3 -D__MARLIN_FIRMWARE__ -DNDEBUG
|
2021-04-18 14:07:30 -05:00
|
|
|
-fmax-errors=5
|
2021-04-12 16:49:53 -05:00
|
|
|
extra_scripts =
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/preflight-checks.py
|
|
|
|
post:buildroot/share/PlatformIO/scripts/common-dependencies-post.py
|
|
|
|
lib_deps =
|
2020-07-25 21:40:44 -05:00
|
|
|
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
|
2021-08-22 05:25:07 -05:00
|
|
|
-<src/lcd/HD44780> -<src/lcd/TFTGLCD> -<src/lcd/dogm> -<src/lcd/tft> -<src/lcd/tft_io>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/HAL/STM32/tft> -<src/HAL/STM32F1/tft>
|
2021-09-15 19:48:29 -05:00
|
|
|
-<src/lcd/e3v2/common> -<src/lcd/e3v2/creality> -<src/lcd/e3v2/enhanced> -<src/lcd/e3v2/jyersui> -<src/lcd/e3v2/marlinui>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/lcd/menu>
|
|
|
|
-<src/lcd/menu/game/game.cpp> -<src/lcd/menu/game/brickout.cpp> -<src/lcd/menu/game/invaders.cpp>
|
|
|
|
-<src/lcd/menu/game/maze.cpp> -<src/lcd/menu/game/snake.cpp>
|
|
|
|
-<src/lcd/menu/menu_backlash.cpp>
|
|
|
|
-<src/lcd/menu/menu_bed_corners.cpp>
|
|
|
|
-<src/lcd/menu/menu_bed_leveling.cpp>
|
|
|
|
-<src/lcd/menu/menu_cancelobject.cpp>
|
|
|
|
-<src/lcd/menu/menu_delta_calibrate.cpp>
|
|
|
|
-<src/lcd/menu/menu_filament.cpp>
|
|
|
|
-<src/lcd/menu/menu_info.cpp>
|
|
|
|
-<src/lcd/menu/menu_job_recovery.cpp>
|
2021-01-20 18:52:06 -06:00
|
|
|
-<src/lcd/menu/menu_language.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/lcd/menu/menu_led.cpp>
|
|
|
|
-<src/lcd/menu/menu_media.cpp>
|
|
|
|
-<src/lcd/menu/menu_mmu2.cpp>
|
2020-08-08 20:00:42 -05:00
|
|
|
-<src/lcd/menu/menu_password.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/lcd/menu/menu_power_monitor.cpp>
|
|
|
|
-<src/lcd/menu/menu_spindle_laser.cpp>
|
|
|
|
-<src/lcd/menu/menu_temperature.cpp>
|
|
|
|
-<src/lcd/menu/menu_tmc.cpp>
|
|
|
|
-<src/lcd/menu/menu_touch_screen.cpp>
|
2020-11-07 03:20:27 -06:00
|
|
|
-<src/lcd/menu/menu_tramming.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/lcd/menu/menu_ubl.cpp>
|
2021-05-06 04:17:59 -05:00
|
|
|
-<src/lcd/extui/anycubic_chiron>
|
|
|
|
-<src/lcd/extui/anycubic_i3mega>
|
|
|
|
-<src/lcd/extui/dgus> -<src/lcd/extui/dgus/fysetc> -<src/lcd/extui/dgus/hiprecy> -<src/lcd/extui/dgus/mks> -<src/lcd/extui/dgus/origin>
|
2021-09-06 19:51:04 -05:00
|
|
|
-<src/lcd/extui/dgus_reloaded>
|
2021-05-06 04:17:59 -05:00
|
|
|
-<src/lcd/extui/example>
|
|
|
|
-<src/lcd/extui/ftdi_eve_touch_ui>
|
|
|
|
-<src/lcd/extui/malyan>
|
|
|
|
-<src/lcd/extui/mks_ui>
|
|
|
|
-<src/lcd/extui/nextion>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/lcd/lcdprint.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/lcd/touch/touch_buttons.cpp>
|
2020-12-28 23:16:38 -06:00
|
|
|
-<src/sd/usb_flashdrive/lib-uhs2> -<src/sd/usb_flashdrive/lib-uhs3>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
|
2021-09-14 19:00:48 -05:00
|
|
|
-<src/sd/cardreader.cpp> -<src/sd/Sd2Card.cpp> -<src/sd/SdBaseFile.cpp> -<src/sd/SdFatUtil.cpp> -<src/sd/SdFile.cpp> -<src/sd/SdVolume.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/HAL/shared/backtrace>
|
2021-02-20 20:22:20 -06:00
|
|
|
-<src/HAL/shared/cpu_exception>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/HAL/shared/eeprom_if_i2c.cpp>
|
|
|
|
-<src/HAL/shared/eeprom_if_spi.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/feature/babystep.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/backlash.cpp>
|
|
|
|
-<src/feature/baricuda.cpp> -<src/gcode/feature/baricuda>
|
2020-07-25 21:40:44 -05:00
|
|
|
-<src/feature/bedlevel/abl> -<src/gcode/bedlevel/abl>
|
|
|
|
-<src/feature/bedlevel/mbl> -<src/gcode/bedlevel/mbl>
|
|
|
|
-<src/feature/bedlevel/ubl> -<src/gcode/bedlevel/ubl>
|
2021-03-27 22:57:12 -05:00
|
|
|
-<src/feature/bedlevel/hilbert_curve.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/binary_stream.cpp> -<src/libs/heatshrink>
|
|
|
|
-<src/feature/bltouch.cpp>
|
|
|
|
-<src/feature/cancel_object.cpp> -<src/gcode/feature/cancel>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/feature/caselight.cpp> -<src/gcode/feature/caselight>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/closedloop.cpp>
|
|
|
|
-<src/feature/controllerfan.cpp> -<src/gcode/feature/controllerfan>
|
2021-03-29 01:41:56 -05:00
|
|
|
-<src/feature/cooler.cpp> -<src/gcode/temp/M143_M193.cpp>
|
2020-07-25 21:40:44 -05:00
|
|
|
-<src/feature/dac> -<src/feature/digipot>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/direct_stepping.cpp> -<src/gcode/motion/G6.cpp>
|
|
|
|
-<src/feature/e_parser.cpp>
|
|
|
|
-<src/feature/encoder_i2c.cpp>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/feature/ethernet.cpp> -<src/gcode/feature/network/M552-M554.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/fanmux.cpp>
|
|
|
|
-<src/feature/filwidth.cpp> -<src/gcode/feature/filwidth>
|
|
|
|
-<src/feature/fwretract.cpp> -<src/gcode/feature/fwretract>
|
|
|
|
-<src/feature/host_actions.cpp>
|
|
|
|
-<src/feature/hotend_idle.cpp>
|
|
|
|
-<src/feature/joystick.cpp>
|
|
|
|
-<src/feature/leds/blinkm.cpp>
|
|
|
|
-<src/feature/leds/leds.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/feature/leds/neopixel.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/leds/pca9533.cpp>
|
|
|
|
-<src/feature/leds/pca9632.cpp>
|
|
|
|
-<src/feature/leds/printer_event_leds.cpp>
|
|
|
|
-<src/feature/leds/tempstat.cpp>
|
|
|
|
-<src/feature/max7219.cpp>
|
2021-01-24 00:43:23 -06:00
|
|
|
-<src/feature/meatpack.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/mixing.cpp>
|
2020-11-18 01:27:21 -06:00
|
|
|
-<src/feature/mmu/mmu.cpp>
|
|
|
|
-<src/feature/mmu/mmu2.cpp> -<src/gcode/feature/prusa_MMU2>
|
2020-08-08 20:00:42 -05:00
|
|
|
-<src/feature/password> -<src/gcode/feature/password>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/pause.cpp>
|
|
|
|
-<src/feature/power.cpp>
|
|
|
|
-<src/feature/power_monitor.cpp> -<src/gcode/feature/power_monitor>
|
|
|
|
-<src/feature/powerloss.cpp> -<src/gcode/feature/powerloss>
|
|
|
|
-<src/feature/probe_temp_comp.cpp>
|
2020-11-26 21:18:40 -06:00
|
|
|
-<src/feature/repeat.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/runout.cpp> -<src/gcode/feature/runout>
|
2021-03-04 03:21:15 -06:00
|
|
|
-<src/feature/snmm.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/feature/solenoid.cpp> -<src/gcode/control/M380_M381.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/spindle_laser.cpp> -<src/gcode/control/M3-M5.cpp>
|
2021-04-27 02:22:09 -05:00
|
|
|
-<src/feature/stepper_driver_safety.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/tmc_util.cpp> -<src/module/stepper/trinamic.cpp>
|
2021-01-02 02:33:31 -06:00
|
|
|
-<src/feature/tramming.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/feature/twibus.cpp>
|
|
|
|
-<src/feature/z_stepper_align.cpp>
|
|
|
|
-<src/gcode/bedlevel/G26.cpp>
|
|
|
|
-<src/gcode/bedlevel/G35.cpp>
|
|
|
|
-<src/gcode/bedlevel/G42.cpp>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/gcode/bedlevel/M420.cpp> -<src/feature/bedlevel/bedlevel.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/calibrate/G33.cpp>
|
2020-10-11 21:34:27 -05:00
|
|
|
-<src/gcode/calibrate/G34.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/calibrate/G34_M422.cpp>
|
2021-11-01 18:03:50 -05:00
|
|
|
-<src/gcode/calibrate/G76_M871.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/calibrate/G425.cpp>
|
|
|
|
-<src/gcode/calibrate/M12.cpp>
|
|
|
|
-<src/gcode/calibrate/M48.cpp>
|
|
|
|
-<src/gcode/calibrate/M100.cpp>
|
|
|
|
-<src/gcode/calibrate/M425.cpp>
|
2021-09-20 15:42:33 -05:00
|
|
|
-<src/gcode/calibrate/M665.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/calibrate/M666.cpp>
|
|
|
|
-<src/gcode/calibrate/M852.cpp>
|
2021-04-22 18:19:41 -05:00
|
|
|
-<src/gcode/control/M10-M11.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/gcode/control/M42.cpp> -<src/gcode/control/M226.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/config/M43.cpp>
|
|
|
|
-<src/gcode/config/M217.cpp>
|
|
|
|
-<src/gcode/config/M218.cpp>
|
|
|
|
-<src/gcode/config/M221.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/gcode/config/M301.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/config/M302.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/gcode/config/M304.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/config/M305.cpp>
|
|
|
|
-<src/gcode/config/M540.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/gcode/config/M575.cpp>
|
|
|
|
-<src/gcode/config/M672.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/control/M7-M9.cpp>
|
|
|
|
-<src/gcode/control/M211.cpp>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/gcode/control/M350_M351.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/control/M605.cpp>
|
|
|
|
-<src/gcode/feature/advance>
|
|
|
|
-<src/gcode/feature/camera>
|
|
|
|
-<src/gcode/feature/i2c>
|
|
|
|
-<src/gcode/feature/L6470>
|
|
|
|
-<src/gcode/feature/leds/M150.cpp>
|
|
|
|
-<src/gcode/feature/leds/M7219.cpp>
|
|
|
|
-<src/gcode/feature/macro>
|
|
|
|
-<src/gcode/feature/mixing/M163-M165.cpp>
|
|
|
|
-<src/gcode/feature/mixing/M166.cpp>
|
|
|
|
-<src/gcode/feature/pause/G27.cpp>
|
|
|
|
-<src/gcode/feature/pause/G60.cpp>
|
|
|
|
-<src/gcode/feature/pause/G61.cpp>
|
|
|
|
-<src/gcode/feature/pause/M125.cpp>
|
|
|
|
-<src/gcode/feature/pause/M600.cpp>
|
|
|
|
-<src/gcode/feature/pause/M603.cpp>
|
|
|
|
-<src/gcode/feature/pause/M701_M702.cpp>
|
|
|
|
-<src/gcode/feature/trinamic/M122.cpp>
|
|
|
|
-<src/gcode/feature/trinamic/M569.cpp>
|
|
|
|
-<src/gcode/feature/trinamic/M906.cpp>
|
|
|
|
-<src/gcode/feature/trinamic/M911-M914.cpp>
|
|
|
|
-<src/gcode/geometry/G17-G19.cpp>
|
|
|
|
-<src/gcode/geometry/G53-G59.cpp>
|
|
|
|
-<src/gcode/geometry/M206_M428.cpp>
|
|
|
|
-<src/gcode/host/M16.cpp>
|
|
|
|
-<src/gcode/host/M113.cpp>
|
2021-05-15 15:02:20 -05:00
|
|
|
-<src/gcode/host/M154.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/host/M360.cpp>
|
|
|
|
-<src/gcode/host/M876.cpp>
|
|
|
|
-<src/gcode/lcd/M0_M1.cpp>
|
2021-05-23 20:29:19 -05:00
|
|
|
-<src/gcode/lcd/M117.cpp>
|
2021-08-01 14:28:53 -05:00
|
|
|
-<src/gcode/lcd/M250.cpp> -<src/gcode/lcd/M256.cpp>
|
2021-05-23 20:29:19 -05:00
|
|
|
-<src/gcode/lcd/M300.cpp>
|
|
|
|
-<src/gcode/lcd/M414.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/lcd/M73.cpp>
|
|
|
|
-<src/gcode/lcd/M995.cpp>
|
|
|
|
-<src/gcode/motion/G2_G3.cpp>
|
|
|
|
-<src/gcode/motion/G5.cpp>
|
|
|
|
-<src/gcode/motion/G80.cpp>
|
|
|
|
-<src/gcode/motion/M290.cpp>
|
|
|
|
-<src/gcode/probe/G30.cpp>
|
|
|
|
-<src/gcode/probe/G31_G32.cpp>
|
|
|
|
-<src/gcode/probe/G38.cpp>
|
|
|
|
-<src/gcode/probe/M401_M402.cpp>
|
|
|
|
-<src/gcode/probe/M851.cpp>
|
|
|
|
-<src/gcode/probe/M951.cpp>
|
|
|
|
-<src/gcode/scara>
|
|
|
|
-<src/gcode/sd>
|
2020-11-09 18:53:19 -06:00
|
|
|
-<src/gcode/sd/M32.cpp>
|
2020-11-26 21:18:40 -06:00
|
|
|
-<src/gcode/sd/M808.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/temp/M104_M109.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/gcode/temp/M155.cpp>
|
2021-11-01 18:03:50 -05:00
|
|
|
-<src/gcode/temp/M192.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/units/G20_G21.cpp>
|
2021-05-21 08:23:09 -05:00
|
|
|
-<src/gcode/units/M82_M83.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/gcode/units/M149.cpp>
|
2020-10-09 16:42:23 -05:00
|
|
|
-<src/libs/BL24CXX.cpp> -<src/libs/W25Qxx.cpp>
|
2021-01-20 18:18:22 -06:00
|
|
|
-<src/libs/L64XX> -<src/module/stepper/L64xx.cpp> -<src/HAL/shared/HAL_spi_L6470.cpp>
|
2021-07-06 19:36:41 -05:00
|
|
|
-<src/libs/MAX31865.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/libs/hex_print.cpp>
|
|
|
|
-<src/libs/least_squares_fit.cpp>
|
|
|
|
-<src/libs/nozzle.cpp> -<src/gcode/feature/clean>
|
|
|
|
-<src/module/delta.cpp>
|
|
|
|
-<src/module/planner_bezier.cpp>
|
2021-09-20 15:42:33 -05:00
|
|
|
-<src/module/polargraph.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/module/printcounter.cpp>
|
|
|
|
-<src/module/probe.cpp>
|
2021-09-20 15:42:33 -05:00
|
|
|
-<src/module/scara.cpp>
|
2021-09-14 19:00:48 -05:00
|
|
|
-<src/module/servo.cpp> -<src/gcode/control/M280.cpp> -<src/gcode/config/M281.cpp> -<src/gcode/control/M282.cpp>
|
2020-08-06 08:14:00 -05:00
|
|
|
-<src/module/stepper/TMC26X.cpp>
|
2020-07-19 21:42:30 -05:00
|
|
|
|
2020-06-11 20:17:22 -05:00
|
|
|
#
|
|
|
|
# Default values apply to all 'env:' prefixed environments
|
|
|
|
#
|
2019-11-29 05:05:46 -06:00
|
|
|
[env]
|
2020-01-03 19:37:23 -06:00
|
|
|
framework = arduino
|
2020-07-19 21:42:30 -05:00
|
|
|
extra_scripts = ${common.extra_scripts}
|
2020-01-03 19:37:23 -06:00
|
|
|
build_flags = ${common.build_flags}
|
|
|
|
lib_deps = ${common.lib_deps}
|
2020-12-03 04:44:33 -06:00
|
|
|
monitor_speed = 250000
|
2020-07-30 02:07:29 -05:00
|
|
|
monitor_flags =
|
|
|
|
--quiet
|
|
|
|
--echo
|
|
|
|
--eol
|
|
|
|
LF
|
|
|
|
--filter
|
|
|
|
colorize
|
|
|
|
--filter
|
|
|
|
time
|
2019-11-29 05:05:46 -06:00
|
|
|
|
2019-08-27 20:50:48 -05:00
|
|
|
#
|
|
|
|
# Just print the dependency tree
|
|
|
|
#
|
|
|
|
[env:include_tree]
|
|
|
|
platform = atmelavr
|
|
|
|
board = megaatmega2560
|
2019-09-15 02:26:30 -05:00
|
|
|
build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
|
2020-07-28 18:13:20 -05:00
|
|
|
src_filter = +<src/MarlinCore.cpp>
|