Initial commit
This commit is contained in:
138
ini/avr.ini
Normal file
138
ini/avr.ini
Normal file
@ -0,0 +1,138 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# AVR Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# AVR (8-bit) Common Environment values
|
||||
#
|
||||
[common_avr8]
|
||||
platform = atmelavr@~4.0.1
|
||||
build_flags = ${common.build_flags} -std=gnu++1z -Wl,--relax
|
||||
build_unflags = -std=gnu++11
|
||||
board_build.f_cpu = 16000000L
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/AVR>
|
||||
|
||||
#
|
||||
# ATmega2560
|
||||
#
|
||||
[env:mega2560]
|
||||
extends = common_avr8
|
||||
board = megaatmega2560
|
||||
|
||||
#
|
||||
# ATmega2560 with extended pins 70-85 defined
|
||||
# BOARD_BQ_ZUM_MEGA_3D
|
||||
# BOARD_ULTIMAIN_2
|
||||
# BOARD_MIGHTYBOARD_REVE
|
||||
# BOARD_EINSTART_S
|
||||
#
|
||||
[env:mega2560ext]
|
||||
extends = env:mega2560
|
||||
board_build.variant = MARLIN_MEGA_EXTENDED
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
|
||||
#
|
||||
# ATmega1280
|
||||
#
|
||||
[env:mega1280]
|
||||
extends = common_avr8
|
||||
board = megaatmega1280
|
||||
|
||||
#
|
||||
# MightyBoard AVR with extended pins
|
||||
#
|
||||
[mega_extended_optimized]
|
||||
extends = common_avr8
|
||||
board_build.variant = MARLIN_MEGA_EXTENDED
|
||||
extra_scripts = ${env:mega2560ext.extra_scripts}
|
||||
upload_speed = 57600
|
||||
build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
|
||||
|
||||
#
|
||||
# MightyBoard ATmega1280
|
||||
#
|
||||
[env:MightyBoard1280]
|
||||
extends = mega_extended_optimized
|
||||
board = megaatmega1280
|
||||
|
||||
#
|
||||
# MightyBoard ATmega2560
|
||||
#
|
||||
[env:MightyBoard2560]
|
||||
extends = mega_extended_optimized
|
||||
board = megaatmega2560
|
||||
|
||||
#
|
||||
# RAMBo
|
||||
#
|
||||
[env:rambo]
|
||||
extends = common_avr8
|
||||
board = reprap_rambo
|
||||
|
||||
#
|
||||
# FYSETC F6 V1.3 / V1.4
|
||||
#
|
||||
[env:FYSETC_F6]
|
||||
extends = common_avr8
|
||||
board = fysetc_f6_13
|
||||
|
||||
#
|
||||
# Sanguinololu (ATmega644p)
|
||||
#
|
||||
[env:sanguino644p]
|
||||
extends = common_avr8
|
||||
board = sanguino_atmega644p
|
||||
|
||||
#
|
||||
# Sanguinololu (ATmega1284p)
|
||||
#
|
||||
[env:sanguino1284p]
|
||||
extends = common_avr8
|
||||
board = sanguino_atmega1284p
|
||||
board_upload.maximum_size = 126976
|
||||
|
||||
#
|
||||
# Sanguinololu (ATmega1284p stock bootloader with tuned flags)
|
||||
#
|
||||
|
||||
[tuned_1284p]
|
||||
build_flags = ${common_avr8.build_flags} -fno-tree-scev-cprop -fno-split-wide-types -mcall-prologues
|
||||
|
||||
[env:sanguino1284p_optimized]
|
||||
extends = env:sanguino1284p
|
||||
build_flags = ${tuned_1284p.build_flags}
|
||||
|
||||
#
|
||||
# Melzi and clones (ATmega1284p)
|
||||
#
|
||||
[env:melzi]
|
||||
extends = env:sanguino1284p
|
||||
upload_speed = 57600
|
||||
|
||||
[env:melzi_optimized]
|
||||
extends = env:sanguino1284p_optimized
|
||||
upload_speed = 57600
|
||||
|
||||
#
|
||||
# Melzi and clones (Optiboot bootloader)
|
||||
#
|
||||
[env:melzi_optiboot]
|
||||
extends = common_avr8
|
||||
board = sanguino_atmega1284p
|
||||
upload_speed = 115200
|
||||
board_upload.maximum_size = 130048
|
||||
|
||||
#
|
||||
# Melzi and clones (Zonestar Melzi2 with tuned flags)
|
||||
#
|
||||
[env:melzi_optiboot_optimized]
|
||||
extends = env:melzi_optiboot
|
||||
build_flags = ${tuned_1284p.build_flags}
|
40
ini/due.ini
Normal file
40
ini/due.ini
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# DUE Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# Due (Atmel SAM3X8E ARM Cortex-M3)
|
||||
#
|
||||
# - RAMPS4DUE
|
||||
# - RADDS
|
||||
#
|
||||
[env:DUE]
|
||||
platform = atmelsam
|
||||
board = due
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/DUE> +<src/HAL/shared/backtrace>
|
||||
|
||||
[env:DUE_USB]
|
||||
extends = env:DUE
|
||||
board = dueUSB
|
||||
|
||||
#
|
||||
# Archim SAM
|
||||
#
|
||||
[common_DUE_archim]
|
||||
extends = env:DUE
|
||||
board = marlin_archim
|
||||
build_flags = ${common.build_flags}
|
||||
-DARDUINO_SAM_ARCHIM -DARDUINO_ARCH_SAM -D__SAM3X8E__ -DUSBCON
|
||||
board_build.variants_dir = buildroot/share/PlatformIO/variants/
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
Marlin/src/HAL/DUE/upload_extra_script.py
|
||||
|
||||
[env:DUE_archim]
|
||||
extends = common_DUE_archim
|
44
ini/esp32.ini
Normal file
44
ini/esp32.ini
Normal file
@ -0,0 +1,44 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# ESP32 Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# Espressif ESP32
|
||||
#
|
||||
[env:esp32]
|
||||
platform = espressif32@2.1.0
|
||||
platform_packages = espressif/toolchain-xtensa-esp32s3
|
||||
board = esp32dev
|
||||
build_flags = ${common.build_flags} -DCORE_DEBUG_LEVEL=0 -std=gnu++17
|
||||
build_unflags = -std=gnu11 -std=gnu++11
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/ESP32>
|
||||
lib_ignore = NativeEthernet
|
||||
upload_speed = 500000
|
||||
monitor_speed = 250000
|
||||
monitor_filters = colorize, time, send_on_enter, log2file, esp32_exception_decoder
|
||||
#upload_port = marlinesp.local
|
||||
#board_build.flash_mode = qio
|
||||
|
||||
[env:FYSETC_E4]
|
||||
extends = env:esp32
|
||||
board_build.partitions = default_16MB.csv
|
||||
|
||||
[env:PANDA]
|
||||
extends = env:esp32
|
||||
build_flags = ${env:esp32.build_flags} -DUSE_ESP32_EXIO -DUSE_ESP32_TASK_WDT
|
||||
lib_deps = ${common.lib_deps}
|
||||
SoftwareSerialEsp32
|
||||
board_build.partitions = Marlin/src/HAL/ESP32/esp32.csv
|
||||
upload_speed = 115200
|
||||
monitor_speed = 115200
|
||||
|
||||
[env:mks_tinybee]
|
||||
extends = env:esp32
|
||||
board_build.partitions = default_8MB.csv
|
262
ini/features.ini
Normal file
262
ini/features.ini
Normal file
@ -0,0 +1,262 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# Features Dependencies #
|
||||
# #
|
||||
#################################
|
||||
|
||||
# The order of the features matters for source-filter resolution inside of common-dependencies.py.
|
||||
|
||||
[features]
|
||||
YHCB2004 = red-scorp/LiquidCrystal_AIP31068@^1.0.4, red-scorp/SoftSPIB@^1.1.1
|
||||
HAS_TFT_LVGL_UI = lvgl=https://github.com/makerbase-mks/LVGL-6.1.1-MKS/archive/a3ebe98bc6.zip
|
||||
build_src_filter=+<src/lcd/extui/mks_ui>
|
||||
extra_scripts=download_mks_assets.py
|
||||
MARLIN_TEST_BUILD = build_src_filter=+<src/tests>
|
||||
POSTMORTEM_DEBUGGING = build_src_filter=+<src/HAL/shared/cpu_exception> +<src/HAL/shared/backtrace>
|
||||
build_flags=-funwind-tables
|
||||
MKS_WIFI_MODULE = QRCode=https://github.com/makerbase-mks/QRCode/archive/261c5a696a.zip
|
||||
HAS_TRINAMIC_CONFIG = TMCStepper@~0.7.3
|
||||
build_src_filter=+<src/module/stepper/trinamic.cpp> +<src/gcode/feature/trinamic/M122.cpp> +<src/gcode/feature/trinamic/M906.cpp> +<src/gcode/feature/trinamic/M911-M914.cpp> +<src/gcode/feature/trinamic/M919.cpp>
|
||||
HAS_T(RINAMIC_CONFIG|MC_SPI) = build_src_filter=+<src/feature/tmc_util.cpp>
|
||||
HAS_STEALTHCHOP = build_src_filter=+<src/gcode/feature/trinamic/M569.cpp>
|
||||
SR_LCD_3W_NL = SailfishLCD=https://github.com/mikeshub/SailfishLCD/archive/6f53c19a8a.zip
|
||||
HAS_MOTOR_CURRENT_(I2C|DAC|SPI|PWM) = build_src_filter=+<src/gcode/feature/digipot>
|
||||
HAS_MOTOR_CURRENT_I2C = SlowSoftI2CMaster
|
||||
build_src_filter=+<src/feature/digipot>
|
||||
HAS_TMC26X = TMC26XStepper=https://github.com/MarlinFirmware/TMC26XStepper/archive/0.1.2.zip
|
||||
build_src_filter=+<src/module/stepper/TMC26X.cpp>
|
||||
LIB_INTERNAL_MAX31865 = build_src_filter=+<src/libs/MAX31865.cpp>
|
||||
NEOPIXEL_LED = adafruit/Adafruit NeoPixel@~1.8.0
|
||||
build_src_filter=+<src/feature/leds/neopixel.cpp>
|
||||
I2C_AMMETER = peterus/INA226Lib@1.1.2
|
||||
build_src_filter=+<src/feature/ammeter.cpp>
|
||||
USES_LIQUIDCRYSTAL = LiquidCrystal=https://github.com/MarlinFirmware/New-LiquidCrystal/archive/1.5.1.zip
|
||||
USES_LIQUIDCRYSTAL_I2C = marcoschwartz/LiquidCrystal_I2C@1.1.4
|
||||
USES_LIQUIDTWI2 = LiquidTWI2@1.2.7
|
||||
HAS_LCDPRINT = build_src_filter=+<src/lcd/lcdprint.cpp>
|
||||
HAS_MARLINUI_HD44780 = build_src_filter=+<src/lcd/HD44780>
|
||||
HAS_MARLINUI_U8GLIB = marlinfirmware/U8glib-HAL@0.5.4
|
||||
build_src_filter=+<src/lcd/dogm>
|
||||
HAS_(FSMC|SPI|LTDC)_TFT = build_src_filter=+<src/lcd/tft_io>
|
||||
HAS_LTDC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_ltdc.cpp>
|
||||
HAS_FSMC_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_fsmc.cpp> +<src/HAL/STM32F1/tft/tft_fsmc.cpp>
|
||||
HAS_SPI_TFT = build_src_filter=+<src/HAL/STM32/tft/tft_spi.cpp> +<src/HAL/STM32F1/tft/tft_spi.cpp> +<src/HAL/LPC1768/tft/tft_spi.cpp>
|
||||
HAS_TFT_XPT2046 = build_src_filter=+<src/HAL/STM32/tft/xpt2046.cpp> +<src/HAL/STM32F1/tft/xpt2046.cpp> +<src/HAL/LPC1768/tft/xpt2046.cpp>
|
||||
TFT_TOUCH_DEVICE_GT911 = build_src_filter=+<src/HAL/STM32/tft/gt911.cpp>
|
||||
I2C_EEPROM = build_src_filter=+<src/HAL/shared/eeprom_if_i2c.cpp>
|
||||
SOFT_I2C_EEPROM = SlowSoftI2CMaster, SlowSoftWire=https://github.com/felias-fogg/SlowSoftWire/archive/f34d777f39.zip
|
||||
SPI_EEPROM = build_src_filter=+<src/HAL/shared/eeprom_if_spi.cpp>
|
||||
HAS_DWIN_E3V2|IS_DWIN_MARLINUI = build_src_filter=+<src/lcd/e3v2/common>
|
||||
DWIN_CREALITY_LCD = build_src_filter=+<src/lcd/e3v2/creality>
|
||||
DWIN_LCD_PROUI = build_src_filter=+<src/lcd/e3v2/proui>
|
||||
DWIN_CREALITY_LCD_JYERSUI = build_src_filter=+<src/lcd/e3v2/jyersui>
|
||||
IS_DWIN_MARLINUI = build_src_filter=+<src/lcd/e3v2/marlinui>
|
||||
HAS_GRAPHICAL_TFT = build_src_filter=+<src/lcd/tft>
|
||||
IS_TFTGLCD_PANEL = build_src_filter=+<src/lcd/TFTGLCD>
|
||||
HAS_TOUCH_BUTTONS = build_src_filter=+<src/lcd/touch/touch_buttons.cpp>
|
||||
HAS_MARLINUI_MENU = build_src_filter=+<src/lcd/menu> -<src/lcd/menu/game>
|
||||
HAS_GAMES = build_src_filter=+<src/lcd/menu/game/game.cpp>
|
||||
MARLIN_BRICKOUT = build_src_filter=+<src/lcd/menu/game/brickout.cpp>
|
||||
MARLIN_INVADERS = build_src_filter=+<src/lcd/menu/game/invaders.cpp>
|
||||
MARLIN_MAZE = build_src_filter=+<src/lcd/menu/game/maze.cpp>
|
||||
MARLIN_SNAKE = build_src_filter=+<src/lcd/menu/game/snake.cpp>
|
||||
HAS_MENU_BACKLASH = build_src_filter=+<src/lcd/menu/menu_backlash.cpp>
|
||||
LCD_BED_LEVELING = build_src_filter=+<src/lcd/menu/menu_bed_leveling.cpp>
|
||||
HAS_MENU_BED_TRAMMING = build_src_filter=+<src/lcd/menu/menu_bed_tramming.cpp>
|
||||
HAS_MENU_CANCELOBJECT = build_src_filter=+<src/lcd/menu/menu_cancelobject.cpp>
|
||||
HAS_MENU_DELTA_CALIBRATE = build_src_filter=+<src/lcd/menu/menu_delta_calibrate.cpp>
|
||||
HAS_MENU_FILAMENT = build_src_filter=+<src/lcd/menu/menu_filament.cpp>
|
||||
LCD_INFO_MENU = build_src_filter=+<src/lcd/menu/menu_info.cpp>
|
||||
HAS_MENU_JOB_RECOVERY = build_src_filter=+<src/lcd/menu/menu_job_recovery.cpp>
|
||||
HAS_MENU_MULTI_LANGUAGE = build_src_filter=+<src/lcd/menu/menu_language.cpp>
|
||||
HAS_MENU_LED = build_src_filter=+<src/lcd/menu/menu_led.cpp>
|
||||
HAS_MENU_MEDIA = build_src_filter=+<src/lcd/menu/menu_media.cpp>
|
||||
HAS_MENU_MIXER = build_src_filter=+<src/lcd/menu/menu_mixer.cpp>
|
||||
HAS_MENU_MMU2 = build_src_filter=+<src/lcd/menu/menu_mmu2.cpp>
|
||||
HAS_MENU_PASSWORD = build_src_filter=+<src/lcd/menu/menu_password.cpp>
|
||||
HAS_MENU_POWER_MONITOR = build_src_filter=+<src/lcd/menu/menu_power_monitor.cpp>
|
||||
HAS_MENU_CUTTER = build_src_filter=+<src/lcd/menu/menu_spindle_laser.cpp>
|
||||
HAS_MENU_TEMPERATURE = build_src_filter=+<src/lcd/menu/menu_temperature.cpp>
|
||||
HAS_MENU_TMC = build_src_filter=+<src/lcd/menu/menu_tmc.cpp>
|
||||
HAS_MENU_TOUCH_SCREEN = build_src_filter=+<src/lcd/menu/menu_touch_screen.cpp>
|
||||
HAS_MENU_TRAMMING_WIZARD = build_src_filter=+<src/lcd/menu/menu_tramming_wizard.cpp>
|
||||
HAS_MENU_UBL = build_src_filter=+<src/lcd/menu/menu_ubl.cpp>
|
||||
EXTENSIBLE_UI = build_src_filter=+<src/lcd/extui/ui_api.cpp>
|
||||
ANYCUBIC_LCD_CHIRON = build_src_filter=+<src/lcd/extui/anycubic_chiron>
|
||||
ANYCUBIC_LCD_I3MEGA = build_src_filter=+<src/lcd/extui/anycubic_i3mega>
|
||||
HAS_DGUS_LCD_CLASSIC = build_src_filter=+<src/lcd/extui/dgus>
|
||||
DGUS_LCD_UI_RELOADED = build_src_filter=+<src/lcd/extui/dgus_reloaded>
|
||||
DGUS_LCD_UI_FYSETC = build_src_filter=+<src/lcd/extui/dgus/fysetc>
|
||||
DGUS_LCD_UI_HIPRECY = build_src_filter=+<src/lcd/extui/dgus/hiprecy>
|
||||
DGUS_LCD_UI_MKS = build_src_filter=+<src/lcd/extui/dgus/mks>
|
||||
DGUS_LCD_UI_ORIGIN = build_src_filter=+<src/lcd/extui/dgus/origin>
|
||||
EXTUI_EXAMPLE = build_src_filter=+<src/lcd/extui/example>
|
||||
TOUCH_UI_FTDI_EVE = build_src_filter=+<src/lcd/extui/ftdi_eve_touch_ui>
|
||||
MALYAN_LCD = build_src_filter=+<src/lcd/extui/malyan>
|
||||
NEXTION_TFT = build_src_filter=+<src/lcd/extui/nextion>
|
||||
USE_UHS2_USB = build_src_filter=+<src/sd/usb_flashdrive/lib-uhs2>
|
||||
USE_UHS3_USB = build_src_filter=+<src/sd/usb_flashdrive/lib-uhs3>
|
||||
USB_FLASH_DRIVE_SUPPORT = build_src_filter=+<src/sd/usb_flashdrive/Sd2Card_FlashDrive.cpp>
|
||||
HAS_MCP3426_ADC = build_src_filter=+<src/feature/adc> +<src/gcode/feature/adc>
|
||||
AUTO_BED_LEVELING_BILINEAR = build_src_filter=+<src/feature/bedlevel/abl>
|
||||
AUTO_BED_LEVELING_(3POINT|(BI)?LINEAR) = build_src_filter=+<src/gcode/bedlevel/abl>
|
||||
X_AXIS_TWIST_COMPENSATION = build_src_filter=+<src/feature/x_twist.cpp> +<src/lcd/menu/menu_x_twist.cpp> +<src/gcode/probe/M423.cpp>
|
||||
BD_SENSOR = markyue/Panda_SoftMasterI2C
|
||||
build_src_filter=+<src/feature/bedlevel/bdl> +<src/gcode/probe/M102.cpp>
|
||||
MESH_BED_LEVELING = build_src_filter=+<src/feature/bedlevel/mbl> +<src/gcode/bedlevel/mbl>
|
||||
AUTO_BED_LEVELING_UBL = build_src_filter=+<src/feature/bedlevel/ubl> +<src/gcode/bedlevel/ubl>
|
||||
UBL_HILBERT_CURVE = build_src_filter=+<src/feature/bedlevel/hilbert_curve.cpp>
|
||||
BACKLASH_COMPENSATION = build_src_filter=+<src/feature/backlash.cpp>
|
||||
BARICUDA = build_src_filter=+<src/feature/baricuda.cpp> +<src/gcode/feature/baricuda>
|
||||
BINARY_FILE_TRANSFER = build_src_filter=+<src/feature/binary_stream.cpp> +<src/libs/heatshrink>
|
||||
BLTOUCH = build_src_filter=+<src/feature/bltouch.cpp>
|
||||
CANCEL_OBJECTS = build_src_filter=+<src/feature/cancel_object.cpp> +<src/gcode/feature/cancel>
|
||||
CASE_LIGHT_ENABLE = build_src_filter=+<src/feature/caselight.cpp> +<src/gcode/feature/caselight>
|
||||
EXTERNAL_CLOSED_LOOP_CONTROLLER = build_src_filter=+<src/feature/closedloop.cpp> +<src/gcode/calibrate/M12.cpp>
|
||||
USE_CONTROLLER_FAN = build_src_filter=+<src/feature/controllerfan.cpp>
|
||||
HAS_COOLER|LASER_COOLANT_FLOW_METER = build_src_filter=+<src/feature/cooler.cpp>
|
||||
HAS_MOTOR_CURRENT_DAC = build_src_filter=+<src/feature/dac>
|
||||
DIRECT_STEPPING = build_src_filter=+<src/feature/direct_stepping.cpp> +<src/gcode/motion/G6.cpp>
|
||||
EMERGENCY_PARSER = build_src_filter=+<src/feature/e_parser.cpp> -<src/gcode/control/M108_*.cpp>
|
||||
EASYTHREED_UI = build_src_filter=+<src/feature/easythreed_ui.cpp>
|
||||
I2C_POSITION_ENCODERS = build_src_filter=+<src/feature/encoder_i2c.cpp>
|
||||
IIC_BL24CXX_EEPROM = build_src_filter=+<src/libs/BL24CXX.cpp>
|
||||
SPI_FLASH = build_src_filter=+<src/libs/W25Qxx.cpp>
|
||||
HAS_ETHERNET = build_src_filter=+<src/feature/ethernet.cpp> +<src/gcode/feature/network/M552-M554.cpp>
|
||||
HAS_FANCHECK = build_src_filter=+<src/feature/fancheck.cpp> +<src/gcode/temp/M123.cpp>
|
||||
HAS_FANMUX = build_src_filter=+<src/feature/fanmux.cpp>
|
||||
FILAMENT_WIDTH_SENSOR = build_src_filter=+<src/feature/filwidth.cpp> +<src/gcode/feature/filwidth>
|
||||
FWRETRACT = build_src_filter=+<src/feature/fwretract.cpp> +<src/gcode/feature/fwretract>
|
||||
HOST_ACTION_COMMANDS = build_src_filter=+<src/feature/host_actions.cpp>
|
||||
HOTEND_IDLE_TIMEOUT = build_src_filter=+<src/feature/hotend_idle.cpp>
|
||||
JOYSTICK = build_src_filter=+<src/feature/joystick.cpp>
|
||||
BLINKM = build_src_filter=+<src/feature/leds/blinkm.cpp>
|
||||
HAS_COLOR_LEDS = build_src_filter=+<src/feature/leds/leds.cpp> +<src/gcode/feature/leds/M150.cpp>
|
||||
PCA9533 = build_src_filter=+<src/feature/leds/pca9533.cpp>
|
||||
PCA9632 = build_src_filter=+<src/feature/leds/pca9632.cpp>
|
||||
PRINTER_EVENT_LEDS = build_src_filter=+<src/feature/leds/printer_event_leds.cpp>
|
||||
TEMP_STAT_LEDS = build_src_filter=+<src/feature/leds/tempstat.cpp>
|
||||
MAX7219_DEBUG = build_src_filter=+<src/feature/max7219.cpp> +<src/gcode/feature/leds/M7219.cpp>
|
||||
HAS_MEATPACK = build_src_filter=+<src/feature/meatpack.cpp>
|
||||
MIXING_EXTRUDER = build_src_filter=+<src/feature/mixing.cpp> +<src/gcode/feature/mixing/M163-M165.cpp>
|
||||
HAS_PRUSA_MMU1 = build_src_filter=+<src/feature/mmu/mmu.cpp>
|
||||
HAS_PRUSA_MMU2 = build_src_filter=+<src/feature/mmu/mmu2.cpp> +<src/gcode/feature/prusa_MMU2>
|
||||
PASSWORD_FEATURE = build_src_filter=+<src/feature/password> +<src/gcode/feature/password>
|
||||
ADVANCED_PAUSE_FEATURE = build_src_filter=+<src/feature/pause.cpp> +<src/gcode/feature/pause/M600.cpp> +<src/gcode/feature/pause/M603.cpp>
|
||||
PSU_CONTROL = build_src_filter=+<src/feature/power.cpp>
|
||||
HAS_POWER_MONITOR = build_src_filter=+<src/feature/power_monitor.cpp> +<src/gcode/feature/power_monitor>
|
||||
POWER_LOSS_RECOVERY = build_src_filter=+<src/feature/powerloss.cpp> +<src/gcode/feature/powerloss>
|
||||
HAS_PTC = build_src_filter=+<src/feature/probe_temp_comp.cpp> +<src/gcode/calibrate/G76_M871.cpp>
|
||||
HAS_FILAMENT_SENSOR = build_src_filter=+<src/feature/runout.cpp> +<src/gcode/feature/runout>
|
||||
(EXT|MANUAL)_SOLENOID.* = build_src_filter=+<src/feature/solenoid.cpp> +<src/gcode/control/M380_M381.cpp>
|
||||
MK2_MULTIPLEXER = build_src_filter=+<src/feature/snmm.cpp>
|
||||
HAS_CUTTER = build_src_filter=+<src/feature/spindle_laser.cpp> +<src/gcode/control/M3-M5.cpp>
|
||||
HAS_DRIVER_SAFE_POWER_PROTECT = build_src_filter=+<src/feature/stepper_driver_safety.cpp>
|
||||
EXPERIMENTAL_I2CBUS = build_src_filter=+<src/feature/twibus.cpp> +<src/gcode/feature/i2c>
|
||||
G26_MESH_VALIDATION = build_src_filter=+<src/gcode/bedlevel/G26.cpp>
|
||||
ASSISTED_TRAMMING = build_src_filter=+<src/feature/tramming.cpp> +<src/gcode/bedlevel/G35.cpp>
|
||||
HAS_MESH = build_src_filter=+<src/gcode/bedlevel/G42.cpp>
|
||||
HAS_LEVELING = build_src_filter=+<src/gcode/bedlevel/M420.cpp> +<src/feature/bedlevel/bedlevel.cpp>
|
||||
MECHANICAL_GANTRY_CAL.+ = build_src_filter=+<src/gcode/calibrate/G34.cpp>
|
||||
Z_MULTI_ENDSTOPS|Z_STEPPER_AUTO_ALIGN = build_src_filter=+<src/gcode/calibrate/G34_M422.cpp>
|
||||
Z_STEPPER_AUTO_ALIGN = build_src_filter=+<src/feature/z_stepper_align.cpp>
|
||||
DELTA_AUTO_CALIBRATION = build_src_filter=+<src/gcode/calibrate/G33.cpp>
|
||||
CALIBRATION_GCODE = build_src_filter=+<src/gcode/calibrate/G425.cpp>
|
||||
Z_MIN_PROBE_REPEATABILITY_TEST = build_src_filter=+<src/gcode/calibrate/M48.cpp>
|
||||
M100_FREE_MEMORY_WATCHER = build_src_filter=+<src/gcode/calibrate/M100.cpp>
|
||||
BACKLASH_GCODE = build_src_filter=+<src/gcode/calibrate/M425.cpp>
|
||||
IS_KINEMATIC = build_src_filter=+<src/gcode/calibrate/M665.cpp>
|
||||
HAS_EXTRA_ENDSTOPS = build_src_filter=+<src/gcode/calibrate/M666.cpp>
|
||||
SKEW_CORRECTION_GCODE = build_src_filter=+<src/gcode/calibrate/M852.cpp>
|
||||
DIRECT_PIN_CONTROL = build_src_filter=+<src/gcode/control/M42.cpp> +<src/gcode/control/M226.cpp>
|
||||
PINS_DEBUGGING = build_src_filter=+<src/gcode/config/M43.cpp>
|
||||
HAS_MULTI_EXTRUDER = build_src_filter=+<src/gcode/config/M217.cpp>
|
||||
HAS_HOTEND_OFFSET = build_src_filter=+<src/gcode/config/M218.cpp>
|
||||
EDITABLE_SERVO_ANGLES = build_src_filter=+<src/gcode/config/M281.cpp>
|
||||
PIDTEMP = build_src_filter=+<src/gcode/config/M301.cpp>
|
||||
PREVENT_COLD_EXTRUSION = build_src_filter=+<src/gcode/config/M302.cpp>
|
||||
PIDTEMPBED = build_src_filter=+<src/gcode/config/M304.cpp>
|
||||
HAS_USER_THERMISTORS = build_src_filter=+<src/gcode/config/M305.cpp>
|
||||
PIDTEMPCHAMBER = build_src_filter=+<src/gcode/config/M309.cpp>
|
||||
SD_ABORT_ON_ENDSTOP_HIT = build_src_filter=+<src/gcode/config/M540.cpp>
|
||||
BAUD_RATE_GCODE = build_src_filter=+<src/gcode/config/M575.cpp>
|
||||
HAS_SMART_EFF_MOD = build_src_filter=+<src/gcode/config/M672.cpp>
|
||||
COOLANT_CONTROL|AIR_ASSIST = build_src_filter=+<src/gcode/control/M7-M9.cpp>
|
||||
AIR_EVACUATION = build_src_filter=+<src/gcode/control/M10-M11.cpp>
|
||||
HAS_SOFTWARE_ENDSTOPS = build_src_filter=+<src/gcode/control/M211.cpp>
|
||||
SERVO_DETACH_GCODE = build_src_filter=+<src/gcode/control/M282.cpp>
|
||||
HAS_DUPLICATION_MODE = build_src_filter=+<src/gcode/control/M605.cpp>
|
||||
SPI_FLASH_BACKUP = build_src_filter=+<src/gcode/control/M993_M994.cpp>
|
||||
PLATFORM_M997_SUPPORT = build_src_filter=+<src/gcode/control/M997.cpp>
|
||||
LIN_ADVANCE = build_src_filter=+<src/gcode/feature/advance>
|
||||
PHOTO_GCODE = build_src_filter=+<src/gcode/feature/camera>
|
||||
CONTROLLER_FAN_EDITABLE = build_src_filter=+<src/gcode/feature/controllerfan>
|
||||
HAS_ZV_SHAPING = build_src_filter=+<src/gcode/feature/input_shaping>
|
||||
GCODE_MACROS = build_src_filter=+<src/gcode/feature/macro>
|
||||
GRADIENT_MIX = build_src_filter=+<src/gcode/feature/mixing/M166.cpp>
|
||||
HAS_SAVED_POSITIONS = build_src_filter=+<src/gcode/feature/pause/G60.cpp> +<src/gcode/feature/pause/G61.cpp>
|
||||
PARK_HEAD_ON_PAUSE = build_src_filter=+<src/gcode/feature/pause/M125.cpp>
|
||||
FILAMENT_LOAD_UNLOAD_GCODES = build_src_filter=+<src/gcode/feature/pause/M701_M702.cpp>
|
||||
CNC_WORKSPACE_PLANES = build_src_filter=+<src/gcode/geometry/G17-G19.cpp>
|
||||
CNC_COORDINATE_SYSTEMS = build_src_filter=+<src/gcode/geometry/G53-G59.cpp>
|
||||
HAS_M206_COMMAND = build_src_filter=+<src/gcode/geometry/M206_M428.cpp>
|
||||
EXPECTED_PRINTER_CHECK = build_src_filter=+<src/gcode/host/M16.cpp>
|
||||
HOST_KEEPALIVE_FEATURE = build_src_filter=+<src/gcode/host/M113.cpp>
|
||||
AUTO_REPORT_POSITION = build_src_filter=+<src/gcode/host/M154.cpp>
|
||||
REPETIER_GCODE_M360 = build_src_filter=+<src/gcode/host/M360.cpp>
|
||||
HAS_GCODE_M876 = build_src_filter=+<src/gcode/host/M876.cpp>
|
||||
HAS_RESUME_CONTINUE = build_src_filter=+<src/gcode/lcd/M0_M1.cpp>
|
||||
SET_PROGRESS_MANUALLY = build_src_filter=+<src/gcode/lcd/M73.cpp>
|
||||
HAS_STATUS_MESSAGE = build_src_filter=+<src/gcode/lcd/M117.cpp>
|
||||
HAS_PREHEAT = build_src_filter=+<src/gcode/lcd/M145.cpp>
|
||||
HAS_LCD_CONTRAST = build_src_filter=+<src/gcode/lcd/M250.cpp>
|
||||
HAS_GCODE_M255 = build_src_filter=+<src/gcode/lcd/M255.cpp>
|
||||
HAS_LCD_BRIGHTNESS = build_src_filter=+<src/gcode/lcd/M256.cpp>
|
||||
HAS_SOUND = build_src_filter=+<src/gcode/lcd/M300.cpp>
|
||||
HAS_MULTI_LANGUAGE = build_src_filter=+<src/gcode/lcd/M414.cpp>
|
||||
TOUCH_SCREEN_CALIBRATION = build_src_filter=+<src/gcode/lcd/M995.cpp>
|
||||
ARC_SUPPORT = build_src_filter=+<src/gcode/motion/G2_G3.cpp>
|
||||
GCODE_MOTION_MODES = build_src_filter=+<src/gcode/motion/G80.cpp>
|
||||
BABYSTEPPING = build_src_filter=+<src/gcode/motion/M290.cpp> +<src/feature/babystep.cpp>
|
||||
Z_PROBE_SLED = build_src_filter=+<src/gcode/probe/G31_G32.cpp>
|
||||
G38_PROBE_TARGET = build_src_filter=+<src/gcode/probe/G38.cpp>
|
||||
MAGNETIC_PARKING_EXTRUDER = build_src_filter=+<src/gcode/probe/M951.cpp>
|
||||
HAS_MEDIA = build_src_filter=+<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>
|
||||
HAS_MEDIA_SUBCALLS = build_src_filter=+<src/gcode/sd/M32.cpp>
|
||||
GCODE_REPEAT_MARKERS = build_src_filter=+<src/feature/repeat.cpp> +<src/gcode/sd/M808.cpp>
|
||||
HAS_EXTRUDERS = build_src_filter=+<src/gcode/units/M82_M83.cpp> +<src/gcode/config/M221.cpp>
|
||||
HAS_HOTEND = build_src_filter=+<src/gcode/temp/M104_M109.cpp>
|
||||
HAS_FAN = build_src_filter=+<src/gcode/temp/M106_M107.cpp>
|
||||
HAS_HEATED_BED = build_src_filter=+<src/gcode/temp/M140_M190.cpp>
|
||||
HAS_HEATED_CHAMBER = build_src_filter=+<src/gcode/temp/M141_M191.cpp>
|
||||
HAS_COOLER = build_src_filter=+<src/gcode/temp/M143_M193.cpp>
|
||||
AUTO_REPORT_TEMPERATURES = build_src_filter=+<src/gcode/temp/M155.cpp>
|
||||
HAS_TEMP_PROBE = build_src_filter=+<src/gcode/temp/M192.cpp>
|
||||
HAS_PID_HEATING = build_src_filter=+<src/gcode/temp/M303.cpp>
|
||||
MPCTEMP = build_src_filter=+<src/gcode/temp/M306.cpp>
|
||||
INCH_MODE_SUPPORT = build_src_filter=+<src/gcode/units/G20_G21.cpp>
|
||||
TEMPERATURE_UNITS_SUPPORT = build_src_filter=+<src/gcode/units/M149.cpp>
|
||||
NEED_HEX_PRINT = build_src_filter=+<src/libs/hex_print.cpp>
|
||||
NEED_LSF = build_src_filter=+<src/libs/least_squares_fit.cpp>
|
||||
NOZZLE_PARK_FEATURE = build_src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/pause/G27.cpp>
|
||||
NOZZLE_CLEAN_FEATURE = build_src_filter=+<src/libs/nozzle.cpp> +<src/gcode/feature/clean>
|
||||
DELTA = build_src_filter=+<src/module/delta.cpp> +<src/gcode/calibrate/M666.cpp>
|
||||
POLARGRAPH = build_src_filter=+<src/module/polargraph.cpp>
|
||||
BEZIER_CURVE_SUPPORT = build_src_filter=+<src/module/planner_bezier.cpp> +<src/gcode/motion/G5.cpp>
|
||||
PRINTCOUNTER = build_src_filter=+<src/module/printcounter.cpp>
|
||||
HAS_BED_PROBE = build_src_filter=+<src/module/probe.cpp> +<src/gcode/probe/G30.cpp> +<src/gcode/probe/M401_M402.cpp> +<src/gcode/probe/M851.cpp>
|
||||
IS_SCARA = build_src_filter=+<src/module/scara.cpp>
|
||||
HAS_SERVOS = build_src_filter=+<src/module/servo.cpp> +<src/gcode/control/M280.cpp>
|
||||
MORGAN_SCARA = build_src_filter=+<src/gcode/scara>
|
||||
HAS_MICROSTEPS = build_src_filter=+<src/gcode/control/M350_M351.cpp>
|
||||
(ESP3D_)?WIFISUPPORT = AsyncTCP, ESP Async WebServer
|
||||
ESP3DLib=https://github.com/luc-github/ESP3DLib/archive/dc0f3d96c6.zip
|
||||
arduinoWebSockets=links2004/WebSockets@2.3.4
|
||||
luc-github/ESP32SSDP@1.1.1
|
||||
lib_ignore=ESPAsyncTCP
|
||||
build_flags=-DSRCHOME=${platformio.src_dir}/src -DHALHOME=SRCHOME
|
44
ini/lpc176x.ini
Normal file
44
ini/lpc176x.ini
Normal file
@ -0,0 +1,44 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# LPC176x Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# NXP LPC176x ARM Cortex-M3
|
||||
#
|
||||
[common_LPC]
|
||||
platform = https://github.com/p3p/pio-nxplpc-arduino-lpc176x/archive/0.1.3.zip
|
||||
platform_packages = framework-arduino-lpc176x@^0.2.8
|
||||
toolchain-gccarmnoneeabi@1.100301.220327
|
||||
board = nxp_lpc1768
|
||||
lib_ldf_mode = off
|
||||
lib_compat_mode = strict
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
Marlin/src/HAL/LPC1768/upload_extra_script.py
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/LPC1768> -<src/HAL/LPC1768/tft> +<src/HAL/shared/backtrace>
|
||||
lib_deps = ${common.lib_deps}
|
||||
Servo
|
||||
custom_marlin.USES_LIQUIDCRYSTAL = arduino-libraries/LiquidCrystal@~1.0.7
|
||||
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/1.5.0.zip
|
||||
build_flags = ${common.build_flags} -DU8G_HAL_LINKS -DPLATFORM_M997_SUPPORT
|
||||
-IMarlin/src/HAL/LPC1768/include -IMarlin/src/HAL/LPC1768/u8g
|
||||
# debug options for backtrace
|
||||
#-funwind-tables
|
||||
#-mpoke-function-name
|
||||
|
||||
#
|
||||
# NXP LPC176x ARM Cortex-M3
|
||||
#
|
||||
[env:LPC1768]
|
||||
extends = common_LPC
|
||||
board = nxp_lpc1768
|
||||
|
||||
[env:LPC1769]
|
||||
extends = common_LPC
|
||||
board = nxp_lpc1769
|
142
ini/native.ini
Normal file
142
ini/native.ini
Normal file
@ -0,0 +1,142 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# Native / Simulation #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# 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
|
||||
build_src_flags = -Wall -IMarlin/src/HAL/LINUX/include
|
||||
build_unflags = -Wall
|
||||
lib_ldf_mode = off
|
||||
lib_deps =
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/LINUX>
|
||||
|
||||
#
|
||||
# Native Simulation
|
||||
# Builds with a small subset of available features
|
||||
# Required system libraries: SDL2, SDL2-net, OpenGL, GLM
|
||||
# sudo apt-get install python3-venv build-essential libsdl2-dev libsdl2-net-dev libglm-dev
|
||||
# See https://docs.platformio.org/en/latest/platforms/native.html for more information
|
||||
#
|
||||
# Tested with Linux (Mint 20) : gcc [9.3.0, 10.2.0]: libsdl2-dev[2.0.10], libsdl2-net-dev[2.0.1], libglm-dev[0.9.9.7, 0.9.9.8]
|
||||
#
|
||||
# For VSCode debugging see buildroot/share/PlatformIO/debugging/launch.json
|
||||
#
|
||||
[simulator_common]
|
||||
platform = native
|
||||
framework =
|
||||
build_flags = ${common.build_flags} -std=gnu++17 -D__PLAT_NATIVE_SIM__ -DU8G_HAL_LINKS
|
||||
-I/usr/include/SDL2 -IMarlin -IMarlin/src/HAL/NATIVE_SIM/u8g
|
||||
build_src_flags = -Wall -Wno-expansion-to-defined -Wno-deprecated-declarations -Wcast-align
|
||||
release_flags = -g0 -O3 -flto
|
||||
debug_build_flags = -fstack-protector-strong -g -g3 -ggdb
|
||||
lib_compat_mode = off
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/NATIVE_SIM>
|
||||
lib_deps = ${common.lib_deps}
|
||||
MarlinSimUI=https://github.com/p3p/MarlinSimUI/archive/8791f3ff43.zip
|
||||
Adafruit NeoPixel=https://github.com/p3p/Adafruit_NeoPixel/archive/c6b319f447.zip
|
||||
LiquidCrystal=https://github.com/p3p/LiquidCrystal/archive/322fb5fc23.zip
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/simulator.py
|
||||
|
||||
[simulator_linux]
|
||||
extends = simulator_common
|
||||
build_flags = ${simulator_common.build_flags} -ldl -lpthread -lSDL2 -lSDL2_net -lGL
|
||||
|
||||
[env:simulator_linux_debug]
|
||||
extends = simulator_linux
|
||||
build_type = debug
|
||||
|
||||
[env:simulator_linux_release]
|
||||
extends = simulator_linux
|
||||
build_type = release
|
||||
build_flags = ${simulator_linux.build_flags} ${simulator_linux.release_flags}
|
||||
|
||||
#
|
||||
# Simulator for macOS (MacPorts)
|
||||
#
|
||||
|
||||
#
|
||||
# MacPorts:
|
||||
# sudo port install gcc12 glm libsdl2 libsdl2_net
|
||||
#
|
||||
# cd /opt/local/bin
|
||||
# sudo rm gcc g++ cc ld
|
||||
# sudo ln -s gcc-mp-12 gcc ; sudo ln -s g++-mp-12 g++ ; sudo ln -s g++ cc
|
||||
# sudo ln -s ld-classic ld
|
||||
# cd -
|
||||
# rehash
|
||||
#
|
||||
# Use 'sudo port install mesa' to get a <GL/gl.h> if no Xcode is installed.
|
||||
# If Xcode is installed be sure to run `xcode-select --install` first.
|
||||
#
|
||||
#==================================================================================
|
||||
#
|
||||
# Homebrew:
|
||||
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||
#
|
||||
# brew install gcc@12 glm sdl2 sdl2_net
|
||||
#
|
||||
# cd /opt/homebrew/bin
|
||||
# sudo rm -f gcc g++ cc
|
||||
# sudo ln -s gcc-12 gcc ; sudo ln -s g++-12 g++ ; sudo ln -s g++ cc
|
||||
# cd -
|
||||
#
|
||||
# Use 'brew install mesa' to get a <GL/gl.h> if no Xcode is installed.
|
||||
# If Xcode is installed be sure to run `xcode-select --install` first.
|
||||
#
|
||||
|
||||
[simulator_macos]
|
||||
build_unflags = -lGL -fstack-protector-strong
|
||||
build_flags =
|
||||
-I/opt/local/include
|
||||
-I/opt/local/include/freetype2
|
||||
-I/opt/local/include/SDL2/
|
||||
-L/opt/local/lib
|
||||
-Wl,-framework,OpenGl
|
||||
-Wl,-framework,CoreFoundation
|
||||
-lSDL2
|
||||
-fno-stack-protector
|
||||
|
||||
[env:simulator_macos_debug]
|
||||
extends = env:simulator_linux_debug
|
||||
build_flags = ${env:simulator_linux_debug.build_flags} ${simulator_macos.build_flags} -ggdb -Og -D_THREAD_SAFE
|
||||
build_unflags = ${simulator_macos.build_unflags}
|
||||
custom_verbose = 0
|
||||
custom_gcc = g++
|
||||
|
||||
[env:simulator_macos_release]
|
||||
extends = env:simulator_linux_release
|
||||
build_flags = ${env:simulator_linux_release.build_flags} ${simulator_macos.build_flags}
|
||||
build_unflags = ${simulator_macos.build_unflags}
|
||||
custom_verbose = 0
|
||||
custom_gcc = g++
|
||||
|
||||
#
|
||||
# Simulator for Windows 10
|
||||
#
|
||||
# MSYS2 mingw-w64-x86_64 with these packages:
|
||||
# pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-glm mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_net mingw-w64-x86_64-dlfcn
|
||||
#
|
||||
# Ensure the following paths have been added to the PATH system environment variable:
|
||||
# C:\msys64\mingw64\bin, C:\msys64\ucrt64\bin, C:\msys64\usr\bin
|
||||
#
|
||||
|
||||
[env:simulator_windows]
|
||||
extends = simulator_common
|
||||
build_src_flags = ${simulator_common.build_src_flags} -fpermissive
|
||||
build_flags = ${simulator_common.build_flags} ${simulator_common.debug_build_flags}
|
||||
-IC:\\msys64\\mingw64\\include\\SDL2 -fno-stack-protector -Wl,-subsystem,windows
|
||||
-ldl -lmingw32 -lSDL2main -lSDL2 -lSDL2_net -lopengl32 -lssp
|
||||
build_type = debug
|
97
ini/renamed.ini
Normal file
97
ini/renamed.ini
Normal file
@ -0,0 +1,97 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# Renamed Environments #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# A platform that doesn't match anything in pins.h
|
||||
#
|
||||
|
||||
[renamed]
|
||||
platform = ststm32
|
||||
board = genericSTM32F103RE
|
||||
|
||||
#
|
||||
# List of environment names that are no longer used
|
||||
#
|
||||
|
||||
[env:megaatmega1280] ;=> mega1280
|
||||
extends = renamed
|
||||
|
||||
[env:megaatmega2560] ;=> mega2560
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RET6_creality_maple] ;=> STM32F103RE_creality_maple
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RET6_creality] ;=> STM32F103RE_creality
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RET6_creality_xfer] ;=> STM32F103RE_creality_xfer
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RC_btt_512K] ;=> STM32F103RE_btt
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RC_btt_512K_USB] ;=> STM32F103RE_btt_USB
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RC_btt_512K_maple] ;=> STM32F103RE_btt_maple
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RC_btt_512K_USB_maple] ;=> STM32F103RE_btt_USB_maple
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103RC_meeb] ;=> STM32F103RC_meeb_maple
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F103VE_GTM32] ;=> STM32F103VE_GTM32_maple
|
||||
extends = renamed
|
||||
|
||||
[env:mks_robin_nano35] ;=> mks_robin_nano_v1v2
|
||||
extends = renamed
|
||||
|
||||
[env:mks_robin_nano35_maple] ;=> mks_robin_nano_v1v2_maple
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_V1] ;=> STM32F446ZE_btt
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_V1_USB] ;=> STM32F446ZE_btt_usb_flash_drive
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_PRO_V1_F429] ;=> STM32F429ZG_btt
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_PRO_V1_F429_USB] ;=> STM32F429ZG_btt_usb_flash_drive
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_V1_F407] ;=> STM32F407ZE_btt
|
||||
extends = renamed
|
||||
|
||||
[env:BIGTREE_OCTOPUS_V1_F407_USB] ;=> STM32F407ZE_btt_usb_flash_drive
|
||||
extends = renamed
|
||||
|
||||
[env:STM32H723Vx_btt] ;=> STM32H723VG_btt
|
||||
extends = renamed
|
||||
|
||||
[env:STM32H723Zx_btt] ;=> STM32H723ZE_btt
|
||||
extends = renamed
|
||||
|
||||
[env:STM32H743Vx_btt] ;=> STM32H743VI_btt
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F446ZE_btt_USB] ;=> STM32F446ZE_btt_usb_flash_drive
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F429ZG_btt_USB] ;=> STM32F429ZG_btt_usb_flash_drive
|
||||
extends = renamed
|
||||
|
||||
[env:STM32F407ZE_btt_USB] ;=> STM32F407ZE_btt_usb_flash_drive
|
||||
extends = renamed
|
26
ini/samd21.ini
Normal file
26
ini/samd21.ini
Normal file
@ -0,0 +1,26 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# SAMD21 Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
|
||||
#
|
||||
[env:SAMD21_minitronics20]
|
||||
platform = atmelsam
|
||||
board = minitronics20
|
||||
build_flags = ${common.build_flags} -std=gnu++17
|
||||
-DUSBCON -DUSBD_USE_CDC -D__SAMD21__ -DARDUINO_SAMD_MINITRONICS20 -Wno-deprecated-declarations -DDEBUG
|
||||
-IMarlin/src/HAL/SAMD21/u8g
|
||||
build_unflags = -std=gnu++11
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/SAMD21>
|
||||
lib_deps = ${common.lib_deps}
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/SAMD21_minitronics20.py
|
||||
debug_tool = atmel-ice
|
27
ini/samd51.ini
Normal file
27
ini/samd51.ini
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# SAMD51 Architecture #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# Adafruit Grand Central M4 (Atmel SAMD51P20A ARM Cortex-M4)
|
||||
#
|
||||
[env:SAMD51_grandcentral_m4]
|
||||
platform = atmelsam
|
||||
board = adafruit_grandcentral_m4
|
||||
build_flags = ${common.build_flags} -std=gnu++17 -DUSE_TINYUSB
|
||||
build_unflags = -std=gnu++11
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/SAMD51>
|
||||
lib_deps = ${common.lib_deps}
|
||||
SoftwareSerialM
|
||||
Adafruit TinyUSB Library
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/SAMD51_grandcentral_m4.py
|
||||
custom_marlin.HAS_MEDIA = SdFat - Adafruit Fork, Adafruit SPIFlash
|
||||
debug_tool = jlink
|
40
ini/stm32-common.ini
Normal file
40
ini/stm32-common.ini
Normal file
@ -0,0 +1,40 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
####################################
|
||||
#
|
||||
# HAL/STM32 Common Environments
|
||||
#
|
||||
####################################
|
||||
|
||||
[common_stm32]
|
||||
platform = ststm32@~12.1
|
||||
board_build.core = stm32
|
||||
build_flags = ${common.build_flags} -std=gnu++14
|
||||
-DHAL_STM32 -DPLATFORM_M997_SUPPORT
|
||||
-DUSBCON -DUSBD_USE_CDC -DTIM_IRQ_PRIO=13 -DADC_RESOLUTION=12
|
||||
build_unflags = -std=gnu++11
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> -<src/HAL/STM32/tft> +<src/HAL/shared/backtrace>
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
||||
|
||||
#
|
||||
# STM32 board based on a variant.
|
||||
#
|
||||
[stm32_variant]
|
||||
extends = common_stm32
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
||||
|
||||
#
|
||||
# USB Flash Drive mix-ins for STM32
|
||||
#
|
||||
[stm_flash_drive]
|
||||
# Arduino_Core_STM32 uses usb-host-msc-cdc-msc-3 branch
|
||||
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/39f37d6d6a.zip
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DHAL_HCD_MODULE_ENABLED
|
||||
-DUSBHOST -DUSBH_IRQ_PRIO=3 -DUSBH_IRQ_SUBPRIO=4
|
51
ini/stm32f0.ini
Normal file
51
ini/stm32f0.ini
Normal file
@ -0,0 +1,51 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32F0 Architecture
|
||||
#
|
||||
# Naming Example: STM32F070CBT6
|
||||
#
|
||||
# F : Foundation
|
||||
# 0 : Cortex M0 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 70 : Line/Features
|
||||
# C : 48 pins (R:64 or 66, F:20)
|
||||
# B : 128KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# Malyan M200 v2 (STM32F070RB)
|
||||
#
|
||||
[env:STM32F070RB_malyan]
|
||||
extends = common_stm32
|
||||
board = marlin_malyanM200v2
|
||||
build_flags = ${common_stm32.build_flags} -DHAL_PCD_MODULE_ENABLED
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants
|
||||
-fno-strict-aliasing -DCUSTOM_STARTUP_FILE
|
||||
|
||||
#
|
||||
# Malyan M200 v2 (STM32F070CB)
|
||||
#
|
||||
[env:STM32F070CB_malyan]
|
||||
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]
|
||||
extends = common_stm32
|
||||
board = malyanm300_f070cb
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> -<src/HAL/STM32/tft>
|
403
ini/stm32f1-maple.ini
Normal file
403
ini/stm32f1-maple.ini
Normal file
@ -0,0 +1,403 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32F1 Architecture with LibMaple STM32F1 HAL
|
||||
#
|
||||
# Naming Example: STM32F103RCT6
|
||||
#
|
||||
# F : Foundation (sometimes High Performance F2/F4)
|
||||
# 1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 03 : Line/Features
|
||||
# R : 64 or 66 pins (V:100, Z:144, I:176)
|
||||
# C : 256KB Flash-memory (D:384KB, E:512KB, G:1024KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# HAL/STM32F1 Common Environment values
|
||||
#
|
||||
[STM32F1_maple]
|
||||
platform = ststm32@~12.1
|
||||
board_build.core = maple
|
||||
build_flags = !python Marlin/src/HAL/STM32F1/build_flags.py
|
||||
${common.build_flags} -DARDUINO_ARCH_STM32 -DMAPLE_STM32F1 -DPLATFORM_M997_SUPPORT
|
||||
build_unflags = -std=gnu11 -std=gnu++11
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32F1> -<src/HAL/STM32F1/tft>
|
||||
lib_ignore = SPI, FreeRTOS701, FreeRTOS821
|
||||
lib_deps = ${common.lib_deps}
|
||||
SoftwareSerialM
|
||||
platform_packages = tool-stm32duino
|
||||
extra_scripts = ${common.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/fix_framework_weakness.py
|
||||
pre:buildroot/share/PlatformIO/scripts/stm32_serialbuffer.py
|
||||
buildroot/share/PlatformIO/scripts/custom_board.py
|
||||
buildroot/share/PlatformIO/scripts/offset_and_rename.py
|
||||
|
||||
#
|
||||
# Generic STM32F103RC environment
|
||||
#
|
||||
[env:STM32F103RC_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RC
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# Generic STM32F103RE environment
|
||||
#
|
||||
[env:STM32F103RE_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RE
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# MEEB_3DP (STM32F103RCT6 with 512K)
|
||||
#
|
||||
[env:STM32F103RC_meeb_maple]
|
||||
extends = env:STM32F103RC_maple
|
||||
board = marlin_maple_MEEB_3DP
|
||||
build_flags = ${env:STM32F103RC_maple.build_flags}
|
||||
-DDEBUG_LEVEL=0
|
||||
-DSS_TIMER=4
|
||||
-DSTM32_FLASH_SIZE=512
|
||||
-DHSE_VALUE=12000000U
|
||||
-DUSE_USB_COMPOSITE
|
||||
-DVECT_TAB_OFFSET=0x2000
|
||||
-DGENERIC_BOOTLOADER
|
||||
board_build.ldscript = STM32F103RC_MEEB_3DP.ld
|
||||
extra_scripts = ${env:STM32F103RC_maple.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/STM32F103RC_MEEB_3DP.py
|
||||
lib_deps = ${env:STM32F103RC_maple.lib_deps}
|
||||
USBComposite for STM32F1@0.91
|
||||
custom_marlin.NEOPIXEL_LED = Adafruit NeoPixel=https://github.com/ccccmagicboy/Adafruit_NeoPixel#meeb_3dp_use
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
|
||||
#
|
||||
# FYSETC STM32F103RC
|
||||
#
|
||||
[env:STM32F103RC_fysetc_maple]
|
||||
extends = env:STM32F103RC_maple
|
||||
extra_scripts = ${env:STM32F103RC_maple.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
||||
build_flags = ${env:STM32F103RC_maple.build_flags} -DDEBUG_LEVEL=0
|
||||
lib_ldf_mode = chain
|
||||
debug_tool = stlink
|
||||
upload_protocol = serial
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
|
||||
#
|
||||
# STM32F103RC_btt_maple ............. RCT6 with 256K
|
||||
# STM32F103RC_btt_USB_maple ......... RCT6 with 256K with USB Media Share Support
|
||||
#
|
||||
[env:STM32F103RC_btt_maple]
|
||||
extends = env:STM32F103RC_maple
|
||||
board_build.address = 0x08007000
|
||||
board_build.ldscript = STM32F103RC_SKR_MINI_256K.ld
|
||||
build_flags = ${env:STM32F103RC_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||
monitor_speed = 115200
|
||||
|
||||
[env:STM32F103RC_btt_USB_maple]
|
||||
extends = env:STM32F103RC_btt_maple
|
||||
build_flags = ${env:STM32F103RC_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
||||
lib_deps = ${env:STM32F103RC_btt_maple.lib_deps}
|
||||
USBComposite for STM32F1@0.91
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103RET6)
|
||||
#
|
||||
[env:STM32F103RE_creality_maple]
|
||||
extends = env:STM32F103RE_maple
|
||||
build_flags = ${env:STM32F103RE_maple.build_flags} -DTEMP_TIMER_CHAN=4
|
||||
board_build.address = 0x08007000
|
||||
board_build.ldscript = creality.ld
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# Creality 256K (STM32F103RCT6)
|
||||
#
|
||||
[env:STM32F103RC_creality_maple]
|
||||
extends = env:STM32F103RC_maple
|
||||
build_flags = ${env:STM32F103RC_maple.build_flags} -DTEMP_TIMER_CHAN=4
|
||||
board_build.address = 0x08007000
|
||||
board_build.ldscript = creality256k.ld
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103RE) for new 64KiB bootloader (CR-10 Smart Pro printer)
|
||||
#
|
||||
[env:STM32F103RE_creality_smartPro_maple]
|
||||
extends = env:STM32F103RE_creality_maple
|
||||
board_build.address = 0x08010000
|
||||
board_build.ldscript = crealityPro.ld
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
|
||||
#
|
||||
# STM32F103RE_btt_maple ............. RET6
|
||||
# STM32F103RE_btt_USB_maple ......... RET6 with USB Media Share Support
|
||||
#
|
||||
[env:STM32F103RE_btt_maple]
|
||||
extends = env:STM32F103RE_maple
|
||||
board_build.address = 0x08007000
|
||||
board_build.ldscript = STM32F103RE_SKR_MINI_512K.ld
|
||||
build_flags = ${env:STM32F103RE_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
[env:STM32F103RE_btt_USB_maple]
|
||||
extends = env:STM32F103RE_btt_maple
|
||||
build_flags = ${env:STM32F103RE_btt_maple.build_flags} -DUSE_USB_COMPOSITE
|
||||
lib_deps = ${env:STM32F103RE_btt_maple.lib_deps}
|
||||
USBComposite for STM32F1@0.91
|
||||
|
||||
#
|
||||
# Geeetech GTM32 (STM32F103VET6)
|
||||
#
|
||||
[env:STM32F103VE_GTM32_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
build_flags = ${STM32F1_maple.build_flags}
|
||||
-ffunction-sections -fdata-sections -nostdlib -MMD
|
||||
-DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1 -DBOARD_generic_stm32f103v
|
||||
-DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DVECT_TAB_ADDR=0x8000000
|
||||
-DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
||||
upload_protocol = serial
|
||||
|
||||
#
|
||||
# Longer 3D board in Alfawise U20 (STM32F103VET6)
|
||||
#
|
||||
[env:STM32F103VE_longer_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
board_build.address = 0x08010000
|
||||
board_build.rename = project.bin
|
||||
board_build.ldscript = STM32F103VE_longer.ld
|
||||
build_flags = ${STM32F1_maple.build_flags}
|
||||
-DMCU_STM32F103VE -DSTM32F1xx -USERIAL_USB -DU20 -DTS_V12
|
||||
build_unflags = ${STM32F1_maple.build_unflags}
|
||||
-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DERROR_LED_PORT=GPIOE -DERROR_LED_PIN=6
|
||||
|
||||
#
|
||||
# MKS Robin Mini (STM32F103VET6)
|
||||
#
|
||||
[env:mks_robin_mini_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
board_build.address = 0x08007000
|
||||
board_build.encrypt_mks = Robin_mini.bin
|
||||
board_build.ldscript = mks_robin_mini.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE
|
||||
|
||||
#
|
||||
# MKS Robin Nano v1.x and v2 (STM32F103VET6)
|
||||
#
|
||||
[env:mks_robin_nano_v1v2_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
board_build.address = 0x08007000
|
||||
board_build.encrypt_mks = Robin_nano35.bin
|
||||
board_build.ldscript = mks_robin_nano.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
|
||||
|
||||
#
|
||||
# MKS Robin (STM32F103ZET6)
|
||||
#
|
||||
[env:mks_robin_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103ZE
|
||||
board_build.address = 0x08007000
|
||||
board_build.encrypt_mks = Robin.bin
|
||||
board_build.ldscript = mks_robin.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DSS_TIMER=4 -DSTM32_XL_DENSITY
|
||||
|
||||
#
|
||||
# MKS Robin Pro (STM32F103ZET6)
|
||||
#
|
||||
[env:mks_robin_pro_maple]
|
||||
extends = env:mks_robin_maple
|
||||
board_build.address = 0x08007000
|
||||
board_build.encrypt_mks = Robin_pro.bin
|
||||
board_build.ldscript = mks_robin_pro.ld
|
||||
|
||||
#
|
||||
# TRIGORILLA PRO (STM32F103ZET6)
|
||||
#
|
||||
[env:trigorilla_pro_maple]
|
||||
extends = env:mks_robin_maple
|
||||
|
||||
#
|
||||
# MKS Robin E3D (STM32F103RCT6) and
|
||||
# MKS Robin E3 with TMC2209
|
||||
#
|
||||
[env:mks_robin_e3_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RC
|
||||
board_build.address = 0x08005000
|
||||
board_build.encrypt_mks = Robin_e3.bin
|
||||
board_build.ldscript = mks_robin_e3.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||
|
||||
#
|
||||
# MKS Robin E3p (STM32F103VET6)
|
||||
# - LVGL UI
|
||||
#
|
||||
[env:mks_robin_e3p_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
board_build.address = 0x08007000
|
||||
board_build.encrypt_mks = Robin_e3p.bin
|
||||
board_build.ldscript = mks_robin_e3p.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DMCU_STM32F103VE -DSS_TIMER=4
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# MKS Robin Lite/Lite2 (STM32F103RCT6)
|
||||
#
|
||||
[env:mks_robin_lite_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RC
|
||||
board_build.address = 0x08005000
|
||||
board_build.encrypt_mks = mksLite.bin
|
||||
board_build.ldscript = mks_robin_lite.ld
|
||||
|
||||
#
|
||||
# MKS ROBIN LITE3 (STM32F103RCT6)
|
||||
#
|
||||
[env:mks_robin_lite3_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RC
|
||||
board_build.address = 0x08005000
|
||||
board_build.encrypt_mks = mksLite3.bin
|
||||
board_build.ldscript = mks_robin_lite.ld
|
||||
|
||||
#
|
||||
# JGAurora A5S A1 (STM32F103ZET6)
|
||||
#
|
||||
[env:jgaurora_a5s_a1_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103ZE
|
||||
board_build.address = 0x0800A000
|
||||
board_build.ldscript = jgaurora_a5s_a1.ld
|
||||
extra_scripts = ${STM32F1_maple.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
||||
build_flags = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
|
||||
|
||||
#
|
||||
# Malyan M200 (STM32F103CB)
|
||||
#
|
||||
[env:STM32F103CB_malyan_maple]
|
||||
extends = STM32F1_maple
|
||||
board = marlin_malyanM200
|
||||
build_flags = ${STM32F1_maple.build_flags}
|
||||
-DMCU_STM32F103CB -D__STM32F1__=1 -std=c++1y -DSERIAL_USB -ffunction-sections -fdata-sections
|
||||
-Wl,--gc-sections -DDEBUG_LEVEL=0
|
||||
lib_ignore = ${STM32F1_maple.lib_ignore}
|
||||
SoftwareSerialM
|
||||
|
||||
#
|
||||
# Chitu boards like Tronxy X5s (STM32F103ZET6)
|
||||
#
|
||||
[env:chitu_f103_maple]
|
||||
extends = STM32F1_maple
|
||||
board = marlin_maple_CHITU_F103
|
||||
extra_scripts = ${STM32F1_maple.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/STM32F1_create_variant.py
|
||||
buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
||||
build_flags = ${STM32F1_maple.build_flags} -DSTM32F1xx -DSTM32_XL_DENSITY
|
||||
build_unflags = ${STM32F1_maple.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_maple]
|
||||
extends = env:chitu_f103_maple
|
||||
build_flags = ${env:chitu_f103_maple.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
|
||||
|
||||
#
|
||||
# FLYmaker FLY Mini (STM32F103RCT6)
|
||||
#
|
||||
[env:FLY_MINI_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103RC
|
||||
board_build.address = 0x08005000
|
||||
board_build.ldscript = fly_mini.ld
|
||||
build_flags = ${STM32F1_maple.build_flags} -DDEBUG_LEVEL=0 -DSS_TIMER=4
|
||||
|
||||
#
|
||||
# Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
|
||||
#
|
||||
# STM32F103RC_ZM3E2_USB_maple ........... RCT6 with 256K
|
||||
# STM32F103VC_ZM3E4_USB_maple ........... VCT6 with 256K
|
||||
# STM32F103VE_ZM3E4V2_USB_maple ......... VET6 with 512K
|
||||
#
|
||||
[ZONESTAR_ZM3E_maple]
|
||||
extends = STM32F1_maple
|
||||
platform_packages = tool-stm32duino
|
||||
board_build.address = 0x08005000
|
||||
board_upload.maximum_size = 237568
|
||||
build_flags = ${STM32F1_maple.build_flags}
|
||||
-D__STM32F1__=1 -DDEBUG_LEVEL=0 -DSS_TIMER=4 -DSERIAL_USB
|
||||
lib_deps = ${STM32F1_maple.lib_deps}
|
||||
USBComposite for STM32F1@0.91
|
||||
lib_ignore = Adafruit NeoPixel, SPI, SailfishLCD, SailfishRGB_LED, SlowSoftI2CMaster, TMCStepper
|
||||
|
||||
[env:STM32F103RC_ZM3E2_USB_maple]
|
||||
extends = ZONESTAR_ZM3E_maple
|
||||
board = genericSTM32F103RC
|
||||
board_build.ldscript = ZONESTAR_ZM3E_256K.ld
|
||||
|
||||
[env:STM32F103VC_ZM3E4_USB_maple]
|
||||
extends = ZONESTAR_ZM3E_maple
|
||||
board = genericSTM32F103VC
|
||||
board_build.ldscript = ZONESTAR_ZM3E_256K.ld
|
||||
build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
|
||||
|
||||
[env:STM32F103VE_ZM3E4V2_USB_maple]
|
||||
extends = ZONESTAR_ZM3E_maple
|
||||
board = genericSTM32F103VE
|
||||
board_build.ldscript = ZONESTAR_ZM3E_512K.ld
|
||||
build_flags = ${ZONESTAR_ZM3E_maple.build_flags} -DTONE_TIMER=1 -DTONE_CHANNEL=2
|
||||
board_upload.maximum_size = 499712
|
||||
|
||||
#
|
||||
# ERYONE ERY32 Mini (STM32F103VET6)
|
||||
#
|
||||
[env:ERYONE_ERY32_MINI_maple]
|
||||
extends = STM32F1_maple
|
||||
board = genericSTM32F103VE
|
||||
build_flags = ${STM32F1_maple.build_flags}
|
||||
-ffunction-sections -fdata-sections -nostdlib -MMD
|
||||
-DMCU_STM32F103VE -DARDUINO_GENERIC_STM32F103V -DARDUINO_ARCH_STM32F1
|
||||
-DDEBUG_LEVEL=DEBUG_NONE -DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1
|
||||
-DSS_TIMER=4
|
||||
board_build.variant = MARLIN_F103Vx
|
||||
board_build.ldscript = eryone_ery32_mini.ld
|
||||
board_build.address = 0x08004000
|
||||
build_unflags = ${STM32F1_maple.build_unflags}
|
||||
|
||||
#
|
||||
# Sovol (GD32F103RET6)
|
||||
#
|
||||
[env:GD32F103RET6_sovol_maple]
|
||||
extends = env:STM32F103RE_maple
|
||||
build_flags = ${STM32F1_maple.build_flags} -DTEMP_TIMER_CHAN=4
|
||||
board_build.address = 0x08007000
|
||||
board_build.ldscript = sovol.ld
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
484
ini/stm32f1.ini
Normal file
484
ini/stm32f1.ini
Normal file
@ -0,0 +1,484 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32F1 Architecture with unified STM32 HAL
|
||||
#
|
||||
# Naming Example: STM32F103RCT6
|
||||
#
|
||||
# F : Foundation (sometimes High Performance F2/F4)
|
||||
# 1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 03 : Line/Features
|
||||
# R : 64 or 66 pins (T:36, C:48, V:100, Z:144, I:176)
|
||||
# C : 256KB Flash-memory (B: 128KB, D:384KB, E:512KB, G:1024KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
[common_STM32F103RC_variant]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103RC
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
build_flags = ${stm32_variant.build_flags} -DDEBUG_LEVEL=0
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# STM32F103RE
|
||||
#
|
||||
[env:STM32F103RE]
|
||||
extends = common_stm32
|
||||
board = genericSTM32F103RE
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# STM32F103VE
|
||||
#
|
||||
[env:STM32F103VE]
|
||||
extends = common_stm32
|
||||
board = genericSTM32F103VE
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# STM32F103ZE
|
||||
#
|
||||
[env:STM32F103ZE]
|
||||
extends = common_stm32
|
||||
board = genericSTM32F103ZE
|
||||
monitor_speed = 115200
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
|
||||
#
|
||||
# STM32F103RC_btt ............. RCT6 with 256K
|
||||
# STM32F103RC_btt_USB ......... RCT6 with 256K with USB Media Share Support
|
||||
#
|
||||
[env:STM32F103RC_btt]
|
||||
extends = common_STM32F103RC_variant
|
||||
build_flags = ${common_STM32F103RC_variant.build_flags}
|
||||
-DTIMER_SERVO=TIM5
|
||||
board_build.offset = 0x7000
|
||||
board_upload.offset_address = 0x08007000
|
||||
|
||||
[env:STM32F103RC_btt_USB]
|
||||
extends = env:STM32F103RC_btt
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${env:STM32F103RC_btt.build_flags}
|
||||
-DUSE_USB_FS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# Panda Pi V2.9 - Standalone (STM32F103RC)
|
||||
# Headless, without direct Pi control, but potentially hosting OctoPrint, stepdaemon, etc.
|
||||
#
|
||||
[env:PANDA_PI_V29]
|
||||
extends = common_STM32F103RC_variant
|
||||
build_flags = ${common_STM32F103RC_variant.build_flags}
|
||||
-DTIMER_SERVO=TIM1
|
||||
board_build.offset = 0x5000
|
||||
board_upload.offset_address = 0x08005000
|
||||
lib_deps =
|
||||
markyue/Panda_SoftMasterI2C@1.0.3
|
||||
#
|
||||
# MKS Robin (STM32F103ZET6)
|
||||
# Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
|
||||
#
|
||||
[env:mks_robin]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
board_build.encrypt_mks = Robin.bin
|
||||
board_build.offset = 0x7000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
|
||||
#
|
||||
[env:mks_robin_e3]
|
||||
extends = common_STM32F103RC_variant
|
||||
board_build.encrypt_mks = Robin_e3.bin
|
||||
board_build.offset = 0x5000
|
||||
board_upload.offset_address = 0x08005000
|
||||
build_flags = ${common_STM32F103RC_variant.build_flags}
|
||||
-DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
|
||||
build_unflags = ${common_STM32F103RC_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
debug_tool = stlink
|
||||
|
||||
#
|
||||
# Creality (STM32F103Rx)
|
||||
#
|
||||
[STM32F103Rx_creality]
|
||||
extends = stm32_variant
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x7000
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
||||
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
||||
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
monitor_speed = 115200
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# Creality (STM32F103Rx)
|
||||
# With custom upload to SD via Marlin with binary protocol.
|
||||
# Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
|
||||
# If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
|
||||
# Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
|
||||
#
|
||||
[STM32F103Rx_creality_xfer]
|
||||
extends = STM32F103Rx_creality
|
||||
build_flags = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
|
||||
extra_scripts = ${STM32F103Rx_creality.extra_scripts}
|
||||
pre:buildroot/share/scripts/upload.py
|
||||
upload_protocol = custom
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103RE)
|
||||
#
|
||||
[env:STM32F103RE_creality]
|
||||
extends = STM32F103Rx_creality
|
||||
board = genericSTM32F103RE
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103RE) with custom binary upload to SD (see above).
|
||||
#
|
||||
[env:STM32F103RE_creality_xfer]
|
||||
extends = STM32F103Rx_creality_xfer
|
||||
board = genericSTM32F103RE
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103RE) for new 64KiB bootloader (CR-10 Smart Pro printer)
|
||||
#
|
||||
[env:STM32F103RE_creality_smartPro]
|
||||
extends = env:STM32F103RE_creality
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
|
||||
#
|
||||
# Trigorilla V0.0.6 (GD32F103)
|
||||
# modified version of env:STM32F103RE_creality
|
||||
#
|
||||
[env:trigorilla_v006]
|
||||
extends = env:STM32F103RE_creality
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
|
||||
#
|
||||
# Creality 256K (STM32F103RC)
|
||||
#
|
||||
[env:STM32F103RC_creality]
|
||||
extends = STM32F103Rx_creality
|
||||
board = genericSTM32F103RC
|
||||
|
||||
#
|
||||
# Creality 256K (STM32F103RC) with custom binary upload to SD (see above).
|
||||
#
|
||||
[env:STM32F103RC_creality_xfer]
|
||||
extends = STM32F103Rx_creality_xfer
|
||||
board = genericSTM32F103RC
|
||||
|
||||
#
|
||||
# Creality 512K (STM32F103VE)
|
||||
#
|
||||
[env:STM32F103VE_creality]
|
||||
extends = STM32F103Rx_creality
|
||||
board = genericSTM32F103VE
|
||||
board_build.variant = MARLIN_F103Vx
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
||||
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
||||
#
|
||||
# BigTreeTech SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
|
||||
#
|
||||
# STM32F103RE_btt ............. RET6
|
||||
# STM32F103RE_btt_USB ......... RET6 with USB Media Share Support
|
||||
#
|
||||
[env:STM32F103RE_btt]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103RE
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x7000
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
||||
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
||||
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
||||
monitor_speed = 115200
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
[env:STM32F103RE_btt_USB]
|
||||
extends = env:STM32F103RE_btt
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${env:STM32F103RE_btt.build_flags}
|
||||
-DUSE_USB_FS -DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${env:STM32F103RE_btt.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# Mingda MPX_ARM_MINI
|
||||
#
|
||||
[env:mingda_mpx_arm_mini]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
board_build.offset = 0x10000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# Malyan M200 (STM32F103CB)
|
||||
#
|
||||
[env:STM32F103CB_malyan]
|
||||
extends = common_stm32
|
||||
board = malyanm200_f103cb
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32> -<src/HAL/STM32/tft>
|
||||
|
||||
#
|
||||
# FLYmaker FLY Mini (STM32F103RCT6)
|
||||
#
|
||||
[env:FLY_MINI]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103RC
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
board_build.offset = 0x5000
|
||||
board_upload.offset_address = 0x08005000
|
||||
build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
|
||||
|
||||
#
|
||||
# (STM32F103VE_robin)
|
||||
#
|
||||
[STM32F103VE_robin]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103VE
|
||||
board_build.variant = MARLIN_F103Vx
|
||||
board_build.offset = 0x7000
|
||||
board_upload.offset_address = 0x08007000
|
||||
build_flags = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2 -DSS_TIMER=4
|
||||
|
||||
[mks_robin_nano_v1v2_common]
|
||||
extends = STM32F103VE_robin
|
||||
board_build.encrypt_mks = Robin_nano35.bin
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# MKS/ZNP Robin Nano V1.2 and V2 with native USB modification
|
||||
#
|
||||
[env:mks_robin_nano_v1v2_usbmod]
|
||||
extends = mks_robin_nano_v1v2_common
|
||||
|
||||
#
|
||||
# MKS Robin Nano V1.2 and V2
|
||||
#
|
||||
[env:mks_robin_nano_v1v2]
|
||||
extends = mks_robin_nano_v1v2_common
|
||||
build_flags = ${mks_robin_nano_v1v2_common.build_flags} -DENABLE_HWSERIAL3
|
||||
build_unflags = ${mks_robin_nano_v1v2_common.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# MKS Robin Mini (STM32F103VET6)
|
||||
#
|
||||
[env:mks_robin_mini]
|
||||
extends = STM32F103VE_robin
|
||||
board_build.encrypt_mks = Robin_mini.bin
|
||||
build_unflags = ${STM32F103VE_robin.build_unflags} -DSS_TIMER=4 -DTIMER_SERVO=TIM2
|
||||
build_flags = ${STM32F103VE_robin.build_flags} -DTIMER_SERVO=TIM1
|
||||
|
||||
#
|
||||
# MKS Robin E3p (STM32F103VET6)
|
||||
# - LVGL UI
|
||||
#
|
||||
[env:mks_robin_e3p]
|
||||
extends = STM32F103VE_robin
|
||||
board_build.encrypt_mks = Robin_e3p.bin
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# FLSUN QQS Pro (STM32F103VET6)
|
||||
# Hispeedv1 Robin mini variant
|
||||
#
|
||||
[env:flsun_hispeedv1]
|
||||
extends = STM32F103VE_robin
|
||||
board_build.encrypt_mks = Robin_mini.bin
|
||||
build_flags = ${STM32F103VE_robin.build_flags} -DENABLE_HWSERIAL3
|
||||
build_unflags = ${STM32F103VE_robin.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# MKS Robin Lite/Lite2 (STM32F103RCT6)
|
||||
#
|
||||
[env:mks_robin_lite]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103RC
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
board_build.encrypt_mks = mksLite.bin
|
||||
board_build.offset = 0x5000
|
||||
board_upload.offset_address = 0x08005000
|
||||
|
||||
#
|
||||
# MKS ROBIN LITE3 (STM32F103RCT6)
|
||||
#
|
||||
[env:mks_robin_lite3]
|
||||
extends = env:mks_robin_lite
|
||||
board_build.encrypt_mks = mksLite3.bin
|
||||
|
||||
#
|
||||
# MKS Robin Pro (STM32F103ZET6)
|
||||
#
|
||||
[env:mks_robin_pro]
|
||||
extends = env:mks_robin
|
||||
board_build.encrypt_mks = Robin_pro.bin
|
||||
|
||||
#
|
||||
# JGAurora A5S A1 (STM32F103ZET6)
|
||||
#
|
||||
[env:jgaurora_a5s_a1]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
board_build.offset = 0xA000
|
||||
board_upload.offset_address = 0x0800A000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F1xx -DSTM32_XL_DENSITY
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
||||
|
||||
#
|
||||
# FYSETC STM32F103RC
|
||||
#
|
||||
[env:STM32F103RC_fysetc]
|
||||
extends = common_STM32F103RC_variant
|
||||
extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
||||
build_flags = ${common_STM32F103RC_variant.build_flags} -DTIMER_SERVO=TIM1
|
||||
lib_ldf_mode = chain
|
||||
debug_tool = stlink
|
||||
upload_protocol = serial
|
||||
|
||||
#
|
||||
# Longer 3D board in Alfawise U20 (STM32F103VET6)
|
||||
#
|
||||
[env:STM32F103VE_longer]
|
||||
extends = stm32_variant
|
||||
lib_deps = ${common.lib_deps}
|
||||
https://github.com/tpruvot/STM32_Servo_OpenDrain/archive/2.0.zip
|
||||
board = genericSTM32F103VE
|
||||
board_build.variant = MARLIN_F103VE_LONGER
|
||||
board_build.rename = project.bin
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
build_flags = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
monitor_speed = 250000
|
||||
debug_tool = stlink
|
||||
|
||||
#
|
||||
# TRIGORILLA PRO (STM32F103ZET6)
|
||||
#
|
||||
[env:trigorilla_pro]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# TRIGORILLA PRO DISK BASED (STM32F103ZET6)
|
||||
# Builds for Trigorilla to update from SD
|
||||
#
|
||||
[env:trigorilla_pro_disk]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.crypt_chitu = update.zw
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
board_build.offset = 0x8800
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
||||
|
||||
|
||||
#
|
||||
# Chitu boards like Tronxy X5s (STM32F103ZET6)
|
||||
#
|
||||
[env:chitu_f103]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F103ZE
|
||||
board_build.crypt_chitu = update.cbd
|
||||
board_build.variant = MARLIN_F103Zx
|
||||
board_build.offset = 0x8800
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F1xx
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
||||
|
||||
#
|
||||
# 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]
|
||||
extends = env:chitu_f103
|
||||
build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
|
||||
|
||||
#
|
||||
# Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
|
||||
#
|
||||
# STM32F103RC_ZM3E2_USB ........... RCT6 with 256K
|
||||
# STM32F103VC_ZM3E4_USB ........... VCT6 with 256K
|
||||
# STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
|
||||
#
|
||||
[ZONESTAR_ZM3E]
|
||||
extends = stm32_variant
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
board_upload.offset_address = 0x08005000
|
||||
board_build.offset = 0x5000
|
||||
board_upload.maximum_size = 237568
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DUSE_USB_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
[env:STM32F103RC_ZM3E2_USB]
|
||||
extends = ZONESTAR_ZM3E
|
||||
board = genericSTM32F103RC
|
||||
board_build.variant = MARLIN_F103Rx
|
||||
|
||||
[env:STM32F103VC_ZM3E4_USB]
|
||||
extends = ZONESTAR_ZM3E
|
||||
board = genericSTM32F103VC
|
||||
board_build.variant = MARLIN_F103Vx
|
||||
build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
|
||||
|
||||
[env:STM32F103VE_ZM3E4V2_USB]
|
||||
extends = ZONESTAR_ZM3E
|
||||
board = genericSTM32F103VE
|
||||
board_build.variant = MARLIN_F103Vx
|
||||
build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
|
||||
board_upload.maximum_size = 499712
|
789
ini/stm32f4.ini
Normal file
789
ini/stm32f4.ini
Normal file
@ -0,0 +1,789 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32F4 Architecture
|
||||
#
|
||||
# Naming Example: STM32F401RGT6
|
||||
#
|
||||
# F : Foundation (sometimes High Performance F2/F4)
|
||||
# 4 : Cortex M4 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 01 : Line/Features
|
||||
# R : 64 or 66 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
|
||||
# G : 1024KB Flash-memory (B:128KB, C:256KB, D:384KB, E:512KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# ARMED (STM32)
|
||||
#
|
||||
[env:ARMED]
|
||||
extends = common_stm32
|
||||
board = armed_v1
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-O2 -ffreestanding -fsigned-char -fno-move-loop-invariants -fno-strict-aliasing
|
||||
|
||||
#
|
||||
# STM32F401RC
|
||||
#
|
||||
[env:FYSETC_CHEETAH_V20]
|
||||
extends = stm32_variant
|
||||
board = marlin_FYSETC_CHEETAH_V20
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F401xC
|
||||
upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# FLYF407ZG
|
||||
#
|
||||
[env:FLYF407ZG]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZGT6
|
||||
board_build.variant = MARLIN_FLY_F407ZG
|
||||
board_build.offset = 0x8000
|
||||
upload_protocol = dfu
|
||||
|
||||
#
|
||||
# FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:FYSETC_S6]
|
||||
extends = stm32_variant
|
||||
board = marlin_fysetc_s6
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
build_flags = ${stm32_variant.build_flags} -DHAL_PCD_MODULE_ENABLED
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# FYSETC S6 new bootloader
|
||||
#
|
||||
[env:FYSETC_S6_8000]
|
||||
extends = env:FYSETC_S6
|
||||
board = marlin_fysetc_s6
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# FYSETC SPIDER KING407 (STM32F407ZGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:FYSETC_SPIDER_KING407]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZGT6
|
||||
board_build.variant = MARLIN_FYSETC_SPIDER_KING407
|
||||
board_build.offset = 0x8000
|
||||
upload_protocol = dfu
|
||||
|
||||
#
|
||||
# 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]
|
||||
extends = stm32_variant
|
||||
board = marlin_blackSTM32F407VET6
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
|
||||
#
|
||||
# STM32F407VET6 Opulo Lumen REV3
|
||||
#
|
||||
[env:Opulo_Lumen_REV3]
|
||||
extends = stm32_variant
|
||||
board = marlin_opulo_lumen_rev3
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DARDUINO_BLACK_F407VE
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# STM32F407VET6 Opulo Lumen REV4
|
||||
#
|
||||
[env:Opulo_Lumen_REV4]
|
||||
extends = stm32_variant
|
||||
board = marlin_opulo_lumen_rev4
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DARDUINO_BLACK_F407VE
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
|
||||
#
|
||||
# Anet ET4-MB_V1.x/ET4P-MB_V1.x (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
[Anet_ET4]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
|
||||
#
|
||||
# Anet ET4 directly flashed via ST-Link
|
||||
#
|
||||
[env:Anet_ET4_no_bootloader]
|
||||
extends = Anet_ET4
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# Anet ET4 with OpenBLT from https://github.com/davidtgbe/openblt/releases
|
||||
#
|
||||
[env:Anet_ET4_OpenBLT]
|
||||
extends = Anet_ET4
|
||||
board_build.encode = firmware.srec
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/openblt.py
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Pro (STM32F407ZGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_SKR_PRO]
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_SKR_Pro
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F407_5ZX
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# 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 = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} -DSTM32F407_5ZX
|
||||
build_unflags = ${env:BIGTREE_SKR_PRO.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# BigTreeTech E3 RRF (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_E3_RRF]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_BIGTREE_E3_RRF
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F407_5VX
|
||||
-DMF_RX_BUFFER_SIZE=255
|
||||
-DMF_TX_BUFFER_SIZE=255
|
||||
|
||||
#
|
||||
# Bigtreetech GTR V1.0 (STM32F407IGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_GTR_V1_0]
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_GTR_v1
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F407IX
|
||||
|
||||
#
|
||||
# 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 = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} -DSTM32F407IX
|
||||
build_unflags = ${env:BIGTREE_GTR_V1_0.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# BigTreeTech BTT002 V1.0 (STM32F407VGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_BTT002]
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_BTT002
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F407_5VX
|
||||
-DHAVE_HWSERIAL2
|
||||
-DHAVE_HWSERIAL3
|
||||
-DPIN_SERIAL2_RX=PD_6
|
||||
-DPIN_SERIAL2_TX=PD_5
|
||||
|
||||
#
|
||||
# BigTreeTech BTT002 V1.x with 512k of flash (STM32F407VET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:BIGTREE_BTT002_VET6]
|
||||
extends = env:BIGTREE_BTT002
|
||||
board = marlin_BigTree_BTT002_VET6
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_SKR_2]
|
||||
extends = stm32_variant
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DUSE_USBHOST_HS -DUSE_USB_HS_IN_FS
|
||||
-DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
|
||||
-DHSE_VALUE=8000000U -DHAL_SD_MODULE_ENABLED
|
||||
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V2.0 (STM32F407VGT6 ARM Cortex-M4) with USB Media Share Support
|
||||
#
|
||||
[env:BIGTREE_SKR_2_USB]
|
||||
extends = env:BIGTREE_SKR_2
|
||||
build_flags = ${env:BIGTREE_SKR_2.build_flags} -DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${env:BIGTREE_SKR_2.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
[env:BIGTREE_SKR_2_USB_debug]
|
||||
extends = env:BIGTREE_SKR_2_USB
|
||||
build_flags = ${env:BIGTREE_SKR_2_USB.build_flags} -O0
|
||||
build_unflags = ${env:BIGTREE_SKR_2_USB.build_unflags} -Os -NDEBUG
|
||||
|
||||
#
|
||||
# Bigtreetech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:BIGTREE_SKR_2_F429]
|
||||
extends = env:BIGTREE_SKR_2
|
||||
board = marlin_STM32F429VGT6
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V2.0 F429 (STM32F429VGT6 ARM Cortex-M4) with USB Media Share Support
|
||||
#
|
||||
[env:BIGTREE_SKR_2_F429_USB]
|
||||
extends = env:BIGTREE_SKR_2_F429
|
||||
build_flags = ${env:BIGTREE_SKR_2_F429.build_flags} -DUSBD_USE_CDC_MSC
|
||||
build_unflags = ${env:BIGTREE_SKR_2_F429.build_unflags} -DUSBD_USE_CDC
|
||||
|
||||
[env:BIGTREE_SKR_2_F429_USB_debug]
|
||||
extends = env:BIGTREE_SKR_2_F429_USB
|
||||
build_flags = ${env:BIGTREE_SKR_2_F429_USB.build_flags} -O0
|
||||
build_unflags = ${env:BIGTREE_SKR_2_F429_USB.build_unflags} -Os -NDEBUG
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:STM32F446ZE_btt]
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_Octopus_v1
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F446_5VX -DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.0/1.1 / Octopus Pro V1.0 (STM32F446ZET6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:STM32F446ZE_btt_usb_flash_drive]
|
||||
extends = env:STM32F446ZE_btt
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DSTM32F446_5VX -DUSE_USB_HS_IN_FS
|
||||
-DUSE_USBHOST_HS -DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSBD_USE_CDC_MSC
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.1 / Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:STM32F429ZG_btt]
|
||||
extends = stm32_variant
|
||||
board = marlin_BigTree_Octopus_Pro_v1_F429
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus V1.1 / Octopus Pro V1.0 (STM32F429ZGT6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:STM32F429ZG_btt_usb_flash_drive]
|
||||
extends = env:STM32F429ZG_btt
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DUSE_USB_HS_IN_FS -DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSBD_USE_CDC_MSC
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus / Octopus Pro (STM32F407ZET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:STM32F407ZE_btt]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZE
|
||||
board_build.offset = 0x8000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus / Octopus Pro (STM32F407ZET6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:STM32F407ZE_btt_usb_flash_drive]
|
||||
extends = env:STM32F407ZE_btt
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
-DUSE_USB_HS_IN_FS -DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSBD_USE_CDC_MSC
|
||||
|
||||
#
|
||||
# Lerdge base
|
||||
#
|
||||
[lerdge_common]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407ZGT6
|
||||
board_build.variant = MARLIN_LERDGE
|
||||
board_build.crypt_lerdge = firmware.bin
|
||||
board_build.offset = 0x10000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F4 -DSTM32F4xx -DTARGET_STM32F4
|
||||
-DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32 -DLERDGE_TFT35
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/lerdge.py
|
||||
|
||||
#
|
||||
# Lerdge X (STM32F407VE)
|
||||
#
|
||||
[env:LERDGEX]
|
||||
extends = lerdge_common
|
||||
board_build.crypt_lerdge = Lerdge_X_firmware_force.bin
|
||||
|
||||
#
|
||||
# Lerdge X with USB Flash Drive Support
|
||||
#
|
||||
[env:LERDGEX_usb_flash_drive]
|
||||
extends = env:LERDGEX
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
|
||||
|
||||
#
|
||||
# Lerdge S (STM32F407ZG)
|
||||
#
|
||||
[env:LERDGES]
|
||||
extends = lerdge_common
|
||||
board_build.crypt_lerdge = Lerdge_firmware_force.bin
|
||||
|
||||
#
|
||||
# Lerdge S with USB Flash Drive Support
|
||||
#
|
||||
[env:LERDGES_usb_flash_drive]
|
||||
extends = env:LERDGES
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
|
||||
|
||||
#
|
||||
# Lerdge K (STM32F407ZG)
|
||||
#
|
||||
[env:LERDGEK]
|
||||
extends = lerdge_common
|
||||
board_build.crypt_lerdge = Lerdge_K_firmware_force.bin
|
||||
build_flags = ${lerdge_common.build_flags} -DLERDGEK
|
||||
|
||||
#
|
||||
# Lerdge K with USB Flash Drive Support
|
||||
#
|
||||
[env:LERDGEK_usb_flash_drive]
|
||||
extends = env:LERDGEK
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${lerdge_common.build_flags}
|
||||
|
||||
#
|
||||
# RUMBA32
|
||||
#
|
||||
[env:rumba32]
|
||||
extends = stm32_variant
|
||||
board = rumba32_f446ve
|
||||
board_build.variant = MARLIN_F446VE
|
||||
board_build.offset = 0x0000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-Os -DHAL_PCD_MODULE_ENABLED
|
||||
-DDISABLE_GENERIC_SERIALUSB
|
||||
-DHAL_UART_MODULE_ENABLED
|
||||
-DTIMER_SERIAL=TIM9
|
||||
monitor_speed = 500000
|
||||
upload_protocol = dfu
|
||||
|
||||
#
|
||||
# STM32F407ZET6 ARM Cortex-M4
|
||||
#
|
||||
[env:mks_robin2]
|
||||
extends = stm32_variant
|
||||
board = marlin_MKS_ROBIN2
|
||||
board_build.offset = 0xC000
|
||||
board_upload.offset_address = 0x0800C000
|
||||
board_build.encrypt_mks = Robin2.bin
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DTARGET_STM32F4 -DSTM32F407_5ZX
|
||||
-DUSBCON -DUSBD_USE_CDC -DUSBD_VID=0x0483 -DUSBD_PID=0x3748 -DUSB_PRODUCT=\"MKS_Robin2\"
|
||||
|
||||
#
|
||||
# MKS Robin Pro V2 (No bootloader!)
|
||||
#
|
||||
[env:mks_robin_pro2]
|
||||
extends = stm32_variant
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
board = genericSTM32F407VET6
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x0000
|
||||
board_upload.offset_address = 0x08000000
|
||||
build_flags = ${stm_flash_drive.build_flags}
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# This I2C1(PB6:I2C1_SCL PB7:I2C1_SDA) is used by Robin Nano V3
|
||||
#
|
||||
[stm32f4_I2C1]
|
||||
build_flags = -DPIN_WIRE_SCL=PB6 -DPIN_WIRE_SDA=PB7
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3
|
||||
#
|
||||
[env:mks_robin_nano_v3]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0xC000
|
||||
board_upload.offset_address = 0x0800C000
|
||||
board_build.rename = Robin_nano_v3.bin
|
||||
build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3 with USB Flash Drive Support
|
||||
#
|
||||
[env:mks_robin_nano_v3_usb_flash_drive]
|
||||
extends = env:mks_robin_nano_v3
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3 with USB Flash Drive Support and Shared Media
|
||||
#
|
||||
[env:mks_robin_nano_v3_usb_flash_drive_msc]
|
||||
extends = env:mks_robin_nano_v3_usb_flash_drive
|
||||
build_flags = ${env:mks_robin_nano_v3_usb_flash_drive.build_flags}
|
||||
-DUSBD_USE_CDC_MSC
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3_1
|
||||
#
|
||||
[env:mks_robin_nano_v3_1]
|
||||
extends = env:mks_robin_nano_v3
|
||||
board = marlin_STM32F407VET6_CCM
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3.1 with USB Flash Drive Support
|
||||
#
|
||||
[env:mks_robin_nano_v3_1_usb_flash_drive]
|
||||
extends = env:mks_robin_nano_v3_usb_flash_drive
|
||||
board = marlin_STM32F407VET6_CCM
|
||||
|
||||
#
|
||||
# MKS Robin Nano V3.1 with USB Flash Drive Support and Shared Media
|
||||
#
|
||||
[env:mks_robin_nano_v3_1_usb_flash_drive_msc]
|
||||
extends = env:mks_robin_nano_v3_usb_flash_drive_msc
|
||||
board = marlin_STM32F407VET6_CCM
|
||||
|
||||
#
|
||||
# MKS Eagle
|
||||
# 5 TMC2209 uart mode on board
|
||||
#
|
||||
[env:mks_eagle]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0xC000
|
||||
board_upload.offset_address = 0x0800C000
|
||||
board_build.rename = mks_eagle.bin
|
||||
build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED
|
||||
-DSTM32_FLASH_SIZE=512
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# MKS Eagle with USB Flash Drive Support
|
||||
#
|
||||
[env:mks_eagle_usb_flash_drive]
|
||||
extends = env:mks_eagle
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1.build_flags}
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# MKS Eagle with USB Flash Drive Support and Shared Media
|
||||
#
|
||||
[env:mks_eagle_usb_flash_drive_msc]
|
||||
extends = env:mks_eagle_usb_flash_drive
|
||||
build_flags = ${env:mks_eagle_usb_flash_drive.build_flags}
|
||||
-DUSBD_USE_CDC_MSC
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# This I2C1(PB8:I2C1_SCL PB9:I2C1_SDA) is used by MKS Monster8
|
||||
#
|
||||
[stm32f4_I2C1_CAN]
|
||||
build_flags = -DPIN_WIRE_SCL=PB8 -DPIN_WIRE_SDA=PB9
|
||||
|
||||
#
|
||||
# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4)
|
||||
#
|
||||
[env:mks_monster8]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0xC000
|
||||
board_upload.offset_address = 0x0800C000
|
||||
board_build.rename = mks_monster8.bin
|
||||
build_flags = ${stm32_variant.build_flags} ${stm32f4_I2C1_CAN.build_flags}
|
||||
-DHAL_PCD_MODULE_ENABLED -DTIMER_SERIAL=TIM4
|
||||
-DSTM32_FLASH_SIZE=512
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4) with USB Flash Drive Support
|
||||
#
|
||||
[env:mks_monster8_usb_flash_drive]
|
||||
extends = env:mks_monster8
|
||||
platform_packages = ${stm_flash_drive.platform_packages}
|
||||
build_flags = ${stm_flash_drive.build_flags} ${stm32f4_I2C1_CAN.build_flags}
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSBD_IRQ_PRIO=5
|
||||
-DUSBD_IRQ_SUBPRIO=6
|
||||
-DUSE_USB_HS_IN_FS
|
||||
|
||||
#
|
||||
# MKS Monster8 V1 / V2 (STM32F407VET6 ARM Cortex-M4) with USB Flash Drive Support and Shared Media
|
||||
#
|
||||
[env:mks_monster8_usb_flash_drive_msc]
|
||||
extends = env:mks_monster8_usb_flash_drive
|
||||
build_flags = ${env:mks_monster8_usb_flash_drive.build_flags}
|
||||
-DUSBD_USE_CDC_MSC
|
||||
build_unflags = -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# TH3D EZBoard v2.0 (STM32F405RGT6 ARM Cortex-M4)
|
||||
#
|
||||
[TH3D_EZBoard_V2]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F405RG
|
||||
board_build.variant = MARLIN_TH3D_EZBOARD_V2
|
||||
build_flags = ${stm32_variant.build_flags} -DHSE_VALUE=12000000U -O0
|
||||
|
||||
#
|
||||
# TH3D EZBoard v2.0 directly flashed via ST-Link
|
||||
#
|
||||
[env:TH3D_EZBoard_V2_no_bootloader]
|
||||
extends = TH3D_EZBoard_V2
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# TH3D EZBoard v2.0 with OpenBLT from https://github.com/rhapsodyv/OpenBLT-STM32
|
||||
#
|
||||
[env:TH3D_EZBoard_V2_OpenBLT]
|
||||
extends = TH3D_EZBoard_V2
|
||||
board_build.encode = firmware.bin
|
||||
board_build.offset = 0xC000
|
||||
board_upload.offset_address = 0x0800C000
|
||||
extra_scripts = ${stm32_variant.extra_scripts}
|
||||
buildroot/share/PlatformIO/scripts/openblt.py
|
||||
|
||||
[mks_robin_nano_v1_3_f4_common]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F407VGT6_CCM
|
||||
board_build.variant = MARLIN_F4x7Vx
|
||||
board_build.offset = 0x8000
|
||||
board_upload.offset_address = 0x08008000
|
||||
board_build.rename = Robin_nano35.bin
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
#
|
||||
# BOARD_MKS_ROBIN_NANO_V1_3_F4
|
||||
# - MKS Robin Nano V1.3 (STM32F407VET6, 5 Pololu Plug)
|
||||
# - MKS Robin Nano-S V1.3 (STM32F407VET6, 4 TMC2225, 1 Pololu Plug)
|
||||
# - ZNP Robin Nano V1.3 (STM32F407VET6, 2 TMC2208, 2 A4988, 1x Polulu plug)
|
||||
#
|
||||
[env:mks_robin_nano_v1_3_f4]
|
||||
extends = mks_robin_nano_v1_3_f4_common
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DMCU_STM32F407VE -DENABLE_HWSERIAL3 -DSTM32_FLASH_SIZE=512
|
||||
-DTIMER_SERVO=TIM2 -DTIMER_TONE=TIM3 -DSS_TIMER=4
|
||||
-DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
|
||||
build_unflags = ${stm32_variant.build_unflags}
|
||||
-DUSBCON -DUSBD_USE_CDC
|
||||
|
||||
#
|
||||
# MKS/ZNP Robin Nano V1.3 with native USB mod
|
||||
#
|
||||
[env:mks_robin_nano_v1_3_f4_usbmod]
|
||||
extends = mks_robin_nano_v1_3_f4_common
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DMCU_STM32F407VE -DSTM32_FLASH_SIZE=512
|
||||
-DTIMER_SERVO=TIM2 -DTIMER_TONE=TIM3 -DSS_TIMER=4
|
||||
-DHAL_SD_MODULE_ENABLED -DHAL_SRAM_MODULE_ENABLED
|
||||
|
||||
#
|
||||
# Artillery Ruby
|
||||
#
|
||||
[env:Artillery_Ruby]
|
||||
extends = common_stm32
|
||||
board = marlin_Artillery_Ruby
|
||||
build_flags = ${common_stm32.build_flags}
|
||||
-DSTM32F401xC -DTARGET_STM32F4 -DDISABLE_GENERIC_SERIALUSB -DARDUINO_ARCH_STM32
|
||||
-DUSBD_USE_CDC_COMPOSITE -DUSE_USB_FS
|
||||
-DUSB_PRODUCT=\"Artillery_3D_Printer\"
|
||||
-DFLASH_DATA_SECTOR=1U -DFLASH_BASE_ADDRESS=0x08004000
|
||||
extra_scripts = ${common_stm32.extra_scripts}
|
||||
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py
|
||||
|
||||
#
|
||||
# Ender-3 S1 STM32F401RC_creality
|
||||
#
|
||||
[STM32F401RC_creality_base]
|
||||
extends = stm32_variant
|
||||
board = genericSTM32F401RC
|
||||
board_build.variant = MARLIN_CREALITY_STM32F401RC
|
||||
build_flags = ${stm32_variant.build_flags} -DMCU_STM32F401RC -DSTM32F4
|
||||
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
||||
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
monitor_speed = 115200
|
||||
|
||||
[env:STM32F401RC_creality]
|
||||
extends = STM32F401RC_creality_base
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
|
||||
[env:STM32F401RC_creality_nobootloader]
|
||||
extends = STM32F401RC_creality_base
|
||||
board_build.offset = 0x0000
|
||||
board_upload.offset_address = 0x08000000
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
[env:STM32F401RC_creality_jlink]
|
||||
extends = env:STM32F401RC_creality
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
[env:STM32F401RC_creality_stlink]
|
||||
extends = env:STM32F401RC_creality
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# Ender-5 S1 STM32F401RE_creality (CR4NS200141C13 with STM32F401RET6)
|
||||
#
|
||||
[env:STM32F401RE_creality]
|
||||
extends = stm32_variant
|
||||
board = marlin_CREALITY_STM32F401RE
|
||||
board_build.offset = 0x10000
|
||||
board_upload.offset_address = 0x08010000
|
||||
board_build.rename = firmware-{date}-{time}.bin
|
||||
build_flags = ${stm32_variant.build_flags} -DSTM32F401xE -DSTM32F4 -DSTM32F4_UPDATE_FOLDER
|
||||
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC
|
||||
monitor_speed = 115200
|
||||
|
||||
[env:STM32F401RE_creality_jlink]
|
||||
extends = env:STM32F401RE_creality
|
||||
debug_tool = jlink
|
||||
upload_protocol = jlink
|
||||
|
||||
[env:STM32F401RE_creality_stlink]
|
||||
extends = env:STM32F401RE_creality
|
||||
debug_tool = stlink
|
||||
upload_protocol = stlink
|
||||
|
||||
#
|
||||
# BigTree SKR mini E3 V3.0.1 (STM32F401RCT6 ARM Cortex-M4)
|
||||
#
|
||||
[env:STM32F401RC_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@~14.1.0
|
||||
platform_packages = framework-arduinoststm32@~4.20600.231001
|
||||
toolchain-gccarmnoneeabi@1.100301.220327
|
||||
board = marlin_STM32F401RC
|
||||
board_build.offset = 0x4000
|
||||
board_upload.offset_address = 0x08004000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL6_RX=PC_7 -DPIN_SERIAL6_TX=PC_6
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
upload_protocol = stlink
|
||||
debug_tool = stlink
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini E3 V3.0.1 (STM32F401RCT6 ARM Cortex-M0+)
|
||||
# Custom upload to SD via Marlin with Binary Protocol
|
||||
# Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
|
||||
# If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
|
||||
# Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
|
||||
#
|
||||
[env:STM32F401RC_btt_xfer]
|
||||
extends = env:STM32F401RC_btt
|
||||
build_flags = ${env:STM32F401RC_btt.build_flags} -DXFER_BUILD
|
||||
extra_scripts = ${env:STM32F401RC_btt.extra_scripts}
|
||||
pre:buildroot/share/scripts/upload.py
|
||||
upload_protocol = custom
|
||||
|
||||
#
|
||||
# MKS SKIPR v1.0 all-in-one board (STM32F407VE)
|
||||
#
|
||||
[env:mks_skipr_v1]
|
||||
extends = stm32_variant
|
||||
board = marlin_MKS_SKIPR_V1
|
||||
board_build.rename = mks_skipr.bin
|
||||
|
||||
[env:mks_skipr_v1_nobootloader]
|
||||
extends = env:mks_skipr_v1
|
||||
board_build.rename = firmware.bin
|
||||
board_build.offset = 0x0000
|
||||
board_upload.offset_address = 0x08000000
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# STM32F446ZET6 ARM Cortex-M4
|
||||
#
|
||||
[env:STM32F446_tronxy]
|
||||
extends = stm32_variant
|
||||
board = marlin_STM32F446ZET_tronxy
|
||||
board_build.offset = 0x10000
|
||||
board_build.rename = fmw_tronxy.bin
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DSTM32F4xx
|
||||
build_unflags = ${stm32_variant.build_unflags} -fno-rtti
|
||||
-DUSBCON -DUSBD_USE_CDC
|
37
ini/stm32f7.ini
Normal file
37
ini/stm32f7.ini
Normal file
@ -0,0 +1,37 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32F7 Architecture
|
||||
#
|
||||
# Naming Example: STM32F767ZIT6
|
||||
#
|
||||
# F : Foundation (sometimes High Performance F2/F4)
|
||||
# 7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 67 : Line/Features
|
||||
# Z : 144 pins
|
||||
# I : 4096KB Flash-memory
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# ST NUCLEO-F767ZI Development Board
|
||||
# This environment is for testing purposes prior to control boards
|
||||
# being readily available based on STM32F7 MCUs
|
||||
#
|
||||
[env:NUCLEO_F767ZI]
|
||||
extends = common_stm32
|
||||
board = nucleo_f767zi
|
||||
build_flags = ${common_stm32.build_flags} -DTIMER_SERIAL=TIM9
|
||||
|
||||
#
|
||||
# REMRAM_V1
|
||||
#
|
||||
[env:REMRAM_V1]
|
||||
extends = common_stm32
|
||||
board = remram_v1
|
135
ini/stm32g0.ini
Normal file
135
ini/stm32g0.ini
Normal file
@ -0,0 +1,135 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32G0 Architecture
|
||||
#
|
||||
# Naming Example: STM32G0B1RET6
|
||||
#
|
||||
# G : Foundation
|
||||
# 0 : Cortex M0+ core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# B1 : Line/Features
|
||||
# R : 64 pins (R:64 or 66, F:20)
|
||||
# E : 512KB Flash-memory (B:128KB C:256KB, D:384KB, E:512KB, G:1024KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# This I2C2(PB3:I2C2_SCL PB4:I2C2_SDA) is used by EBB42 V1.1
|
||||
#
|
||||
[stm32g0_I2C2]
|
||||
build_flags = -DPIN_WIRE_SCL=PB3 -DPIN_WIRE_SDA=PB4
|
||||
|
||||
#
|
||||
# BigTreeTech EBB42 V1.1 (STM32G0B1CBT6 ARM Cortex-M0+)
|
||||
# This board is being used to control Filament extruders. This is not supported for 3D printing, as it has no kinematics control
|
||||
#
|
||||
[env:BTT_EBB42_V1_1_filament_extruder]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@17.1.0
|
||||
platform_packages = framework-arduinoststm32@~4.20600.231001
|
||||
toolchain-gccarmnoneeabi@1.120301.0
|
||||
board = marlin_BTT_EBB42_V1_1
|
||||
board_build.offset = 0x0000
|
||||
board_upload.offset_address = 0x08000000
|
||||
build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags}
|
||||
-flto
|
||||
-Wl,--no-warn-rwx-segment
|
||||
debug_tool = stlink
|
||||
upload_protocol = dfu
|
||||
upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
|
||||
#
|
||||
[env:STM32G0B1RE_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@17.1.0
|
||||
platform_packages = framework-arduinoststm32@~4.20600.231001
|
||||
toolchain-gccarmnoneeabi@1.120301.0
|
||||
board = marlin_STM32G0B1RE
|
||||
board_build.offset = 0x2000
|
||||
board_upload.offset_address = 0x08002000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL4_RX=PC_11 -DPIN_SERIAL4_TX=PC_10
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
-Wl,--no-warn-rwx-segment
|
||||
upload_protocol = stlink
|
||||
debug_tool = stlink
|
||||
|
||||
#
|
||||
# BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
|
||||
# Custom upload to SD via Marlin with Binary Protocol
|
||||
# Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
|
||||
# If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
|
||||
# Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
|
||||
#
|
||||
[env:STM32G0B1RE_btt_xfer]
|
||||
extends = env:STM32G0B1RE_btt
|
||||
build_flags = ${env:STM32G0B1RE_btt.build_flags} -DXFER_BUILD
|
||||
extra_scripts = ${env:STM32G0B1RE_btt.extra_scripts}
|
||||
pre:buildroot/share/scripts/upload.py
|
||||
upload_protocol = custom
|
||||
|
||||
#
|
||||
# BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
|
||||
# BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
|
||||
#
|
||||
[env:STM32G0B1RE_manta_btt]
|
||||
extends = env:STM32G0B1RE_btt
|
||||
build_flags = ${env:STM32G0B1RE_btt.build_flags}
|
||||
-DPIN_SERIAL3_RX=PD_9 -DPIN_SERIAL3_TX=PD_8 -DENABLE_HWSERIAL3
|
||||
|
||||
#
|
||||
# BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
|
||||
# BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
|
||||
# Custom upload to SD via Marlin with Binary Protocol
|
||||
# Requires Marlin with BINARY_FILE_TRANSFER already installed on the target board.
|
||||
# If CUSTOM_FIRMWARE_UPLOAD is also installed, Marlin will reboot the board to install the firmware.
|
||||
# Currently CUSTOM_FIRMWARE_UPLOAD must also be enabled to use 'xfer' build envs.
|
||||
#
|
||||
[env:STM32G0B1RE_manta_btt_xfer]
|
||||
extends = env:STM32G0B1RE_manta_btt
|
||||
build_flags = ${env:STM32G0B1RE_manta_btt.build_flags} -DXFER_BUILD
|
||||
extra_scripts = ${env:STM32G0B1RE_manta_btt.extra_scripts}
|
||||
pre:buildroot/share/scripts/upload.py
|
||||
upload_protocol = custom
|
||||
|
||||
#
|
||||
# BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
|
||||
#
|
||||
[env:STM32G0B1VE_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@17.1.0
|
||||
platform_packages = framework-arduinoststm32@~4.20600.231001
|
||||
toolchain-gccarmnoneeabi@1.120301.0
|
||||
board = marlin_STM32G0B1VE
|
||||
board_build.offset = 0x2000
|
||||
board_upload.offset_address = 0x08002000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL4_RX=PE_9 -DPIN_SERIAL4_TX=PE_8
|
||||
-DPIN_SERIAL5_RX=PE_11 -DPIN_SERIAL5_TX=PE_10
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM3 -DTIMER_TONE=TIM4
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
-Wl,--no-warn-rwx-segment
|
||||
upload_protocol = stlink
|
||||
debug_tool = stlink
|
||||
|
||||
#
|
||||
# BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
|
||||
# Custom upload to SD via Marlin with Binary Protocol
|
||||
#
|
||||
[env:STM32G0B1VE_btt_xfer]
|
||||
extends = env:STM32G0B1VE_btt
|
||||
build_flags = ${env:STM32G0B1VE_btt.build_flags} -DXFER_BUILD
|
||||
extra_scripts = ${env:STM32G0B1VE_btt.extra_scripts}
|
||||
pre:buildroot/share/scripts/upload.py
|
||||
upload_protocol = custom
|
132
ini/stm32h7.ini
Normal file
132
ini/stm32h7.ini
Normal file
@ -0,0 +1,132 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
#
|
||||
# STM32H7 Architecture
|
||||
#
|
||||
# Naming Example: STM32H743IIT6
|
||||
#
|
||||
# H : High Performance
|
||||
# 7 : Cortex M7 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
||||
# 43 : Line/Features
|
||||
# I : 176 pins (T:36, C:48 or 49, M:81, V:100, Z:144, I:176)
|
||||
# I : 2048KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB, I:2048KB)
|
||||
# T : LQFP package
|
||||
# 6 : -40...85°C (7: ...105°C)
|
||||
#
|
||||
#################################
|
||||
|
||||
#
|
||||
# BigTreeTech SKR SE BX V2.0 / V3.0 (STM32H743IIT6 ARM Cortex-M7)
|
||||
#
|
||||
[env:BTT_SKR_SE_BX]
|
||||
extends = stm32_variant
|
||||
# framework-arduinoststm32 uses biqu-bx-workaround branch
|
||||
platform_packages = framework-arduinoststm32@https://github.com/thisiskeithb/Arduino_Core_STM32/archive/8b3522051a.zip
|
||||
board = marlin_BTT_SKR_SE_BX
|
||||
board_build.offset = 0x20000
|
||||
build_flags = ${stm32_variant.build_flags} ${stm_flash_drive.build_flags}
|
||||
-DUSE_USBHOST_HS
|
||||
-DUSE_USB_HS_IN_FS
|
||||
-DHAL_DMA2D_MODULE_ENABLED
|
||||
-DHAL_LTDC_MODULE_ENABLED
|
||||
-DHAL_SDRAM_MODULE_ENABLED
|
||||
-DHAL_QSPI_MODULE_ENABLED
|
||||
-DHAL_MDMA_MODULE_ENABLED
|
||||
-DHAL_SD_MODULE_ENABLED
|
||||
upload_protocol = cmsis-dap
|
||||
debug_tool = cmsis-dap
|
||||
|
||||
#
|
||||
# BigTreeTech STM32H743Vx ARM Cortex-M7 Common
|
||||
#
|
||||
[STM32H743Vx_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@15.4.1
|
||||
platform_packages = framework-arduinoststm32@~4.20200.220530
|
||||
board_build.offset = 0x20000
|
||||
board_upload.offset_address = 0x08020000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
|
||||
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
|
||||
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
-DD_CACHE_DISABLED
|
||||
upload_protocol = cmsis-dap
|
||||
debug_tool = cmsis-dap
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V3.0 / V3.0 EZ (STM32H743VIT6 ARM Cortex-M7)
|
||||
#
|
||||
[env:STM32H743VI_btt]
|
||||
extends = STM32H743Vx_btt
|
||||
board = marlin_STM32H743VI
|
||||
|
||||
#
|
||||
# BigTreeTech STM32H723Vx ARM Cortex-M7 Common
|
||||
#
|
||||
[STM32H723Vx_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@15.4.1
|
||||
platform_packages = framework-arduinoststm32@~4.20200.220530
|
||||
board_build.offset = 0x20000
|
||||
board_upload.offset_address = 0x08020000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
|
||||
-DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
|
||||
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
|
||||
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
|
||||
-DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
-DRCC_PERIPHCLK_I2C35=RCC_PERIPHCLK_I2C5
|
||||
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
|
||||
-DD_CACHE_DISABLED
|
||||
-UI2C5_BASE
|
||||
upload_protocol = cmsis-dap
|
||||
debug_tool = cmsis-dap
|
||||
|
||||
#
|
||||
# BigTreeTech SKR V3.0 / SKR V3.0 EZ (STM32H723VGT6 ARM Cortex-M7)
|
||||
#
|
||||
[env:STM32H723VG_btt]
|
||||
extends = STM32H723Vx_btt
|
||||
board = marlin_STM32H723VG
|
||||
|
||||
#
|
||||
# BigTreeTech STM32H723Zx ARM Cortex-M7 Common
|
||||
#
|
||||
[STM32H723Zx_btt]
|
||||
extends = stm32_variant
|
||||
platform = ststm32@15.4.1
|
||||
platform_packages = framework-arduinoststm32@~4.20200.220530
|
||||
board_build.offset = 0x20000
|
||||
board_upload.offset_address = 0x08020000
|
||||
build_flags = ${stm32_variant.build_flags}
|
||||
-DPIN_SERIAL1_TX=PA_9 -DPIN_SERIAL1_RX=PA_10
|
||||
-DPIN_SERIAL2_TX=PD_5 -DPIN_SERIAL2_RX=PD_6
|
||||
-DPIN_SERIAL3_TX=PD_8 -DPIN_SERIAL3_RX=PD_9
|
||||
-DPIN_SERIAL4_TX=PA_0 -DPIN_SERIAL4_RX=PA_1
|
||||
-DPIN_SERIAL7_TX=PE_8 -DPIN_SERIAL7_RX=PE_7
|
||||
-DSERIAL_RX_BUFFER_SIZE=1024 -DSERIAL_TX_BUFFER_SIZE=1024
|
||||
-DTIMER_SERVO=TIM5 -DTIMER_TONE=TIM2
|
||||
-DSTEP_TIMER_IRQ_PRIO=0
|
||||
-DRCC_PERIPHCLK_I2C35=RCC_PERIPHCLK_I2C5
|
||||
-DUSE_USB_HS -DUSE_USB_HS_IN_FS
|
||||
-DD_CACHE_DISABLED
|
||||
-UI2C5_BASE
|
||||
upload_protocol = cmsis-dap
|
||||
debug_tool = cmsis-dap
|
||||
|
||||
#
|
||||
# BigTreeTech Octopus Pro V1.0.1/1.1 / Octopus Max EZ V1.0 (STM32H723ZET6 ARM Cortex-M7)
|
||||
#
|
||||
[env:STM32H723ZE_btt]
|
||||
extends = STM32H723Zx_btt
|
||||
board = marlin_STM32H723ZE
|
80
ini/teensy.ini
Normal file
80
ini/teensy.ini
Normal file
@ -0,0 +1,80 @@
|
||||
#
|
||||
# Marlin Firmware
|
||||
# PlatformIO Configuration File
|
||||
#
|
||||
|
||||
#################################
|
||||
# #
|
||||
# Teensy Architectures #
|
||||
# #
|
||||
#################################
|
||||
|
||||
#
|
||||
# Teensy AVR
|
||||
#
|
||||
[teensy_avr]
|
||||
platform = teensy
|
||||
platform_packages = toolchain-atmelavr@~1.70300.0
|
||||
extends = common_avr8
|
||||
lib_ignore = ${env:common_avr8.lib_ignore}, NativeEthernet
|
||||
|
||||
#
|
||||
# AT90USB1286 boards using CDC bootloader
|
||||
# e.g., BRAINWAVE, BRAINWAVE_PRO, SAV_MKI, TEENSYLU
|
||||
#
|
||||
[env:at90usb1286_cdc]
|
||||
extends = teensy_avr
|
||||
board = marlin_at90usb1286
|
||||
lib_ignore = ${teensy_avr.lib_ignore}, Teensy_ADC
|
||||
|
||||
#
|
||||
# AT90USB1286 boards using DFU bootloader
|
||||
# e.g., Printrboard, Printrboard Rev.F, 5DPRINT
|
||||
#
|
||||
[env:at90usb1286_dfu]
|
||||
extends = env:at90usb1286_cdc
|
||||
|
||||
#
|
||||
# Teensy++ 2.0
|
||||
#
|
||||
[env:teensy20]
|
||||
extends = teensy_avr
|
||||
board = teensy2pp
|
||||
|
||||
#
|
||||
# Teensy 3.x - 4.x
|
||||
#
|
||||
[teensy_arm]
|
||||
platform = teensy@~4.12.0
|
||||
build_src_filter = ${common.default_src_filter}
|
||||
lib_ignore = NativeEthernet
|
||||
|
||||
#
|
||||
# Teensy 3.1 / 3.2 (ARM Cortex-M4)
|
||||
#
|
||||
[env:teensy31]
|
||||
extends = teensy_arm
|
||||
board = teensy31
|
||||
build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY31_32>
|
||||
|
||||
#
|
||||
# Teensy 3.5 / 3.6 (ARM Cortex-M4)
|
||||
#
|
||||
[env:teensy35]
|
||||
extends = teensy_arm
|
||||
board = teensy35
|
||||
build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY35_36>
|
||||
|
||||
[env:teensy36]
|
||||
extends = teensy_arm
|
||||
board = teensy36
|
||||
build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY35_36>
|
||||
|
||||
#
|
||||
# Teensy 4.0 / 4.1 (ARM Cortex-M7)
|
||||
#
|
||||
[env:teensy41]
|
||||
extends = teensy_arm
|
||||
board = teensy41
|
||||
build_src_filter = ${teensy_arm.build_src_filter} +<src/HAL/TEENSY40_41>
|
||||
lib_ignore =
|
Reference in New Issue
Block a user