2021-12-10 13:38:03 -06: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)
|
|
|
|
# E : 512KB Flash-memory (C:256KB, D:384KB, E:512KB, G:1024KB)
|
|
|
|
# T : LQFP package
|
|
|
|
# 6 : -40...85°C (7: ...105°C)
|
|
|
|
#
|
|
|
|
#################################
|
|
|
|
|
|
|
|
#
|
|
|
|
# BigTree SKR mini E3 V3.0 (STM32G0B1RET6 ARM Cortex-M0+)
|
|
|
|
#
|
|
|
|
[env:STM32G0B1RE_btt]
|
2022-01-02 23:27:22 -06:00
|
|
|
extends = stm32_variant
|
|
|
|
platform = ststm32@~14.1.0
|
|
|
|
platform_packages = framework-arduinoststm32@https://github.com/stm32duino/Arduino_Core_STM32/archive/main.zip
|
|
|
|
board = marlin_STM32G0B1RE
|
2021-12-10 13:38:03 -06:00
|
|
|
board_build.offset = 0x2000
|
|
|
|
board_upload.offset_address = 0x08002000
|
2022-01-02 23:27:22 -06:00
|
|
|
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
|
|
|
|
upload_protocol = stlink
|
|
|
|
debug_tool = stlink
|
2022-05-28 15:22:59 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Custom upload to SD via Marlin with Binary Protocol
|
|
|
|
#
|
|
|
|
[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
|