2021-12-10 19:38:03 +00:00
|
|
|
#
|
|
|
|
# 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)
|
2022-12-16 20:45:14 +00:00
|
|
|
# E : 512KB Flash-memory (B:128KB C:256KB, D:384KB, E:512KB, G:1024KB)
|
2021-12-10 19:38:03 +00:00
|
|
|
# T : LQFP package
|
|
|
|
# 6 : -40...85°C (7: ...105°C)
|
|
|
|
#
|
|
|
|
#################################
|
|
|
|
|
2022-12-16 20:45:14 +00:00
|
|
|
#
|
|
|
|
# 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@~14.1.0
|
2023-12-08 04:35:34 +00:00
|
|
|
platform_packages = framework-arduinoststm32@~4.20600.231001
|
2023-05-22 01:38:28 +00:00
|
|
|
toolchain-gccarmnoneeabi@1.100301.220327
|
2022-12-16 20:45:14 +00:00
|
|
|
board = marlin_BTT_EBB42_V1_1
|
|
|
|
board_build.offset = 0x0000
|
|
|
|
board_upload.offset_address = 0x08000000
|
2023-05-09 18:59:25 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags} ${stm32g0_I2C2.build_flags} -flto
|
2022-12-16 20:45:14 +00:00
|
|
|
debug_tool = stlink
|
2023-05-09 18:59:25 +00:00
|
|
|
upload_protocol = dfu
|
|
|
|
upload_command = dfu-util -a 0 -s 0x08000000:leave -D "$SOURCE"
|
2022-12-16 20:45:14 +00:00
|
|
|
|
2021-12-10 19:38:03 +00:00
|
|
|
#
|
2023-08-07 03:04:11 +00:00
|
|
|
# BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
|
2021-12-10 19:38:03 +00:00
|
|
|
#
|
|
|
|
[env:STM32G0B1RE_btt]
|
2022-01-03 05:27:22 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
platform = ststm32@~14.1.0
|
2023-12-08 04:35:34 +00:00
|
|
|
platform_packages = framework-arduinoststm32@~4.20600.231001
|
2023-05-24 07:53:12 +00:00
|
|
|
toolchain-gccarmnoneeabi@1.100301.220327
|
2022-01-03 05:27:22 +00:00
|
|
|
board = marlin_STM32G0B1RE
|
2021-12-10 19:38:03 +00:00
|
|
|
board_build.offset = 0x2000
|
|
|
|
board_upload.offset_address = 0x08002000
|
2022-01-03 05:27:22 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
2023-05-24 07:53:12 +00:00
|
|
|
-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
|
2022-01-03 05:27:22 +00:00
|
|
|
upload_protocol = stlink
|
|
|
|
debug_tool = stlink
|
2022-05-28 20:22:59 +00:00
|
|
|
|
|
|
|
#
|
2023-08-07 03:04:11 +00:00
|
|
|
# BigTreeTech SKR Mini E3 V3.0 (STM32G0B0RET6 / STM32G0B1RET6 ARM Cortex-M0+)
|
2022-05-28 20:22:59 +00:00
|
|
|
# Custom upload to SD via Marlin with Binary Protocol
|
2023-02-09 03:46:02 +00:00
|
|
|
# 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.
|
2022-05-28 20:22:59 +00:00
|
|
|
#
|
|
|
|
[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
|
2023-02-08 06:39:09 +00:00
|
|
|
|
2023-02-27 03:03:28 +00:00
|
|
|
#
|
2023-10-03 20:23:40 +00:00
|
|
|
# BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
|
2023-08-07 03:04:11 +00:00
|
|
|
# BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
|
2023-02-27 03:03:28 +00:00
|
|
|
#
|
|
|
|
[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
|
|
|
|
|
|
|
|
#
|
2023-10-03 20:23:40 +00:00
|
|
|
# BigTreeTech Manta M4P V2.1 (STM32G0B0RET6 ARM Cortex-M0+)
|
2023-08-07 03:04:11 +00:00
|
|
|
# BigTreeTech Manta E3 EZ V1.0 / Manta M5P V1.0 (STM32G0B1RET6 ARM Cortex-M0+)
|
2023-02-27 03:03:28 +00:00
|
|
|
# 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
|
|
|
|
|
2023-02-08 06:39:09 +00:00
|
|
|
#
|
|
|
|
# BigTreeTech Manta M8P V1.x (STM32G0B1VET6 ARM Cortex-M0+)
|
|
|
|
#
|
|
|
|
[env:STM32G0B1VE_btt]
|
|
|
|
extends = stm32_variant
|
|
|
|
platform = ststm32@~14.1.0
|
2023-12-08 04:35:34 +00:00
|
|
|
platform_packages = framework-arduinoststm32@~4.20600.231001
|
2023-05-24 07:53:12 +00:00
|
|
|
toolchain-gccarmnoneeabi@1.100301.220327
|
2023-02-08 06:39:09 +00:00
|
|
|
board = marlin_STM32G0B1VE
|
|
|
|
board_build.offset = 0x2000
|
|
|
|
board_upload.offset_address = 0x08002000
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
2023-05-24 07:53:12 +00:00
|
|
|
-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
|
2023-02-08 06:39:09 +00:00
|
|
|
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
|