|
|
@ -184,6 +184,43 @@ extra_scripts = ${common.extra_scripts} |
|
|
|
debug_tool = jlink |
|
|
|
upload_protocol = jlink |
|
|
|
|
|
|
|
# |
|
|
|
# BigTree SKR Mini E3 DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3) |
|
|
|
# |
|
|
|
# STM32F103RE_btt ............. RET6 |
|
|
|
# STM32F103RE_btt_USB ......... RET6 (USB mass storage) |
|
|
|
# |
|
|
|
[env:STM32F103RE_btt] |
|
|
|
platform = ${common_stm32.platform} |
|
|
|
extends = common_stm32 |
|
|
|
build_flags = ${common_stm32.build_flags} -DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED -DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8 |
|
|
|
board = genericSTM32F103RE |
|
|
|
monitor_speed = 115200 |
|
|
|
board_build.core = stm32 |
|
|
|
board_build.variant = MARLIN_F103Rx |
|
|
|
board_build.offset = 0x7000 |
|
|
|
board_build.ldscript = ldscript.ld |
|
|
|
board_upload.offset_address = 0x08007000 |
|
|
|
build_unflags = ${common_stm32.build_unflags} |
|
|
|
extra_scripts = ${common.extra_scripts} |
|
|
|
pre:buildroot/share/PlatformIO/scripts/generic_create_variant.py |
|
|
|
buildroot/share/PlatformIO/scripts/stm32_bootloader.py |
|
|
|
debug_tool = jlink |
|
|
|
upload_protocol = jlink |
|
|
|
|
|
|
|
[env:STM32F103RE_btt_USB] |
|
|
|
extends = env:STM32F103RE_btt |
|
|
|
platform = ${common_stm32.platform} |
|
|
|
platform_packages = framework-arduinoststm32@https://github.com/rhapsodyv/Arduino_Core_STM32/archive/usb-host-msc-cdc-msc-2.zip |
|
|
|
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC |
|
|
|
build_flags = ${env:STM32F103RE_btt.build_flags} ${env:stm32_flash_drive.build_flags} |
|
|
|
-DUSBCON |
|
|
|
-DUSE_USBHOST_HS |
|
|
|
-DUSBD_IRQ_PRIO=5 |
|
|
|
-DUSBD_IRQ_SUBPRIO=6 |
|
|
|
-DUSE_USB_HS_IN_FS |
|
|
|
-DUSBD_USE_CDC_MSC |
|
|
|
|
|
|
|
# |
|
|
|
# FLSUN QQS Pro (STM32F103VET6) |
|
|
|
# board Hispeedv1 |
|
|
|