Skip to content

Commit

Permalink
🔨 Fix, clean up STM32F1 envs (#25697)
Browse files Browse the repository at this point in the history
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
  • Loading branch information
ellensp and thinkyhead committed May 17, 2023
1 parent 5a38066 commit 8592035
Showing 1 changed file with 62 additions and 71 deletions.
133 changes: 62 additions & 71 deletions ini/stm32f1.ini
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,19 @@ board = genericSTM32F103RE
# Creality 512K (STM32F103RE) for new 64KiB bootloader (CR-10 Smart Pro printer)
#
[env:STM32F103RE_creality_smartPro]
extends = STM32F103Rx_creality
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)
#
Expand Down Expand Up @@ -220,54 +229,7 @@ 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 = ${stm32_variant.build_unflags} -DUSBD_USE_CDC

#
# FLSUN QQS Pro (STM32F103VET6)
# board Hispeedv1
#
[env:flsun_hispeedv1]
extends = stm32_variant
board = genericSTM32F103VE
board_build.variant = MARLIN_F103Vx
board_build.encrypt_mks = Robin_mini.bin
board_build.offset = 0x7000
board_upload.offset_address = 0x08007000
build_flags = ${stm32_variant.build_flags}
-DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
build_unflags = ${stm32_variant.build_unflags}
-DUSBCON -DUSBD_USE_CDC

[mks_robin_nano_v1v2_common]
extends = stm32_variant
board = genericSTM32F103VE
board_build.variant = MARLIN_F103Vx
board_build.encrypt_mks = Robin_nano35.bin
board_build.offset = 0x7000
board_upload.offset_address = 0x08007000
debug_tool = stlink
upload_protocol = stlink

#
# MKS Robin Nano V1.2 and V2
#
[env:mks_robin_nano_v1v2]
extends = mks_robin_nano_v1v2_common
build_flags = ${stm32_variant.build_flags}
-DMCU_STM32F103VE -DSS_TIMER=4 -DENABLE_HWSERIAL3
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
build_unflags = ${stm32_variant.build_unflags}
-DUSBCON -DUSBD_USE_CDC

#
# MKS/ZNP Robin Nano V1.2 and V2 with native USB modification
#
[env:mks_robin_nano_v1v2_usbmod]
extends = mks_robin_nano_v1v2_common
build_flags = ${common_stm32.build_flags}
-DMCU_STM32F103VE -DSS_TIMER=4
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
build_unflags = ${env:STM32F103RE_btt.build_unflags} -DUSBD_USE_CDC

#
# Mingda MPX_ARM_MINI
Expand Down Expand Up @@ -305,17 +267,63 @@ board_upload.offset_address = 0x08005000
build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4

#
# MKS Robin Mini (STM32F103VET6)
# (STM32F103VE_robin)
#
[env:mks_robin_mini]
[STM32F103VE_robin]
extends = stm32_variant
board = genericSTM32F103VE
board_build.variant = MARLIN_F103Vx
board_build.encrypt_mks = Robin_mini.bin
board_build.offset = 0x7000
board_upload.offset_address = 0x08007000
build_flags = ${stm32_variant.build_flags}
-DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
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

#
# 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)
Expand All @@ -342,23 +350,6 @@ board_build.encrypt_mks = mksLite3.bin
extends = env:mks_robin
board_build.encrypt_mks = Robin_pro.bin

#
# MKS Robin E3p (STM32F103VET6)
# - LVGL UI
#
[env:mks_robin_e3p]
extends = stm32_variant
board = genericSTM32F103VE
board_build.variant = MARLIN_F103Vx
board_build.encrypt_mks = Robin_e3p.bin
board_build.offset = 0x7000
board_upload.offset_address = 0x08007000
build_flags = ${stm32_variant.build_flags}
-DMCU_STM32F103VE -DSS_TIMER=4
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
debug_tool = jlink
upload_protocol = jlink

#
# JGAurora A5S A1 (STM32F103ZET6)
#
Expand Down

0 comments on commit 8592035

Please sign in to comment.