Skip to content

Commit

Permalink
🔨 Rename FYSETC S6/Spider Environments
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiskeithb committed Nov 3, 2024
1 parent a261a5b commit 73159fa
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- BTT_GTR_V1_0
- BTT_SKR_PRO
- FLYF407ZG
- FYSETC_S6
- STM32F446VE_fysetc
- LERDGEK
- LERDGEX
- mks_robin_pro2
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/pins/pins.h
Original file line number Diff line number Diff line change
Expand Up @@ -780,13 +780,13 @@
#elif MB(LERDGE_X)
#include "stm32f4/pins_LERDGE_X.h" // STM32F4 env:LERDGEX env:LERDGEX_usb_flash_drive
#elif MB(FYSETC_S6)
#include "stm32f4/pins_FYSETC_S6.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
#include "stm32f4/pins_FYSETC_S6.h" // STM32F4 env:STM32F446VE_fysetc env:STM32F446VE_fysetc_32k_bootloader
#elif MB(FYSETC_S6_V2_0)
#include "stm32f4/pins_FYSETC_S6_V2_0.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
#include "stm32f4/pins_FYSETC_S6_V2_0.h" // STM32F4 env:STM32F446VE_fysetc env:STM32F446VE_fysetc_32k_bootloader
#elif MB(FYSETC_SPIDER)
#include "stm32f4/pins_FYSETC_SPIDER.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
#include "stm32f4/pins_FYSETC_SPIDER.h" // STM32F4 env:STM32F446VE_fysetc env:STM32F446VE_fysetc_32k_bootloader
#elif MB(FYSETC_SPIDER_V2_2)
#include "stm32f4/pins_FYSETC_SPIDER_V2_2.h" // STM32F4 env:FYSETC_S6 env:FYSETC_S6_8000
#include "stm32f4/pins_FYSETC_SPIDER_V2_2.h" // STM32F4 env:STM32F446VE_fysetc_32k_bootloader
#elif MB(FLYF407ZG)
#include "stm32f4/pins_FLYF407ZG.h" // STM32F4 env:FLYF407ZG
#elif MB(MKS_ROBIN2)
Expand Down
2 changes: 1 addition & 1 deletion buildroot/bin/mftest
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ lp9|lpc9) TESTENV='LPC1769' ;;
f1) TESTENV='STM32F103RE' ;;
f4) TESTENV='STM32F4' ;;
f7) TESTENV='STM32F7' ;;
s6) TESTENV='FYSETC_S6' ;;
s6) TESTENV='STM32F446VE_fysetc' ;;
teensy) TESTENV='teensy31' ;;
t31) TESTENV='teensy31' ;;
t32) TESTENV='teensy31' ;;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"cpu": "cortex-m4",
"extra_flags": "-DSTM32F446xx",
"f_cpu": "180000000L",
"mcu": "stm32f446ret6",
"variant": "MARLIN_FYSETC_S6"
"mcu": "stm32f446vet6",
"variant": "MARLIN_F446VE_FYSETC"
},
"connectivity": [
"can"
],
"debug": {
"jlink_device": "STM32F446RE",
"jlink_device": "STM32F446VE",
"openocd_target": "stm32f4x",
"svd_path": "STM32F446x.svd"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
# Build tests for FYSETC_S6
# Build tests for STM32F446VE_fysetc
#

# exit on first failure
Expand Down
6 changes: 6 additions & 0 deletions ini/renamed.ini
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,9 @@ extends = renamed

[env:BIGTREE_SKR_2_F429_USB_debug] ;=> STM32F429VG_btt_USB_debug
extends = renamed

[env:FYSETC_S6] ;=> STM32F446VE_fysetc
extends = renamed

[env:FYSETC_S6_8000] ;=> STM32F446VE_fysetc_32k_bootloader
extends = renamed
17 changes: 10 additions & 7 deletions ini/stm32f4.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ board_build.offset = 0x8000
upload_protocol = dfu

#
# FYSETC S6 (STM32F446RET6 ARM Cortex-M4)
# FYSETC S6 / Spider V1.x/2.x/3.x with 64k bootloader (STM32F446VET6 ARM Cortex-M4)
#
[env:FYSETC_S6]
[env:STM32F446VE_fysetc]
extends = stm32_variant
platform_packages = platformio/tool-dfuutil@~1.11.0
board = marlin_fysetc_s6
board = marlin_STM32F446VE_fysetc
board_build.offset = 0x10000
board_upload.offset_address = 0x08010000
build_flags = ${stm32_variant.build_flags} -DHAL_PCD_MODULE_ENABLED
Expand All @@ -77,11 +77,14 @@ upload_protocol = dfu
upload_command = dfu-util -a 0 -s 0x08010000:leave -D "$SOURCE"

#
# FYSETC S6 new bootloader
# FYSETC S6 / Spider V1.x/2.x/3.x with 32k bootloader
# All S6 & Spider (V2.2+) boards made after 2021/06/23 use this bootloader
# S6 - https://github.com/FYSETC/FYSETC-S6/tree/main/bootloader
# Spider - https://github.com/FYSETC/FYSETC-SPIDER/tree/main/bootloader
#
[env:FYSETC_S6_8000]
extends = env:FYSETC_S6
board = marlin_fysetc_s6
[env:STM32F446VE_fysetc_32k_bootloader]
extends = env:STM32F446VE_fysetc
board = marlin_STM32F446VE_fysetc
board_build.offset = 0x8000
board_upload.offset_address = 0x08008000
upload_command = dfu-util -a 0 -s 0x08008000:leave -D "$SOURCE"
Expand Down

0 comments on commit 73159fa

Please sign in to comment.