Skip to content
Snippets Groups Projects
platformio.ini 54.8 KiB
Newer Older
  • Learn to ignore specific revisions
  • platform      = ${common_stm32f1.platform}
    extends       = env:mks_robin
    
    extra_scripts = ${common.extra_scripts}
    
    # MKS Robin E3D (STM32F103RCT6) and
    # MKS Robin E3 with TMC2209
    
    [env:mks_robin_e3]
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    board         = genericSTM32F103RC
    platform_packages = tool-stm32duino
    extra_scripts = ${common.extra_scripts}
      buildroot/share/PlatformIO/scripts/mks_robin_e3.py
    build_flags   = ${common_stm32f1.build_flags}
      -DDEBUG_LEVEL=0 -DSS_TIMER=4
    
    MKS-Sean's avatar
    MKS-Sean committed
    #
    # MKS Robin E3p (STM32F103VET6)
    #  - LVGL UI
    #
    [env:mks_robin_e3p]
    platform        = ${common_stm32f1.platform}
    extends         = common_stm32f1
    board           = genericSTM32F103VE
    extra_scripts   = ${common.extra_scripts}
      buildroot/share/PlatformIO/scripts/mks_robin_e3p.py
    build_flags     = ${common_stm32f1.build_flags}
      -DMCU_STM32F103VE -DSS_TIMER=4
    debug_tool      = jlink
    upload_protocol = jlink
    
    
    #
    # MKS Robin Lite/Lite2 (STM32F103RCT6)
    #
    [env:mks_robin_lite]
    
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    
    board         = genericSTM32F103RC
    
    extra_scripts = ${common.extra_scripts}
      buildroot/share/PlatformIO/scripts/mks_robin_lite.py
    
    
    #
    # MKS ROBIN LITE3 (STM32F103RCT6)
    #
    [env:mks_robin_lite3]
    
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    
    board         = genericSTM32F103RC
    
    extra_scripts = ${common.extra_scripts}
      buildroot/share/PlatformIO/scripts/mks_robin_lite3.py
    
    
    #
    # JGAurora A5S A1 (STM32F103ZET6)
    #
    [env:jgaurora_a5s_a1]
    
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    
    board         = genericSTM32F103ZE
    
    extra_scripts = ${common.extra_scripts}
      buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
    build_flags   = ${common_stm32f1.build_flags}
      -DSTM32F1xx -DSTM32_XL_DENSITY
    
    
    #
    # Malyan M200 (STM32F103CB)
    #
    [env:STM32F103CB_malyan]
    
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    board         = malyanM200
    build_flags   = ${common_stm32f1.build_flags}
      -DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
      -Wl,--gc-sections -DDEBUG_LEVEL=0 -D__MARLIN_FIRMWARE__
    lib_ignore    = ${common_stm32f1.lib_ignore}
      SoftwareSerialM
    
    #
    # Malyan M200 v2 (STM32F070RB)
    #
    [env:STM32F070RB_malyan]
    platform    = ${common_stm32.platform}
    extends     = common_stm32
    board       = malyanM200v2
    
    MKS-Sean's avatar
    MKS-Sean committed
    build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
      -O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
    
      -DCUSTOM_STARTUP_FILE
    
    MKS-Sean's avatar
    MKS-Sean committed
    
    #
    # Malyan M200 v2 (STM32F070CB)
    #
    [env:STM32F070CB_malyan]
    platform    = ${common_stm32.platform}
    extends     = common_stm32
    board       = malyanm200_f070cb
    build_flags = ${common_stm32.build_flags}
      -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED -DCUSTOM_STARTUP_FILE
    
    
    #
    # Malyan M300 (STM32F070CB)
    #
    [env:malyan_M300]
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform    = ${common_stm32.platform}
    extends     = common_stm32
    
    board       = malyanm300_f070cb
    
    MKS-Sean's avatar
    MKS-Sean committed
    build_flags = ${common_stm32.build_flags}
      -DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB -DHAL_UART_MODULE_ENABLED
    
    src_filter  = ${common.default_src_filter} +<src/HAL/STM32>
    
    
    #
    # Chitu boards like Tronxy X5s (STM32F103ZET6)
    #
    [env:chitu_f103]
    
    platform      = ${common_stm32f1.platform}
    extends       = common_stm32f1
    board         = CHITU_F103
    extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-dependencies.py
      pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
      buildroot/share/PlatformIO/scripts/chitu_crypt.py
    build_flags   = ${common_stm32f1.build_flags}
      -DSTM32F1xx -DSTM32_XL_DENSITY
    build_unflags = ${common_stm32f1.build_unflags}
      -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG= -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
    
    #
    # Some Chitu V5 boards have a problem with GPIO init.
    # Use this target if G28 or G29 are always failing.
    #
    [env:chitu_v5_gpio_init]
    platform      = ${common_stm32f1.platform}
    extends       = env:chitu_f103
    build_flags   = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
    
    #
    # Creality (STM32F103RET6)
    #
    [env:STM32F103RET6_creality]
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform        = ${env:STM32F103RE.platform}
    extends         = env:STM32F103RE
    build_flags     = ${env:STM32F103RE.build_flags} -DTEMP_TIMER_CHAN=4
    extra_scripts   = ${env:STM32F103RE.extra_scripts}
    
      pre:buildroot/share/PlatformIO/scripts/random-bin.py
      buildroot/share/PlatformIO/scripts/creality.py
    debug_tool      = jlink
    upload_protocol = jlink
    
    MKS-Sean's avatar
    MKS-Sean committed
    
    #
    # FLSUN QQS Pro (STM32F103VET6) using hal STM32
    # board Hispeedv1
    #
    [env:flsun_hispeedv1]
    platform             = ${common_stm32.platform}
    extends              = common_stm32
    build_flags          = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
    board                = genericSTM32F103VE
    board_build.core     = stm32
    board_build.variant  = MARLIN_F103Vx
    board_build.ldscript = ldscript.ld
    board_build.offset   = 0x7000
    board_build.firmware = Robin_mini.bin
    board_build.encrypt  = Yes
    board_upload.offset_address = 0x08007000
    build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
    extra_scripts        = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
      buildroot/share/PlatformIO/scripts/mks_encrypt.py
    
    
    #
    # STM32F401VE
    # 'STEVAL-3DP001V1' STM32F401VE board - https://www.st.com/en/evaluation-tools/steval-3dp001v1.html
    #
    [env:STM32F401VE_STEVAL]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    board             = STEVAL_STM32F401VE
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DARDUINO_STEVAL -DSTM32F401xE
    
      -DDISABLE_GENERIC_SERIALUSB -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
      buildroot/share/PlatformIO/scripts/STEVAL__F401XX.py
    
    #
    # FLYF407ZG
    #
    [env:FLYF407ZG]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    board             = FLYF407ZG
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DVECT_TAB_OFFSET=0x8000
    
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
    MKS-Sean's avatar
    MKS-Sean committed
    #
    # FLY MINI(stm32f103rct6)
    #
    [env:FLY_MINI]
    platform          = ${common_stm32f1.platform}
    extends           = common_stm32f1
    board             = genericSTM32F103RC
    extra_scripts     = ${common.extra_scripts}
     buildroot/share/PlatformIO/scripts/fly_mini.py
    build_flags       = ${common_stm32f1.build_flags}
     -DDEBUG_LEVEL=0 -DSS_TIMER=4
    
    
    #
    # FYSETC S6 (STM32F446VET6 ARM Cortex-M4)
    #
    [env:FYSETC_S6]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform_packages = tool-stm32duino
    board             = marlin_fysetc_s6
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DVECT_TAB_OFFSET=0x10000
      -DHAL_PCD_MODULE_ENABLED
    
    extra_scripts     = ${common.extra_scripts}
    
    MKS-Sean's avatar
    MKS-Sean committed
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
    debug_tool        = stlink
    
    upload_protocol   = dfu
    upload_command    = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
    
    
    #
    # STM32F407VET6 with RAMPS-like shield
    
    # 'Black' STM32F407VET6 board - https://wiki.stm32duino.com/index.php?title=STM32F407
    
    # Shield - https://github.com/jmz52/Hardware
    #
    [env:STM32F407VE_black]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    board             = blackSTM32F407VET6
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DARDUINO_BLACK_F407VE
    
      -DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
    MKS-Sean's avatar
    MKS-Sean committed
    
    #
    # Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
    # For use with with davidtgbe's OpenBLT bootloader https://github.com/davidtgbe/openblt/releases
    # Comment out board_build.offset = 0x10000 if you don't plan to use OpenBLT/flashing directly to 0x08000000.
    #
    [env:Anet_ET4_OpenBLT]
    platform             = ${common_stm32.platform}
    extends              = common_stm32
    build_flags          = ${common_stm32.build_flags} -DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
    board                = genericSTM32F407VGT6
    board_build.core     = stm32
    board_build.variant  = MARLIN_F4x7Vx
    board_build.ldscript = ldscript.ld
    board_build.firmware = firmware.srec
    # Just anet_et4_openblt.py generates the file, not stm32_bootloader.py
    board_build.encrypt  = Yes
    board_build.offset   = 0x10000
    board_upload.offset_address = 0x08010000
    build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
    debug_tool           = jlink
    upload_protocol      = jlink
    extra_scripts        = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
      buildroot/share/PlatformIO/scripts/anet_et4_openblt.py
    
    
    #
    # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
    #
    [env:BIGTREE_SKR_PRO]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    board             = BigTree_SKR_Pro
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DSTM32F407_5ZX -DVECT_TAB_OFFSET=0x8000
    
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
    #upload_protocol   = stlink
    #upload_command    = "$PROJECT_PACKAGES_DIR/tool-stm32duino/stlink/ST-LINK_CLI.exe" -c SWD -P "$BUILD_DIR/firmware.bin" 0x8008000 -Rst -Run
    debug_tool        = stlink
    debug_init_break  =
    
    
    MKS-Sean's avatar
    MKS-Sean committed
    #
    # USB Flash Drive mix-ins for STM32
    #
    [stm32_flash_drive]
    platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc.zip
    build_flags       = ${common_stm32.build_flags}
      -DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
      -DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
    
    #
    # BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4) with USB Flash Drive Support
    #
    [env:BIGTREE_SKR_PRO_usb_flash_drive]
    extends           = env:BIGTREE_SKR_PRO
    platform_packages = ${stm32_flash_drive.platform_packages}
    build_flags       = ${stm32_flash_drive.build_flags}
    
    
    #
    # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
    #
    [env:BIGTREE_GTR_V1_0]
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform          = ${common_stm32.platform}
    
    extends           = common_stm32
    board             = BigTree_GTR_v1
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DSTM32F407IX -DVECT_TAB_OFFSET=0x8000
    
    #
    # Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4) with USB Flash Drive Support
    #
    [env:BIGTREE_GTR_V1_0_usb_flash_drive]
    extends           = env:BIGTREE_GTR_V1_0
    platform_packages = ${stm32_flash_drive.platform_packages}
    build_flags       = ${stm32_flash_drive.build_flags}
    
    # BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
    
    #
    [env:BIGTREE_BTT002]
    
    platform          = ${common_stm32.platform}
    extends           = common_stm32
    
    board             = BigTree_Btt002
    
    build_flags       = ${common_stm32.build_flags}
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DSTM32F407_5VX -DVECT_TAB_OFFSET=0x8000
    
      -DHAVE_HWSERIAL2
      -DHAVE_HWSERIAL3
      -DPIN_SERIAL2_RX=PD_6
      -DPIN_SERIAL2_TX=PD_5
    
    extra_scripts     = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
    
    # Lerdge base
    
    [lerdge_common]
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform            = ${common_stm32.platform}
    extends             = common_stm32
    board               = LERDGE
    board_build.offset  = 0x10000
    board_build.encrypt = Yes
    extra_scripts       = ${common.extra_scripts}
                          pre:buildroot/share/PlatformIO/scripts/copy_marlin_variant_to_framework.py
                          buildroot/share/PlatformIO/scripts/stm32_bootloader.py
                          buildroot/share/PlatformIO/scripts/lerdge.py
    build_flags         = ${common_stm32.build_flags}
    
      -DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
      -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DARDUINO_LERDGE
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DHAL_SRAM_MODULE_ENABLED
    build_unflags       = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
    
    [env:LERDGEX]
    extends              = lerdge_common
    board_build.firmware = Lerdge_X_firmware_force.bin
    
    #
    # Lerdge S
    #
    [env:LERDGES]
    extends              = lerdge_common
    board_build.firmware = Lerdge_firmware_force.bin
    
    #
    # Lerdge K
    #
    [env:LERDGEK]
    extends              = lerdge_common
    board_build.firmware = Lerdge_K_firmware_force.bin
    build_flags          = ${lerdge_common.build_flags}
      -DLERDGEK
    
    #
    # RUMBA32
    #
    [env:rumba32]
    
    MKS-Sean's avatar
    MKS-Sean committed
    platform        = ${common_stm32.platform}
    extends         = common_stm32
    build_flags     = ${common_stm32.build_flags}
    
      -Os
      -DHAL_PCD_MODULE_ENABLED
      -DDISABLE_GENERIC_SERIALUSB
      -DHAL_UART_MODULE_ENABLED
    
    MKS-Sean's avatar
    MKS-Sean committed
      -DTIMER_SERIAL=TIM9
    board           = rumba32_f446ve
    
    upload_protocol = dfu
    
    MKS-Sean's avatar
    MKS-Sean committed
    monitor_speed   = 500000
    
    #
    # MKS Robin Nano V1.2 and V2 using hal STM32
    #
    [env:mks_robin_nano35_stm32]
    platform             = ${common_stm32.platform}
    extends              = common_stm32
    build_flags          = ${common_stm32.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
    board                = genericSTM32F103VE
    board_build.core     = stm32
    board_build.variant  = MARLIN_F103Vx
    board_build.ldscript = ldscript.ld
    board_build.offset   = 0x7000
    board_build.encrypt  = Yes
    board_build.firmware = Robin_nano35.bin
    board_upload.offset_address = 0x08007000
    build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
    debug_tool           = jlink
    upload_protocol      = jlink
    extra_scripts        = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
      buildroot/share/PlatformIO/scripts/mks_encrypt.py
    
    #
    # MKS Robin Pro V2
    #
    [env:mks_robin_pro2]
    platform             = ${common_stm32.platform}
    platform_packages    = ${stm32_flash_drive.platform_packages}
    extends              = common_stm32
    build_flags          = ${stm32_flash_drive.build_flags}
    board                = genericSTM32F407VET6
    board_build.core     = stm32
    board_build.variant  = MARLIN_F4x7Vx
    board_build.ldscript = ldscript.ld
    board_build.firmware = firmware.bin
    board_build.offset   = 0x0000
    board_upload.offset_address = 0x08000000
    build_unflags        = ${common_stm32.build_unflags} -DUSBCON -DUSBD_USE_CDC
    debug_tool           = jlink
    upload_protocol      = jlink
    extra_scripts        = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
    
    #
    # MKS Robin Nano V3
    #
    [env:mks_robin_nano_v3]
    platform             = ${common_stm32.platform}
    extends              = common_stm32
    build_flags          = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED -DUSBCON -DUSBD_USE_CDC
    board                = genericSTM32F407VGT6
    board_build.core     = stm32
    board_build.variant  = MARLIN_F4x7Vx
    board_build.ldscript = ldscript.ld
    board_build.firmware = Robin_nano_v3.bin
    board_build.offset   = 0xC000
    board_upload.offset_address = 0x0800C000
    build_unflags        = ${common_stm32.build_unflags}
    debug_tool           = jlink
    upload_protocol      = jlink
    extra_scripts        = ${common.extra_scripts}
      pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
      buildroot/share/PlatformIO/scripts/stm32_bootloader.py
    
    #
    # MKS Robin Nano V3 with USB Flash Drive Support
    # Currently, using a STM32duino fork, until USB Host get merged
    #
    [env:mks_robin_nano_v3_usb_flash_drive]
    extends           = env:mks_robin_nano_v3
    platform_packages = ${stm32_flash_drive.platform_packages}
    build_flags       = ${stm32_flash_drive.build_flags}
      -DUSBCON
      -DUSE_USBHOST_HS
      -DUSBD_IRQ_PRIO=5
      -DUSBD_IRQ_SUBPRIO=6
      -DUSE_USB_HS_IN_FS
      -DUSBD_USE_CDC
      #-DPIN_WIRE_SDA=PB7
      #-DPIN_WIRE_SCL=PB6
    
    
    #################################
    #                               #
    #      Other Architectures      #
    #                               #
    #################################
    
    
    #
    # Espressif ESP32
    #
    [env:esp32]
    platform      = espressif32@1.11.2
    board         = esp32dev
    build_flags   = ${common.build_flags} -DCORE_DEBUG_LEVEL=0
    src_filter    = ${common.default_src_filter} +<src/HAL/ESP32>
    
    MKS-Sean's avatar
    MKS-Sean committed
    lib_ignore    = NativeEthernet
    
    upload_speed  = 115200
    #upload_port   = marlinesp.local
    #board_build.flash_mode = qio
    
    
    MKS-Sean's avatar
    MKS-Sean committed
    [env:FYSETC_E4]
    platform               = espressif32@1.11.2
    extends                = env:esp32
    board_build.partitions = default_16MB.csv
    
    
    #
    # Teensy 3.1 / 3.2 (ARM Cortex-M4)
    #
    [env:teensy31]
    platform      = teensy
    board         = teensy31
    src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY31_32>
    
    MKS-Sean's avatar
    MKS-Sean committed
    lib_ignore    = NativeEthernet
    
    
    #
    # Teensy 3.5 / 3.6 (ARM Cortex-M4)
    #
    [env:teensy35]
    platform      = teensy
    board         = teensy35
    src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
    
    MKS-Sean's avatar
    MKS-Sean committed
    lib_ignore    = NativeEthernet
    
    [env:teensy36]
    platform      = teensy
    board         = teensy36
    src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY35_36>
    lib_ignore    = NativeEthernet
    
    #
    # Teensy 4.0 / 4.1 (ARM Cortex-M7)
    #
    [env:teensy41]
    platform      = teensy
    board         = teensy41
    src_filter    = ${common.default_src_filter} +<src/HAL/TEENSY40_41>
    
    #
    # Native
    # No supported Arduino libraries, base Marlin only
    #
    [env:linux_native]
    platform        = native
    framework       =
    build_flags     = -D__PLAT_LINUX__ -std=gnu++17 -ggdb -g -lrt -lpthread -D__MARLIN_FIRMWARE__ -Wno-expansion-to-defined
    src_build_flags = -Wall -IMarlin/src/HAL/LINUX/include
    build_unflags   = -Wall
    lib_ldf_mode    = off
    lib_deps        =
    src_filter      = ${common.default_src_filter} +<src/HAL/LINUX>
    
    #
    # Just print the dependency tree
    #
    [env:include_tree]
    platform    = atmelavr
    board       = megaatmega2560
    build_flags = -c -H -std=gnu++11 -Wall -Os -D__MARLIN_FIRMWARE__
    
    src_filter  = +<src/MarlinCore.cpp>