2021-04-02 02:53:19 +00:00
|
|
|
#
|
|
|
|
# Marlin Firmware
|
|
|
|
# PlatformIO Configuration File
|
|
|
|
#
|
|
|
|
|
|
|
|
#################################
|
2021-04-18 19:07:30 +00:00
|
|
|
#
|
2021-06-02 06:42:15 +00:00
|
|
|
# STM32F1 Architecture with unified STM32 HAL
|
2021-04-18 19:07:30 +00:00
|
|
|
#
|
|
|
|
# Naming Example: STM32F103RCT6
|
|
|
|
#
|
|
|
|
# F : Foundation (sometimes High Performance F2/F4)
|
2021-08-09 02:31:10 +00:00
|
|
|
# 1 : Cortex M3 core (0:M0, 1-2:M3, 3-4:M4, 7:M7)
|
2021-04-18 19:07:30 +00:00
|
|
|
# 03 : Line/Features
|
2021-07-20 19:20:28 +00:00
|
|
|
# R : 64 or 66 pins (T:36, C:48, V:100, Z:144, I:176)
|
|
|
|
# C : 256KB Flash-memory (B: 128KB, D:384KB, E:512KB, G:1024KB)
|
2021-04-18 19:07:30 +00:00
|
|
|
# T : LQFP package
|
|
|
|
# 6 : -40...85°C (7: ...105°C)
|
|
|
|
#
|
2021-04-02 02:53:19 +00:00
|
|
|
#################################
|
|
|
|
|
2021-07-20 19:20:28 +00:00
|
|
|
[common_STM32F103RC_variant]
|
|
|
|
extends = stm32_variant
|
2021-05-11 15:44:54 +00:00
|
|
|
board = genericSTM32F103RC
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags} -DDEBUG_LEVEL=0
|
|
|
|
monitor_speed = 115200
|
2021-05-11 15:44:54 +00:00
|
|
|
|
2021-06-03 07:40:16 +00:00
|
|
|
#
|
|
|
|
# STM32F103RE
|
|
|
|
#
|
|
|
|
[env:STM32F103RE]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_stm32
|
|
|
|
board = genericSTM32F103RE
|
|
|
|
monitor_speed = 115200
|
2021-06-03 07:40:16 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# STM32F103VE
|
|
|
|
#
|
|
|
|
[env:STM32F103VE]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_stm32
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
monitor_speed = 115200
|
2021-06-03 07:40:16 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# STM32F103ZE
|
|
|
|
#
|
|
|
|
[env:STM32F103ZE]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_stm32
|
|
|
|
board = genericSTM32F103ZE
|
|
|
|
monitor_speed = 115200
|
2021-06-03 07:40:16 +00:00
|
|
|
|
2021-06-10 21:09:29 +00:00
|
|
|
#
|
2022-07-29 23:53:39 +00:00
|
|
|
# BigTreeTech SKR Mini V1.1 / SKR Mini E3 & MZ (STM32F103RCT6 ARM Cortex-M3)
|
2021-06-10 21:09:29 +00:00
|
|
|
#
|
|
|
|
# STM32F103RC_btt ............. RCT6 with 256K
|
|
|
|
# STM32F103RC_btt_USB ......... RCT6 with 256K (USB mass storage)
|
|
|
|
#
|
2021-06-02 06:42:15 +00:00
|
|
|
[env:STM32F103RC_btt]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_STM32F103RC_variant
|
|
|
|
build_flags = ${common_STM32F103RC_variant.build_flags}
|
|
|
|
-DTIMER_SERVO=TIM5
|
|
|
|
board_build.offset = 0x7000
|
2021-05-11 15:44:54 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
|
|
|
|
2021-06-02 06:42:15 +00:00
|
|
|
[env:STM32F103RC_btt_USB]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = env:STM32F103RC_btt
|
|
|
|
platform_packages = ${stm_flash_drive.platform_packages}
|
|
|
|
build_flags = ${env:STM32F103RC_btt.build_flags}
|
|
|
|
-DUSE_USB_FS
|
|
|
|
-DUSBD_IRQ_PRIO=5
|
|
|
|
-DUSBD_IRQ_SUBPRIO=6
|
|
|
|
-DUSBD_USE_CDC_MSC
|
2021-05-11 15:44:54 +00:00
|
|
|
build_unflags = ${common_stm32.build_unflags} -DUSBD_USE_CDC
|
|
|
|
|
2022-03-18 04:49:47 +00:00
|
|
|
#
|
|
|
|
# Panda Pi V2.9 - Standalone (STM32F103RC)
|
|
|
|
# Headless, without direct Pi control, but potentially hosting OctoPrint, stepdaemon, etc.
|
|
|
|
#
|
|
|
|
[env:PANDA_PI_V29]
|
|
|
|
extends = common_STM32F103RC_variant
|
|
|
|
build_flags = ${common_STM32F103RC_variant.build_flags}
|
|
|
|
-DTIMER_SERVO=TIM1
|
|
|
|
board_build.offset = 0x5000
|
|
|
|
board_upload.offset_address = 0x08005000
|
2022-08-06 06:14:58 +00:00
|
|
|
lib_deps =
|
|
|
|
markyue/Panda_SoftMasterI2C@1.0.3
|
2021-04-02 02:53:19 +00:00
|
|
|
#
|
|
|
|
# MKS Robin (STM32F103ZET6)
|
|
|
|
# Uses HAL STM32 to support Marlin UI for TFT screen with optional touch panel
|
|
|
|
#
|
2021-06-02 06:42:15 +00:00
|
|
|
[env:mks_robin]
|
2022-06-24 04:58:26 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103ZE
|
|
|
|
board_build.variant = MARLIN_F103Zx
|
|
|
|
board_build.encrypt_mks = Robin.bin
|
|
|
|
board_build.offset = 0x7000
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
2021-04-02 02:53:19 +00:00
|
|
|
|
2021-06-04 03:38:10 +00:00
|
|
|
#
|
|
|
|
# MKS Robin E3/E3D (STM32F103RCT6) with TMC2209
|
|
|
|
#
|
|
|
|
[env:mks_robin_e3]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_STM32F103RC_variant
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = Robin_e3.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x5000
|
2021-06-04 03:38:10 +00:00
|
|
|
board_upload.offset_address = 0x08005000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${common_STM32F103RC_variant.build_flags}
|
|
|
|
-DTIMER_SERVO=TIM5 -DDEFAULT_SPI=3
|
|
|
|
build_unflags = ${common_STM32F103RC_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
2021-06-04 03:38:10 +00:00
|
|
|
debug_tool = stlink
|
|
|
|
|
2021-04-02 02:53:19 +00:00
|
|
|
#
|
2022-01-25 08:09:53 +00:00
|
|
|
# Creality (STM32F103Rx)
|
2021-04-02 02:53:19 +00:00
|
|
|
#
|
2022-01-25 08:09:53 +00:00
|
|
|
[STM32F103Rx_creality]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
|
|
|
board_build.offset = 0x7000
|
2021-06-02 06:42:15 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
|
|
|
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
|
|
|
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
|
|
|
pre:buildroot/share/PlatformIO/scripts/random-bin.py
|
|
|
|
monitor_speed = 115200
|
|
|
|
debug_tool = jlink
|
|
|
|
upload_protocol = jlink
|
2021-04-02 02:53:19 +00:00
|
|
|
|
2022-01-25 08:09:53 +00:00
|
|
|
#
|
2023-02-09 03:46:02 +00:00
|
|
|
# Creality (STM32F103Rx)
|
|
|
|
# With 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.
|
2022-01-25 08:09:53 +00:00
|
|
|
#
|
|
|
|
[STM32F103Rx_creality_xfer]
|
|
|
|
extends = STM32F103Rx_creality
|
2022-05-28 20:22:59 +00:00
|
|
|
build_flags = ${STM32F103Rx_creality.build_flags} -DXFER_BUILD
|
2022-01-25 08:09:53 +00:00
|
|
|
extra_scripts = ${STM32F103Rx_creality.extra_scripts}
|
2022-01-09 07:14:03 +00:00
|
|
|
pre:buildroot/share/scripts/upload.py
|
|
|
|
upload_protocol = custom
|
|
|
|
|
2022-01-25 08:09:53 +00:00
|
|
|
#
|
|
|
|
# Creality 512K (STM32F103RE)
|
|
|
|
#
|
|
|
|
[env:STM32F103RE_creality]
|
|
|
|
extends = STM32F103Rx_creality
|
|
|
|
board = genericSTM32F103RE
|
|
|
|
|
2023-02-09 03:46:02 +00:00
|
|
|
#
|
|
|
|
# Creality 512K (STM32F103RE) with custom binary upload to SD (see above).
|
|
|
|
#
|
2022-01-25 08:09:53 +00:00
|
|
|
[env:STM32F103RE_creality_xfer]
|
|
|
|
extends = STM32F103Rx_creality_xfer
|
|
|
|
board = genericSTM32F103RE
|
|
|
|
|
2023-02-09 03:46:02 +00:00
|
|
|
#
|
|
|
|
# Creality 512K (STM32F103RE) for new 64KiB bootloader (CR-10 Smart Pro printer)
|
|
|
|
#
|
2022-05-12 10:38:05 +00:00
|
|
|
[env:STM32F103RE_creality_smartPro]
|
|
|
|
extends = STM32F103Rx_creality
|
|
|
|
board_build.offset = 0x10000
|
|
|
|
board_upload.offset_address = 0x08010000
|
|
|
|
|
2022-01-25 08:09:53 +00:00
|
|
|
#
|
|
|
|
# Creality 256K (STM32F103RC)
|
|
|
|
#
|
|
|
|
[env:STM32F103RC_creality]
|
|
|
|
extends = STM32F103Rx_creality
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
|
2023-02-09 03:46:02 +00:00
|
|
|
#
|
|
|
|
# Creality 256K (STM32F103RC) with custom binary upload to SD (see above).
|
|
|
|
#
|
2022-01-25 08:09:53 +00:00
|
|
|
[env:STM32F103RC_creality_xfer]
|
|
|
|
extends = STM32F103Rx_creality_xfer
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
|
2022-10-01 16:25:00 +00:00
|
|
|
#
|
|
|
|
# Creality 512K (STM32F103VE)
|
|
|
|
#
|
|
|
|
[env:STM32F103VE_creality]
|
|
|
|
extends = STM32F103Rx_creality
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
|
|
|
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
2021-06-05 04:49:00 +00:00
|
|
|
#
|
2022-07-29 23:53:39 +00:00
|
|
|
# BigTreeTech SKR Mini E3 V2.0 & DIP / SKR CR6 (STM32F103RET6 ARM Cortex-M3)
|
2021-06-05 04:49:00 +00:00
|
|
|
#
|
|
|
|
# STM32F103RE_btt ............. RET6
|
|
|
|
# STM32F103RE_btt_USB ......... RET6 (USB mass storage)
|
|
|
|
#
|
|
|
|
[env:STM32F103RE_btt]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103RE
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
|
|
|
board_build.offset = 0x7000
|
2021-06-05 04:49:00 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DMCU_STM32F103RE -DHAL_SD_MODULE_ENABLED
|
|
|
|
-DSS_TIMER=4 -DTIMER_SERVO=TIM5
|
|
|
|
-DENABLE_HWSERIAL3 -DTRANSFER_CLOCK_DIV=8
|
|
|
|
monitor_speed = 115200
|
|
|
|
debug_tool = jlink
|
|
|
|
upload_protocol = jlink
|
2021-06-05 04:49:00 +00:00
|
|
|
|
|
|
|
[env:STM32F103RE_btt_USB]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = env:STM32F103RE_btt
|
|
|
|
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
|
2021-06-05 04:49:00 +00:00
|
|
|
|
2021-04-02 02:53:19 +00:00
|
|
|
#
|
2021-06-02 06:42:15 +00:00
|
|
|
# FLSUN QQS Pro (STM32F103VET6)
|
2021-04-02 02:53:19 +00:00
|
|
|
# board Hispeedv1
|
|
|
|
#
|
|
|
|
[env:flsun_hispeedv1]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = Robin_mini.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x7000
|
2021-04-02 02:53:19 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2021-07-20 19:20:28 +00:00
|
|
|
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
|
2021-04-02 02:53:19 +00:00
|
|
|
|
2022-08-22 15:31:02 +00:00
|
|
|
[mks_robin_nano_v1v2_common]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = Robin_nano35.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x7000
|
2021-04-02 02:53:19 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2022-08-22 15:31:02 +00:00
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = stlink
|
|
|
|
|
|
|
|
#
|
|
|
|
# MKS Robin Nano V1.2 and V2
|
|
|
|
#
|
|
|
|
[env:mks_robin_nano_v1v2]
|
|
|
|
extends = mks_robin_nano_v1v2_common
|
2021-07-20 19:20:28 +00:00
|
|
|
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
|
2022-08-22 15:31:02 +00:00
|
|
|
|
|
|
|
#
|
2022-09-02 02:47:37 +00:00
|
|
|
# MKS/ZNP Robin Nano V1.2 and V2 with native USB modification
|
2022-08-22 15:31:02 +00:00
|
|
|
#
|
2022-09-02 02:47:37 +00:00
|
|
|
[env:mks_robin_nano_v1v2_usbmod]
|
2022-08-22 15:31:02 +00:00
|
|
|
extends = mks_robin_nano_v1v2_common
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
|
|
|
-DMCU_STM32F103VE -DSS_TIMER=4
|
|
|
|
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
2021-04-02 02:53:19 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Mingda MPX_ARM_MINI
|
|
|
|
#
|
|
|
|
[env:mingda_mpx_arm_mini]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
2021-04-02 02:53:19 +00:00
|
|
|
board = genericSTM32F103ZE
|
|
|
|
board_build.variant = MARLIN_F103Zx
|
|
|
|
board_build.offset = 0x10000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
2021-06-06 07:50:14 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Malyan M200 (STM32F103CB)
|
|
|
|
#
|
|
|
|
[env:STM32F103CB_malyan]
|
2022-05-19 14:15:57 +00:00
|
|
|
extends = common_stm32
|
|
|
|
board = malyanm200_f103cb
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
|
|
|
-DHAL_PCD_MODULE_ENABLED -DDISABLE_GENERIC_SERIALUSB
|
|
|
|
-DHAL_UART_MODULE_ENABLED
|
|
|
|
build_src_filter = ${common.default_src_filter} +<src/HAL/STM32>
|
2021-07-14 06:57:26 +00:00
|
|
|
|
|
|
|
#
|
2021-07-14 22:55:24 +00:00
|
|
|
# FLYmaker FLY Mini (STM32F103RCT6)
|
2021-07-14 06:57:26 +00:00
|
|
|
#
|
|
|
|
[env:FLY_MINI]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
|
|
|
board_build.offset = 0x5000
|
2021-07-14 07:03:24 +00:00
|
|
|
board_upload.offset_address = 0x08005000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags} -DSS_TIMER=4
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MKS Robin Mini (STM32F103VET6)
|
|
|
|
#
|
|
|
|
[env:mks_robin_mini]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = Robin_mini.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x7000
|
2021-07-15 02:07:46 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DMCU_STM32F103VE -DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MKS Robin Lite/Lite2 (STM32F103RCT6)
|
|
|
|
#
|
|
|
|
[env:mks_robin_lite]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = mksLite.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x5000
|
2021-07-15 02:07:46 +00:00
|
|
|
board_upload.offset_address = 0x08005000
|
|
|
|
|
|
|
|
#
|
|
|
|
# MKS ROBIN LITE3 (STM32F103RCT6)
|
|
|
|
#
|
|
|
|
[env:mks_robin_lite3]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = env:mks_robin_lite
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = mksLite3.bin
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MKS Robin Pro (STM32F103ZET6)
|
|
|
|
#
|
|
|
|
[env:mks_robin_pro]
|
2022-06-24 04:58:26 +00:00
|
|
|
extends = env:mks_robin
|
|
|
|
board_build.encrypt_mks = Robin_pro.bin
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# MKS Robin E3p (STM32F103VET6)
|
|
|
|
# - LVGL UI
|
|
|
|
#
|
|
|
|
[env:mks_robin_e3p]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2022-06-24 04:58:26 +00:00
|
|
|
board_build.encrypt_mks = Robin_e3p.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x7000
|
2021-07-15 02:07:46 +00:00
|
|
|
board_upload.offset_address = 0x08007000
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DMCU_STM32F103VE -DSS_TIMER=4
|
|
|
|
-DTIMER_TONE=TIM3 -DTIMER_SERVO=TIM2
|
|
|
|
debug_tool = jlink
|
|
|
|
upload_protocol = jlink
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# JGAurora A5S A1 (STM32F103ZET6)
|
|
|
|
#
|
|
|
|
[env:jgaurora_a5s_a1]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103ZE
|
|
|
|
board_build.variant = MARLIN_F103Zx
|
|
|
|
board_build.offset = 0xA000
|
|
|
|
board_upload.offset_address = 0x0800A000
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DSTM32F1xx -DSTM32_XL_DENSITY
|
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
|
|
|
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# FYSETC STM32F103RC
|
|
|
|
#
|
|
|
|
[env:STM32F103RC_fysetc]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = common_STM32F103RC_variant
|
|
|
|
extra_scripts = ${common_STM32F103RC_variant.extra_scripts}
|
|
|
|
buildroot/share/PlatformIO/scripts/STM32F103RC_fysetc.py
|
2021-07-15 02:07:46 +00:00
|
|
|
lib_ldf_mode = chain
|
|
|
|
debug_tool = stlink
|
|
|
|
upload_protocol = serial
|
|
|
|
|
|
|
|
#
|
|
|
|
# Longer 3D board in Alfawise U20 (STM32F103VET6)
|
|
|
|
#
|
|
|
|
[env:STM32F103VE_longer]
|
2022-01-03 05:27:22 +00:00
|
|
|
extends = stm32_variant
|
2021-08-04 06:14:54 +00:00
|
|
|
lib_deps = ${common.lib_deps}
|
|
|
|
https://github.com/tpruvot/STM32_Servo_OpenDrain/archive/2.0.zip
|
2021-07-20 19:20:28 +00:00
|
|
|
board = genericSTM32F103VE
|
2021-08-04 06:14:54 +00:00
|
|
|
board_build.variant = MARLIN_F103VE_LONGER
|
2021-07-31 04:49:12 +00:00
|
|
|
board_build.rename = project.bin
|
2021-07-20 19:20:28 +00:00
|
|
|
board_build.offset = 0x10000
|
|
|
|
board_upload.offset_address = 0x08010000
|
2021-08-27 21:06:45 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags} -DMCU_STM32F103VE -DU20 -DTS_V12
|
2021-08-04 06:14:54 +00:00
|
|
|
build_unflags = ${stm32_variant.build_unflags} -DUSBCON -DUSBD_USE_CDC -DHAL_PCD_MODULE_ENABLED
|
2021-07-20 19:20:28 +00:00
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
2021-08-04 06:14:54 +00:00
|
|
|
monitor_speed = 250000
|
|
|
|
debug_tool = stlink
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# TRIGORILLA PRO (STM32F103ZET6)
|
|
|
|
#
|
|
|
|
[env:trigorilla_pro]
|
2021-08-30 22:02:12 +00:00
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103ZE
|
|
|
|
board_build.variant = MARLIN_F103Zx
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
2021-07-15 02:07:46 +00:00
|
|
|
|
2022-08-06 05:09:46 +00:00
|
|
|
#
|
|
|
|
# TRIGORILLA PRO DISK BASED (STM32F103ZET6)
|
|
|
|
# Builds for Trigorilla to update from SD
|
|
|
|
#
|
|
|
|
[env:trigorilla_pro_disk]
|
|
|
|
extends = stm32_variant
|
|
|
|
board = genericSTM32F103ZE
|
|
|
|
board_build.crypt_chitu = update.zw
|
|
|
|
board_build.variant = MARLIN_F103Zx
|
|
|
|
board_build.offset = 0x8800
|
|
|
|
build_flags = ${stm32_variant.build_flags}
|
|
|
|
-DENABLE_HWSERIAL3 -DTIMER_SERIAL=TIM5
|
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
-DUSBCON -DUSBD_USE_CDC
|
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
|
|
|
buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
|
|
|
|
|
|
|
|
2021-07-15 02:07:46 +00:00
|
|
|
#
|
|
|
|
# Chitu boards like Tronxy X5s (STM32F103ZET6)
|
|
|
|
#
|
|
|
|
[env:chitu_f103]
|
2021-07-20 19:20:28 +00:00
|
|
|
extends = stm32_variant
|
2021-07-15 02:07:46 +00:00
|
|
|
board = genericSTM32F103ZE
|
2022-08-06 05:09:46 +00:00
|
|
|
board_build.crypt_chitu = update.cbd
|
2021-07-15 02:07:46 +00:00
|
|
|
board_build.variant = MARLIN_F103Zx
|
2021-12-05 22:16:23 +00:00
|
|
|
board_build.offset = 0x8800
|
2021-07-20 19:20:28 +00:00
|
|
|
build_flags = ${stm32_variant.build_flags}
|
2021-12-05 22:16:23 +00:00
|
|
|
-DSTM32F1xx
|
2021-07-20 19:20:28 +00:00
|
|
|
build_unflags = ${stm32_variant.build_unflags}
|
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
|
|
|
buildroot/share/PlatformIO/scripts/chitu_crypt.py
|
2021-07-15 02:07:46 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Some Chitu V5 boards have a problem with GPIO init.
|
|
|
|
# Use this target if G28 or G29 are always failing.
|
|
|
|
#
|
|
|
|
[env:chitu_v5_gpio_init]
|
|
|
|
extends = env:chitu_f103
|
|
|
|
build_flags = ${env:chitu_f103.build_flags} -DCHITU_V5_Z_MIN_BUGFIX
|
2021-08-08 07:45:51 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Zonestar ZM3E2 V1.0 / ZM3E4 V1.0 / ZM3E4 V2.0
|
|
|
|
#
|
|
|
|
# STM32F103RC_ZM3E2_USB ........... RCT6 with 256K
|
|
|
|
# STM32F103VC_ZM3E4_USB ........... VCT6 with 256K
|
|
|
|
# STM32F103VE_ZM3E4V2_USB ......... VET6 with 512K
|
|
|
|
#
|
|
|
|
[ZONESTAR_ZM3E]
|
|
|
|
extends = stm32_variant
|
|
|
|
platform_packages = ${stm_flash_drive.platform_packages}
|
|
|
|
board_upload.offset_address = 0x08005000
|
|
|
|
board_build.offset = 0x5000
|
|
|
|
board_upload.maximum_size = 237568
|
|
|
|
extra_scripts = ${stm32_variant.extra_scripts}
|
|
|
|
build_flags = ${common_stm32.build_flags}
|
|
|
|
-DSS_TIMER=4 -DTIMER_SERVO=TIM5 -DUSE_USB_FS -DUSBD_IRQ_PRIO=5 -DUSBD_IRQ_SUBPRIO=6 -DUSBD_USE_CDC_MSC
|
|
|
|
build_unflags = ${stm32_variant.build_unflags} -DUSBD_USE_CDC
|
|
|
|
|
|
|
|
[env:STM32F103RC_ZM3E2_USB]
|
|
|
|
extends = ZONESTAR_ZM3E
|
|
|
|
board = genericSTM32F103RC
|
|
|
|
board_build.variant = MARLIN_F103Rx
|
|
|
|
|
|
|
|
[env:STM32F103VC_ZM3E4_USB]
|
|
|
|
extends = ZONESTAR_ZM3E
|
|
|
|
board = genericSTM32F103VC
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2021-12-03 20:48:54 +00:00
|
|
|
build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
|
2021-08-08 07:45:51 +00:00
|
|
|
|
|
|
|
[env:STM32F103VE_ZM3E4V2_USB]
|
|
|
|
extends = ZONESTAR_ZM3E
|
|
|
|
board = genericSTM32F103VE
|
|
|
|
board_build.variant = MARLIN_F103Vx
|
2021-12-03 20:48:54 +00:00
|
|
|
build_flags = ${ZONESTAR_ZM3E.build_flags} -DTIMER_TONE=TIM1
|
2021-08-08 07:45:51 +00:00
|
|
|
board_upload.maximum_size = 499712
|