From f8a97554352b880bbfad2316e3644f9d59e00671 Mon Sep 17 00:00:00 2001 From: Msq001 <760675063@qq.com> Date: Wed, 16 Feb 2022 11:16:16 +0800 Subject: [PATCH] add GD32 support for all TFT Series (#2399) Co-authored-by: bigtreetech.Alan --- .github/workflows/buildBinary.yml | 42 +- .github/workflows/buildTest.yml | 44 ++- TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h | 11 + TFT/src/User/Variants/pin_GD_TFT43_V3_0.h | 44 +++ TFT/src/User/Variants/pin_GD_TFT50_V3_0.h | 29 ++ TFT/src/User/Variants/variants.h | 22 +- platformio.ini | 381 +++++++++++-------- 7 files changed, 376 insertions(+), 197 deletions(-) create mode 100644 TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h create mode 100644 TFT/src/User/Variants/pin_GD_TFT43_V3_0.h create mode 100644 TFT/src/User/Variants/pin_GD_TFT50_V3_0.h diff --git a/.github/workflows/buildBinary.yml b/.github/workflows/buildBinary.yml index 56a47eda2d..7a15700aac 100644 --- a/.github/workflows/buildBinary.yml +++ b/.github/workflows/buildBinary.yml @@ -26,6 +26,12 @@ jobs: run: | python -m pip install --upgrade pip pip install -U platformio + - name: Build TFT24 V1.1 + run: platformio run --environment BIGTREE_TFT24_V1_1 + - name: Build TFT28 V1.0 + run: platformio run --environment BIGTREE_TFT28_V1_0 + - name: Build TFT28 V3.0 + run: platformio run --environment BIGTREE_TFT28_V3_0 - name: Build TFT35 V1.0 run: platformio run --environment BIGTREE_TFT35_V1_0 - name: Build TFT35 V1.1 @@ -34,16 +40,10 @@ jobs: run: platformio run --environment BIGTREE_TFT35_V1_2 - name: Build TFT35 V2.0 run: platformio run --environment BIGTREE_TFT35_V2_0 - - name: Build GD_TFT35 V2.0 - run: platformio run --environment BIGTREE_GD_TFT35_V2_0 - name: Build TFT35 V3.0 run: platformio run --environment BIGTREE_TFT35_V3_0 - - name: Build GD TFT35 V3.0 - run: platformio run --environment BIGTREE_GD_TFT35_V3_0 - name: Build TFT35 E3 V3.0 run: platformio run --environment BIGTREE_TFT35_E3_V3_0 - - name: Build GD TFT35 E3 V3.0 - run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0 - name: Build TFT35 B1 V3.0 run: platformio run --environment BIGTREE_TFT35_B1_V3_0 - name: Build TFT43 V3.0 @@ -52,25 +52,33 @@ jobs: run: platformio run --environment BIGTREE_TFT50_V3_0 - name: Build TFT70 V3.0 run: platformio run --environment BIGTREE_TFT70_V3_0 - - name: Build TFT28 V1.0 - run: platformio run --environment BIGTREE_TFT28_V1_0 - - name: Build TFT28 V3.0 - run: platformio run --environment BIGTREE_TFT28_V3_0 - - name: Build TFT24 V1.1 - run: platformio run --environment BIGTREE_TFT24_V1_1 - name: Build GD_TFT24 V1.1 run: platformio run --environment BIGTREE_GD_TFT24_V1_1 + - name: Build GD_TFT35 V2.0 + run: platformio run --environment BIGTREE_GD_TFT35_V2_0 + - name: Build GD TFT35 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_V3_0 + - name: Build GD TFT35 E3 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0 + - name: Build GD TFT35 B1 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_B1_V3_0 + - name: Build GD TFT43 V3.0 + run: platformio run --environment BIGTREE_GD_TFT43_V3_0 + - name: Build GD TFT50 V3.0 + run: platformio run --environment BIGTREE_GD_TFT50_V3_0 + - name: Build GD TFT70 V3.0 + run: platformio run --environment BIGTREE_GD_TFT70_V3_0 + - name: Build MKS TFT28 V3.0 + run: platformio run --environment MKS_TFT28_V3_0 + - name: Build MKS TFT28 V4.0 + run: platformio run --environment MKS_TFT28_V4_0 + - name: Build MKS TFT28 New Genius - name: Build MKS TFT32 V1.3 run: platformio run --environment MKS_TFT32_V1_3 - name: Build MKS TFT32 V1.4 run: platformio run --environment MKS_TFT32_V1_4 - name: Build MKS TFT32 V1.4 No Bootloader run: platformio run --environment MKS_TFT32_V1_4_NOBL - - name: Build MKS TFT28 V3.0 - run: platformio run --environment MKS_TFT28_V3_0 - - name: Build MKS TFT28 V4.0 - run: platformio run --environment MKS_TFT28_V4_0 - - name: Build MKS TFT28 New Genius run: platformio run --environment MKS_TFT28_NEW_GENIUS - name: Remove Old Binaries run: find "Copy to SD Card root directory to update/" -name '*.bin' -print -delete diff --git a/.github/workflows/buildTest.yml b/.github/workflows/buildTest.yml index 35209ba6c5..0a6976adc8 100644 --- a/.github/workflows/buildTest.yml +++ b/.github/workflows/buildTest.yml @@ -30,6 +30,12 @@ jobs: run: | python -m pip install --upgrade pip pip install -U platformio + - name: Build TFT24 V1.1 + run: platformio run --environment BIGTREE_TFT24_V1_1 + - name: Build TFT28 V1.0 + run: platformio run --environment BIGTREE_TFT28_V1_0 + - name: Build TFT28 V3.0 + run: platformio run --environment BIGTREE_TFT28_V3_0 - name: Build TFT35 V1.0 run: platformio run --environment BIGTREE_TFT35_V1_0 - name: Build TFT35 V1.1 @@ -38,16 +44,10 @@ jobs: run: platformio run --environment BIGTREE_TFT35_V1_2 - name: Build TFT35 V2.0 run: platformio run --environment BIGTREE_TFT35_V2_0 - - name: Build GD_TFT35 V2.0 - run: platformio run --environment BIGTREE_GD_TFT35_V2_0 - name: Build TFT35 V3.0 run: platformio run --environment BIGTREE_TFT35_V3_0 - - name: Build GD TFT35 V3.0 - run: platformio run --environment BIGTREE_GD_TFT35_V3_0 - name: Build TFT35 E3 V3.0 run: platformio run --environment BIGTREE_TFT35_E3_V3_0 - - name: Build GD TFT35 E3 V3.0 - run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0 - name: Build TFT35 B1 V3.0 run: platformio run --environment BIGTREE_TFT35_B1_V3_0 - name: Build TFT43 V3.0 @@ -56,21 +56,29 @@ jobs: run: platformio run --environment BIGTREE_TFT50_V3_0 - name: Build TFT70 V3.0 run: platformio run --environment BIGTREE_TFT70_V3_0 - - name: Build TFT28 V1.0 - run: platformio run --environment BIGTREE_TFT28_V1_0 - - name: Build TFT28 V3.0 - run: platformio run --environment BIGTREE_TFT28_V3_0 - - name: Build TFT24 V1.1 - run: platformio run --environment BIGTREE_TFT24_V1_1 - - name: Build MKS TFT32 V1.3 - run: platformio run --environment MKS_TFT32_V1_3 - - name: Build MKS TFT32 V1.4 - run: platformio run --environment MKS_TFT32_V1_4 - - name: Build MKS TFT32 V1.4 No Bootloader - run: platformio run --environment MKS_TFT32_V1_4_NOBL + - name: Build GD_TFT35 V2.0 + run: platformio run --environment BIGTREE_GD_TFT35_V2_0 + - name: Build GD TFT35 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_V3_0 + - name: Build GD TFT35 E3 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_E3_V3_0 + - name: Build GD TFT35 B1 V3.0 + run: platformio run --environment BIGTREE_GD_TFT35_B1_V3_0 + - name: Build GD TFT43 V3.0 + run: platformio run --environment BIGTREE_GD_TFT43_V3_0 + - name: Build GD TFT50 V3.0 + run: platformio run --environment BIGTREE_GD_TFT50_V3_0 + - name: Build GD TFT70 V3.0 + run: platformio run --environment BIGTREE_GD_TFT70_V3_0 - name: Build MKS TFT28 V3.0 run: platformio run --environment MKS_TFT28_V3_0 - name: Build MKS TFT28 V4.0 run: platformio run --environment MKS_TFT28_V4_0 - name: Build MKS TFT28 New Genius run: platformio run --environment MKS_TFT28_NEW_GENIUS + - name: Build MKS TFT32 V1.3 + run: platformio run --environment MKS_TFT32_V1_3 + - name: Build MKS TFT32 V1.4 + run: platformio run --environment MKS_TFT32_V1_4 + - name: Build MKS TFT32 V1.4 No Bootloader + run: platformio run --environment MKS_TFT32_V1_4_NOBL diff --git a/TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h b/TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h new file mode 100644 index 0000000000..3daba6f3d0 --- /dev/null +++ b/TFT/src/User/Variants/pin_GD_TFT35_B1_V3_0.h @@ -0,0 +1,11 @@ +#ifndef _PIN_GD_TFT35_B1_V3_0_H_ // modify to actual filename !!! +#define _PIN_GD_TFT35_B1_V3_0_H_ // modify to actual filename !!! + +// Hardware version config +#ifndef HARDWARE_VERSION + #define HARDWARE_VERSION "GD_TFT35_B1_V3.0" +#endif + +#include "pin_GD_TFT35_V3_0.h" + +#endif diff --git a/TFT/src/User/Variants/pin_GD_TFT43_V3_0.h b/TFT/src/User/Variants/pin_GD_TFT43_V3_0.h new file mode 100644 index 0000000000..3f8c63bb17 --- /dev/null +++ b/TFT/src/User/Variants/pin_GD_TFT43_V3_0.h @@ -0,0 +1,44 @@ +#ifndef _PIN_GD_TFT43_V3_0_H_ // modify to actual filename !!! +#define _PIN_GD_TFT43_V3_0_H_ // modify to actual filename !!! + +#ifndef TFT_RESOLUTION + #define TFT_RESOLUTION + #ifdef PORTRAIT_MODE + #include "./Resolution/TFT_272X480.h" + #else + #include "./Resolution/TFT_480X272.h" + #endif +#endif + +// Update folder for fonts and icons +#ifndef UPDATE_DIR + #define UPDATE_DIR "TFT43" +#endif + +// Hardware version config +#ifndef HARDWARE_VERSION + #define HARDWARE_VERSION "GD_TFT43_V3.0" +#endif + +// LCD interface +#ifndef TFTLCD_DRIVER + #define TFTLCD_DRIVER SSD1963 // Type of LCD driver, now support[RM68042, ILI9488, ILI9341, ST7789, HX8558, SSD1963]. + #define TFTLCD_DRIVER_SPEED 0x10 // SSD1963 needs slower speed +#endif + +#ifndef SSD1963_LCD_PARA + #define SSD1963_LCD_PARA + #define SSD_DCLK_FREQUENCY 12 // 12Mhz + + #define SSD_HOR_PULSE_WIDTH 1 + #define SSD_HOR_BACK_PORCH 43 + #define SSD_HOR_FRONT_PORCH 2 + + #define SSD_VER_PULSE_WIDTH 1 + #define SSD_VER_BACK_PORCH 12 + #define SSD_VER_FRONT_PORCH 1 +#endif + +#include "pin_GD_TFT35_V3_0.h" + +#endif diff --git a/TFT/src/User/Variants/pin_GD_TFT50_V3_0.h b/TFT/src/User/Variants/pin_GD_TFT50_V3_0.h new file mode 100644 index 0000000000..52e636ad01 --- /dev/null +++ b/TFT/src/User/Variants/pin_GD_TFT50_V3_0.h @@ -0,0 +1,29 @@ +#ifndef _PIN_GD_TFT50_V3_0_H_ // modify to actual filename !!! +#define _PIN_GD_TFT50_V3_0_H_ // modify to actual filename !!! + +// Update folder for fonts and icons +#ifndef UPDATE_DIR + #define UPDATE_DIR "TFT50" +#endif + +// Hardware version config +#ifndef HARDWARE_VERSION + #define HARDWARE_VERSION "GD_TFT50_V3.0" +#endif + +#ifndef SSD1963_LCD_PARA + #define SSD1963_LCD_PARA + #define SSD_DCLK_FREQUENCY 9 // 9Mhz + + #define SSD_HOR_PULSE_WIDTH 1 + #define SSD_HOR_BACK_PORCH 41 + #define SSD_HOR_FRONT_PORCH 2 + + #define SSD_VER_PULSE_WIDTH 1 + #define SSD_VER_BACK_PORCH 10 + #define SSD_VER_FRONT_PORCH 2 +#endif + +#include "pin_GD_TFT43_V3_0.h" + +#endif diff --git a/TFT/src/User/Variants/variants.h b/TFT/src/User/Variants/variants.h index a4f7282f7b..a4cdc9ec78 100644 --- a/TFT/src/User/Variants/variants.h +++ b/TFT/src/User/Variants/variants.h @@ -36,20 +36,26 @@ #include "pin_TFT35_V2_0.h" #elif defined(TFT35_V3_0) #include "pin_TFT35_V3_0.h" -#elif defined(GD_TFT35_V3_0) - #include "pin_GD_TFT35_V3_0.h" -#elif defined(GD_TFT35_E3_V3_0) - #include "pin_GD_TFT35_E3_V3_0.h" +#elif defined(TFT35_E3_V3_0) + #include "pin_TFT35_E3_V3_0.h" +#elif defined(TFT35_B1_V3_0) + #include "pin_TFT35_B1_V3_0.h" #elif defined(TFT43_V3_0) #include "pin_TFT43_V3_0.h" #elif defined(TFT50_V3_0) #include "pin_TFT50_V3_0.h" #elif defined(TFT70_V3_0) #include "pin_TFT70_V3_0.h" -#elif defined(TFT35_E3_V3_0) - #include "pin_TFT35_E3_V3_0.h" -#elif defined(TFT35_B1_V3_0) - #include "pin_TFT35_B1_V3_0.h" +#elif defined(GD_TFT35_V3_0) + #include "pin_GD_TFT35_V3_0.h" +#elif defined(GD_TFT35_E3_V3_0) + #include "pin_GD_TFT35_E3_V3_0.h" +#elif defined(GD_TFT35_B1_V3_0) + #include "pin_GD_TFT35_B1_V3_0.h" +#elif defined(GD_TFT43_V3_0) + #include "pin_GD_TFT43_V3_0.h" +#elif defined(GD_TFT50_V3_0) + #include "pin_GD_TFT50_V3_0.h" #elif defined(MKS_TFT32_V1_3) #include "pin_MKS_TFT32_V1_3.h" #elif defined(MKS_TFT32_V1_4) diff --git a/platformio.ini b/platformio.ini index 8e34a73859..a9d438b5af 100644 --- a/platformio.ini +++ b/platformio.ini @@ -8,38 +8,44 @@ ; Please visit documentation for the other options and examples ; https://docs.platformio.org/page/projectconf.html +;BIGTREE_TFT24_V1_1 +;BIGTREE_TFT28_V1_0 +;BIGTREE_TFT28_V3_0 ;BIGTREE_TFT35_V1_0 ;BIGTREE_TFT35_V1_1 ;BIGTREE_TFT35_V1_2 ;BIGTREE_TFT35_V2_0 -;BIGTREE_GD_TFT35_V2_0 ;BIGTREE_TFT35_V3_0 -;BIGTREE_GD_TFT35_V3_0 ;BIGTREE_TFT35_E3_V3_0 -;BIGTREE_GD_TFT35_E3_V3_0 ;BIGTREE_TFT35_B1_V3_0 ;BIGTREE_TFT43_V3_0 ;BIGTREE_TFT50_V3_0 ;BIGTREE_TFT70_V3_0 -;BIGTREE_TFT28_V1_0 -;BIGTREE_TFT28_V3_0 -;BIGTREE_TFT24_V1_1 + ;BIGTREE_GD_TFT24_V1_1 -;MKS_TFT32_V1_3 -;MKS_TFT32_V1_4 -;MKS_TFT32_V1_4_NOBL +;BIGTREE_GD_TFT35_V2_0 +;BIGTREE_GD_TFT35_V3_0 +;BIGTREE_GD_TFT35_E3_V3_0 +;BIGTREE_GD_TFT35_B1_V3_0 +;BIGTREE_GD_TFT43_V3_0 +;BIGTREE_GD_TFT50_V3_0 +;BIGTREE_GD_TFT70_V3_0 + ;MKS_TFT28_V3_0 ;MKS_TFT28_V4_0 ;MKS_TFT28_NEW_GENIUS +;MKS_TFT32_V1_3 +;MKS_TFT32_V1_4 +;MKS_TFT32_V1_4_NOBL [platformio] src_dir = TFT boards_dir = buildroot/boards ;Build only Target - BIGTREE_TFT35_V3_0 -default_envs = BIGTREE_TFT35_V3_0 +;default_envs = BIGTREE_TFT35_V3_0 ;Build all Targets -;default_envs = BIGTREE_TFT35_V1_0, BIGTREE_TFT35_V1_1, BIGTREE_TFT35_V1_2, BIGTREE_TFT35_V2_0, BIGTREE_GD_TFT35_V2_0, BIGTREE_TFT35_V3_0, BIGTREE_GD_TFT35_V3_0, BIGTREE_TFT35_E3_V3_0, BIGTREE_GD_TFT35_E3_V3_0, BIGTREE_TFT35_B1_V3_0, BIGTREE_TFT43_V3_0, BIGTREE_TFT50_V3_0, BIGTREE_TFT70_V3_0, BIGTREE_TFT28_V1_0, BIGTREE_TFT28_V3_0, BIGTREE_TFT24_V1_1, BIGTREE_GD_TFT24_V1_1, MKS_TFT32_V1_3, MKS_TFT32_V1_4, MKS_TFT32_V1_4_NOBL, MKS_TFT28_V3_0, MKS_TFT28_V4_0, MKS_TFT28_NEW_GENIUS +default_envs = BIGTREE_TFT24_V1_1, BIGTREE_TFT28_V1_0, BIGTREE_TFT28_V3_0, BIGTREE_TFT35_V1_0, BIGTREE_TFT35_V1_1, BIGTREE_TFT35_V1_2, BIGTREE_TFT35_V2_0, BIGTREE_TFT35_V3_0, BIGTREE_TFT35_E3_V3_0, BIGTREE_TFT35_B1_V3_0, BIGTREE_TFT43_V3_0, BIGTREE_TFT50_V3_0, BIGTREE_TFT70_V3_0, BIGTREE_GD_TFT24_V1_1, BIGTREE_GD_TFT35_V2_0, BIGTREE_GD_TFT35_V3_0, BIGTREE_GD_TFT35_E3_V3_0, BIGTREE_GD_TFT35_B1_V3_0, BIGTREE_GD_TFT43_V3_0, BIGTREE_GD_TFT50_V3_0, BIGTREE_GD_TFT70_V3_0, MKS_TFT28_V3_0, MKS_TFT28_V4_0, MKS_TFT28_NEW_GENIUS, MKS_TFT32_V1_3, MKS_TFT32_V1_4, MKS_TFT32_V1_4_NOBL [common] default_src_filter = + - @@ -159,6 +165,52 @@ platform_packages = framework-spl-gd32@https://github.com/bigtreetech/gd32-pio-s framework = spl upload_protocol = cmsis-dap +# +# BIGTREE TFT24 V1.1 +# +[env:BIGTREE_TFT24_V1_1] +extends = common_stm32 +board = STM32F105RC_0x6000 +src_filter = ${stm32f10x.default_src_filter} + +extra_scripts = ${common.extra_scripts} + buildroot/scripts/stm32f105xC_0x6000_iap.py +build_flags = ${stm32f10x.build_flags} + -DSTM32F10X_CL= + -DHSE_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08006000 + -DRAM_SIZE=64 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_TFT24_V1.1" + -DHARDWARE_SHORT="B24V11" + -DTFT24_V1_1= + +# +# BIGTREE TFT28 V1.0 +# +[env:BIGTREE_TFT28_V1_0] +extends = env:BIGTREE_TFT35_V1_0 +build_flags = ${stm32f10x.build_flags} + -DSTM32F10X_HD= + -DHSE_VALUE=16000000ul + -DVECT_TAB_FLASH=0x08006000 + -DRAM_SIZE=48 ; Available RAM size in kbytes + -DHARDWARE="BIQU_TFT28_V1.0" + -DHARDWARE_SHORT="B28V10" + -DTFT28_V1_0= + +# +# BIGTREE TFT28 V3.0 +# +[env:BIGTREE_TFT28_V3_0] +extends = env:BIGTREE_TFT35_V3_0 +build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags} + -DSTM32F2XX= + -DHSE_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08008000 + -DRAM_SIZE=96 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_TFT28_V3.0" + -DHARDWARE_SHORT="B28V30" + -DTFT28_V3_0= + # # BIGTREE TFT35 V1.0 # @@ -223,24 +275,6 @@ build_flags = ${stm32f10x.build_flags} -DTFT35_V2_0= monitor_speed = 250000 -# -# BIGTREE GD TFT35 V2.0 -# -[env:BIGTREE_GD_TFT35_V2_0] -extends = env:BIGTREE_TFT35_V1_0 -board = STM32F103VC_0x6000 -extra_scripts = ${common.extra_scripts} - buildroot/scripts/stm32f103xC_0x6000_iap.py -build_flags = ${stm32f10x.build_flags} - -DSTM32F10X_HD= - -DHSE_VALUE=16000000ul - -DVECT_TAB_FLASH=0x08006000 - -DRAM_SIZE=48 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_GD_TFT35_V2.0" - -DHARDWARE_SHORT="G35V20" - -DTFT35_V2_0= -monitor_speed = 250000 - # # BIGTREE TFT35 V3.0 # @@ -260,64 +294,32 @@ build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags} -DTFT35_V3_0= # -# BIGTREE GD TFT35 V3.0 -# -[env:BIGTREE_GD_TFT35_V3_0] -extends = common_gd32 -board = GD32F205VC_0x3000 -src_filter = ${gd32f20x.default_src_filter} ${base64_png.default_src_filter} -extra_scripts = ${common.extra_scripts} - buildroot/scripts/gd32f20xxC_0x3000_iap.py -build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} - -DGD32F2XX= - -DHXTAL_VALUE=8000000ul - -DVECT_TAB_FLASH=0x08003000 - -DRAM_SIZE=128 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_GD_TFT35_V3.0" - -DHARDWARE_SHORT="B35V30" - -DGD_TFT35_V3_0= - -# -# BIGTREE TFT35 E3 V3.0 +# BIGTREE TFT35 B1 V3.0 # -[env:BIGTREE_TFT35_E3_V3_0] +[env:BIGTREE_TFT35_B1_V3_0] extends = env:BIGTREE_TFT35_V3_0 build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags} -DSTM32F2XX= -DHSE_VALUE=8000000ul -DVECT_TAB_FLASH=0x08008000 -DRAM_SIZE=96 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_TFT35_V3.0_E3" - -DHARDWARE_SHORT="35V3E3" - -DTFT35_E3_V3_0= - -# -# BIGTREE GD TFT35 E3 V3.0 -# -[env:BIGTREE_GD_TFT35_E3_V3_0] -extends = env:BIGTREE_GD_TFT35_V3_0 -build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} - -DGD32F2XX= - -DHXTAL_VALUE=8000000ul - -DVECT_TAB_FLASH=0x08003000 - -DRAM_SIZE=128 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_GD_TFT35_V3.0_E3" - -DHARDWARE_SHORT="35V3E3" - -DGD_TFT35_E3_V3_0= + -DHARDWARE="BIGTREE_TFT35_V3.0_B1" + -DHARDWARE_SHORT="35V3B1" + -DTFT35_B1_V3_0= # -# BIGTREE TFT35 B1 V3.0 +# BIGTREE TFT35 E3 V3.0 # -[env:BIGTREE_TFT35_B1_V3_0] +[env:BIGTREE_TFT35_E3_V3_0] extends = env:BIGTREE_TFT35_V3_0 build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags} -DSTM32F2XX= -DHSE_VALUE=8000000ul -DVECT_TAB_FLASH=0x08008000 -DRAM_SIZE=96 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_TFT35_V3.0_B1" - -DHARDWARE_SHORT="35V3B1" - -DTFT35_B1_V3_0= + -DHARDWARE="BIGTREE_TFT35_V3.0_E3" + -DHARDWARE_SHORT="35V3E3" + -DTFT35_E3_V3_0= # # BIGTREE TFT43 V3.0 @@ -365,38 +367,13 @@ build_flags = ${stm32f4xx.build_flags} ${base64_png.build_flags} -DHARDWARE_SHORT="B70V30" -DTFT70_V3_0= -# -# BIGTREE TFT28 V1.0 -# -[env:BIGTREE_TFT28_V1_0] -extends = env:BIGTREE_TFT35_V1_0 -build_flags = ${stm32f10x.build_flags} - -DSTM32F10X_HD= - -DHSE_VALUE=16000000ul - -DVECT_TAB_FLASH=0x08006000 - -DRAM_SIZE=48 ; Available RAM size in kbytes - -DHARDWARE="BIQU_TFT28_V1.0" - -DHARDWARE_SHORT="B28V10" - -DTFT28_V1_0= -# -# BIGTREE TFT28 V3.0 -# -[env:BIGTREE_TFT28_V3_0] -extends = env:BIGTREE_TFT35_V3_0 -build_flags = ${stm32f2xx.build_flags} ${base64_png.build_flags} - -DSTM32F2XX= - -DHSE_VALUE=8000000ul - -DVECT_TAB_FLASH=0x08008000 - -DRAM_SIZE=96 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_TFT28_V3.0" - -DHARDWARE_SHORT="B28V30" - -DTFT28_V3_0= +# GD32 Series # # BIGTREE TFT24 V1.1 # -[env:BIGTREE_TFT24_V1_1] +[env:BIGTREE_GD_TFT24_V1_1] extends = common_stm32 board = STM32F105RC_0x6000 src_filter = ${stm32f10x.default_src_filter} + @@ -407,39 +384,129 @@ build_flags = ${stm32f10x.build_flags} -DHSE_VALUE=8000000ul -DVECT_TAB_FLASH=0x08006000 -DRAM_SIZE=64 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_TFT24_V1.1" - -DHARDWARE_SHORT="B24V11" + -DHARDWARE="BIGTREE_GD_TFT24_V1.1" + -DHARDWARE_SHORT="G24V11" -DTFT24_V1_1= # -# BIGTREE TFT24 V1.1 +# BIGTREE GD TFT35 V2.0 # -[env:BIGTREE_GD_TFT24_V1_1] -extends = common_stm32 -board = STM32F105RC_0x6000 -src_filter = ${stm32f10x.default_src_filter} + +[env:BIGTREE_GD_TFT35_V2_0] +extends = env:BIGTREE_TFT35_V1_0 +board = STM32F103VC_0x6000 extra_scripts = ${common.extra_scripts} - buildroot/scripts/stm32f105xC_0x6000_iap.py + buildroot/scripts/stm32f103xC_0x6000_iap.py build_flags = ${stm32f10x.build_flags} - -DSTM32F10X_CL= - -DHSE_VALUE=8000000ul + -DSTM32F10X_HD= + -DHSE_VALUE=16000000ul -DVECT_TAB_FLASH=0x08006000 - -DRAM_SIZE=64 ; Available RAM size in kbytes - -DHARDWARE="BIGTREE_GD_TFT24_V1.1" - -DHARDWARE_SHORT="G24V11" - -DTFT24_V1_1= + -DRAM_SIZE=48 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT35_V2.0" + -DHARDWARE_SHORT="G35V20" + -DTFT35_V2_0= +monitor_speed = 250000 # -# MKS TFT32 V1.3 +# BIGTREE GD TFT35 V3.0 # -[env:MKS_TFT32_V1_3] +[env:BIGTREE_GD_TFT35_V3_0] +extends = common_gd32 +board = GD32F205VC_0x3000 +src_filter = ${gd32f20x.default_src_filter} ${base64_png.default_src_filter} +extra_scripts = ${common.extra_scripts} + buildroot/scripts/gd32f20xxC_0x3000_iap.py +build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} + -DGD32F2XX= + -DHXTAL_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08003000 + -DRAM_SIZE=128 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT35_V3.0" + -DHARDWARE_SHORT="B35V30" + -DGD_TFT35_V3_0= + +# +# BIGTREE GD TFT35 E3 V3.0 +# +[env:BIGTREE_GD_TFT35_E3_V3_0] +extends = env:BIGTREE_GD_TFT35_V3_0 +build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} + -DGD32F2XX= + -DHXTAL_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08003000 + -DRAM_SIZE=128 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT35_V3.0_E3" + -DHARDWARE_SHORT="35V3E3" + -DGD_TFT35_E3_V3_0= + +# +# BIGTREE GD TFT35 B1 V3.0 +# +[env:BIGTREE_GD_TFT35_B1_V3_0] +extends = env:BIGTREE_GD_TFT35_V3_0 +build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} + -DGD32F2XX= + -DHXTAL_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08003000 + -DRAM_SIZE=128 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT35_V3.0_B1" + -DHARDWARE_SHORT="35V3B1" + -DGD_TFT35_B1_V3_0= + +# +# BIGTREE GD TFT43 V3.0 +# +[env:BIGTREE_GD_TFT43_V3_0] +extends = env:BIGTREE_GD_TFT35_V3_0 +build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} + -DGD32F2XX= + -DHXTAL_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08003000 + -DRAM_SIZE=128 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT43_V3.0" + -DHARDWARE_SHORT="B43V30" + -DGD_TFT43_V3_0= + +# +# BIGTREE GD TFT50 V3.0 +# +[env:BIGTREE_GD_TFT50_V3_0] +extends = env:BIGTREE_GD_TFT35_V3_0 +build_flags = ${gd32f20x.build_flags} ${base64_png.build_flags} + -DGD32F2XX= + -DHXTAL_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08003000 + -DRAM_SIZE=128 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT50_V3.0" + -DHARDWARE_SHORT="B50V30" + -DGD_TFT50_V3_0= + +# +# BIGTREE GD TFT70 V3.0 +# +[env:BIGTREE_GD_TFT70_V3_0] extends = common_stm32 -board = STM32F107VC_0x7000 -upload_protocol = stlink -debug_tool = stlink -src_filter = ${stm32f10x.default_src_filter} + +board = STM32F407VG_0x8000 +src_filter = ${stm32f4xx.default_src_filter} ${base64_png.default_src_filter} + extra_scripts = ${common.extra_scripts} - buildroot/scripts/stm32f107xC_0x7000_iap.py + buildroot/scripts/stm32f4xxxG_0x8000_iap.py +build_flags = ${stm32f4xx.build_flags} ${base64_png.build_flags} + -DSTM32F40_41xxx= + -DHSE_VALUE=8000000ul + -DVECT_TAB_FLASH=0x08008000 + -DRAM_SIZE=192 ; Available RAM size in kbytes + -DHARDWARE="BIGTREE_GD_TFT70_V3.0" + -DHARDWARE_SHORT="B70V30" + -DTFT70_V3_0= + + + +# +# MKS Series, Maintained by open source contributors +# +# MKS TFT28 V3.0 +# +[env:MKS_TFT28_V3_0] +extends = env:MKS_TFT32_V1_3 build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= -DHSE_VALUE=25000000ul @@ -447,15 +514,15 @@ build_flags = ${stm32f10x.build_flags} -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT32_V1.3" - -DHARDWARE_SHORT="M32V13" - -DMKS_TFT32_V1_3= + -DHARDWARE="MKS_TFT28_V3.0" + -DHARDWARE_SHORT="M28V30" + -DMKS_TFT28_V3_0= -DMKS_TFT= # -# MKS TFT32 V1.4 +# MKS TFT28 V4.0 # -[env:MKS_TFT32_V1_4] +[env:MKS_TFT28_V4_0] extends = env:MKS_TFT32_V1_3 build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= @@ -464,37 +531,39 @@ build_flags = ${stm32f10x.build_flags} -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT32_V1.4" - -DHARDWARE_SHORT="M32V14" - -DMKS_TFT32_V1_4= + -DHARDWARE="MKS_TFT28_V4.0" + -DHARDWARE_SHORT="M28V40" + -DMKS_TFT28_V4_0= -DMKS_TFT= # -# MKS TFT32 V1.4 No Bootloader +# MKS TFT28 New Artillery Genius (with new bicolor filament sensor LED) # -[env:MKS_TFT32_V1_4_NOBL] +[env:MKS_TFT28_NEW_GENIUS] extends = env:MKS_TFT32_V1_3 -board = STM32F107VC_0x0000 -extra_scripts = ${common.extra_scripts} - buildroot/scripts/stm32f107xC_0x0000_iap.py build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= -DHSE_VALUE=25000000ul - -DVECT_TAB_FLASH=0x08000000 + -DVECT_TAB_FLASH=0x08007000 -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT32_V1.4" - -DHARDWARE_SHORT="M32V14" - -DMKS_TFT32_V1_4= - -DMKS_TFT32_V1_4_NOBL= + -DHARDWARE="MKS_TFT28_NEW_GENIUS" + -DHARDWARE_SHORT="M28NG" + -DMKS_TFT28_NEW_GENIUS= -DMKS_TFT= # -# MKS TFT28 V3.0 +# MKS TFT32 V1.3 # -[env:MKS_TFT28_V3_0] -extends = env:MKS_TFT32_V1_3 +[env:MKS_TFT32_V1_3] +extends = common_stm32 +board = STM32F107VC_0x7000 +upload_protocol = stlink +debug_tool = stlink +src_filter = ${stm32f10x.default_src_filter} + +extra_scripts = ${common.extra_scripts} + buildroot/scripts/stm32f107xC_0x7000_iap.py build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= -DHSE_VALUE=25000000ul @@ -502,15 +571,15 @@ build_flags = ${stm32f10x.build_flags} -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT28_V3.0" - -DHARDWARE_SHORT="M28V30" - -DMKS_TFT28_V3_0= + -DHARDWARE="MKS_TFT32_V1.3" + -DHARDWARE_SHORT="M32V13" + -DMKS_TFT32_V1_3= -DMKS_TFT= # -# MKS TFT28 V4.0 +# MKS TFT32 V1.4 # -[env:MKS_TFT28_V4_0] +[env:MKS_TFT32_V1_4] extends = env:MKS_TFT32_V1_3 build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= @@ -519,24 +588,28 @@ build_flags = ${stm32f10x.build_flags} -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT28_V4.0" - -DHARDWARE_SHORT="M28V40" - -DMKS_TFT28_V4_0= + -DHARDWARE="MKS_TFT32_V1.4" + -DHARDWARE_SHORT="M32V14" + -DMKS_TFT32_V1_4= -DMKS_TFT= # -# MKS TFT28 New Artillery Genius (with new bicolor filament sensor LED) +# MKS TFT32 V1.4 No Bootloader # -[env:MKS_TFT28_NEW_GENIUS] +[env:MKS_TFT32_V1_4_NOBL] extends = env:MKS_TFT32_V1_3 +board = STM32F107VC_0x0000 +extra_scripts = ${common.extra_scripts} + buildroot/scripts/stm32f107xC_0x0000_iap.py build_flags = ${stm32f10x.build_flags} -DSTM32F10X_CL= -DHSE_VALUE=25000000ul - -DVECT_TAB_FLASH=0x08007000 + -DVECT_TAB_FLASH=0x08000000 -DRAM_SIZE=64 ; Available RAM size in kbytes ; -DBINARY_FILENAME="MKSTFT28" ; To override the default binary filename provided by -DHARDWARE ; -DBINARY_DIRECTORY="Copy to SD Card - MKS" ; To override the default release directory - -DHARDWARE="MKS_TFT28_NEW_GENIUS" - -DHARDWARE_SHORT="M28NG" - -DMKS_TFT28_NEW_GENIUS= + -DHARDWARE="MKS_TFT32_V1.4" + -DHARDWARE_SHORT="M32V14" + -DMKS_TFT32_V1_4= + -DMKS_TFT32_V1_4_NOBL= -DMKS_TFT=