Skip to content

Commit 74435b0

Browse files
ellenspthinkyhead
authored andcommitted
✨ Creality v5.2.1 board (MarlinFirmware#24815)
Followup to MarlinFirmware#24760
1 parent f17a07d commit 74435b0

File tree

3 files changed

+13
-24
lines changed

3 files changed

+13
-24
lines changed

Marlin/src/core/boards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355
#define BOARD_CREALITY_V431_D 4051 // Creality v4.3.1d (STM32F103RC / STM32F103RE)
356356
#define BOARD_CREALITY_V452 4052 // Creality v4.5.2 (STM32F103RC / STM32F103RE)
357357
#define BOARD_CREALITY_V453 4053 // Creality v4.5.3 (STM32F103RC / STM32F103RE)
358-
#define BOARD_CREALITY_V521 4054 // SV04 Board
358+
#define BOARD_CREALITY_V521 4054 // Creality v5.2.1 (STM32F103VE) as found in the SV04
359359
#define BOARD_CREALITY_V24S1 4055 // Creality v2.4.S1 (STM32F103RC / STM32F103RE) v101 as found in the Ender-7
360360
#define BOARD_CREALITY_V24S1_301 4056 // Creality v2.4.S1_301 (STM32F103RC / STM32F103RE) v301 as found in the Ender-3 S1
361361
#define BOARD_CREALITY_V25S1 4057 // Creality v2.5.S1 (STM32F103RE) as found in the CR-10 Smart Pro

Marlin/src/pins/pins.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@
591591
#include "stm32f1/pins_CREALITY_V24S1_301.h" // STM32F1 env:STM32F103RE_creality env:STM32F103RE_creality_xfer env:STM32F103RC_creality env:STM32F103RC_creality_xfer env:STM32F103RE_creality_maple
592592
#elif MB(CREALITY_V25S1)
593593
#include "stm32f1/pins_CREALITY_V25S1.h" // STM32F1 env:STM32F103RE_creality_smartPro env:STM32F103RE_creality_smartPro_maple
594+
#elif MB(CREALITY_V521)
595+
#include "stm32f1/pins_CREALITY_V521.h" // STM32F103VE env:STM32F103VE_creality
594596
#elif MB(TRIGORILLA_PRO)
595597
#include "stm32f1/pins_TRIGORILLA_PRO.h" // STM32F1 env:trigorilla_pro env:trigorilla_pro_maple env:trigorilla_pro_disk
596598
#elif MB(FLY_MINI)
@@ -611,8 +613,6 @@
611613
#include "stm32f1/pins_ERYONE_ERY32_MINI.h" // STM32F103VET6 env:ERYONE_ERY32_MINI_maple
612614
#elif MB(PANDA_PI_V29)
613615
#include "stm32f1/pins_PANDA_PI_V29.h" // STM32F103RCT6 env:PANDA_PI_V29
614-
#elif MB(CREALITY_V521)
615-
#include "stm32f1/pins_CREALITY_V521.h" // STM32F103RET6 env:STM32F103RET6_creality
616616

617617
//
618618
// ARM Cortex-M4F

ini/stm32f1.ini

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,16 @@ board = genericSTM32F103RC
171171
extends = STM32F103Rx_creality_xfer
172172
board = genericSTM32F103RC
173173

174+
#
175+
# Creality 512K (STM32F103VE)
176+
#
177+
[env:STM32F103VE_creality]
178+
extends = STM32F103Rx_creality
179+
board = genericSTM32F103VE
180+
board_build.variant = MARLIN_F103Vx
181+
build_flags = ${stm32_variant.build_flags}
182+
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
183+
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
174184
#
175185
# BigTreeTech SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
176186
#
@@ -467,24 +477,3 @@ board = genericSTM32F103VE
467477
board_build.variant = MARLIN_F103Vx
468478
build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
469479
board_upload.maximum_size = 499712
470-
471-
#
472-
# Creality (STM32F103RET6)
473-
#
474-
[env:STM32F103RET6_creality]
475-
platform = ${common_stm32f1.platform}
476-
extends = stm32_variant
477-
board = genericSTM32F103VE
478-
board_build.variant = MARLIN_F103Vx
479-
board_build.offset = 0x7000
480-
board_upload.offset_address = 0x08007000
481-
build_flags = ${stm32_variant.build_flags}
482-
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
483-
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
484-
build_unflags = ${stm32_variant.build_unflags}
485-
-DUSBCON -DUSBD_USE_CDC
486-
extra_scripts = ${stm32_variant.extra_scripts}
487-
pre:buildroot/share/PlatformIO/scripts/random-bin.py
488-
monitor_speed = 115200
489-
debug_tool = jlink
490-
upload_protocol = jlink

0 commit comments

Comments
 (0)