Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for MKS GB boards. #2886

Merged
merged 24 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/buildBinary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ jobs:
- name: Build MKS TFT35 V1.0
run: platformio run --environment MKS_TFT35_V1_0

- name: Build MKS GD TFT28 V1.2-4
run: platformio run --environment MKS_GD_TFT28_V1_2-4

- name: Remove Old Binaries
run: find "Copy to SD Card root directory to update/" -name '*.bin' -print -delete

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/buildTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,6 @@ jobs:

- name: Build MKS TFT35 V1.0
run: platformio run --environment MKS_TFT35_V1_0

- name: Build MKS GD TFT28 V1.2-4
run: platformio run --environment MKS_GD_TFT28_V1_2-4
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dump of bootloader V3.0.5

This is the bootloader dumped from MKS TFT Controller V1.4. It is only suitable for TFTs with GD32F305VCT6 MCU.
Do not use on any other TFT !!!


## Usage

Require an ST-link tool attached to the SWD port of your TFT Controller (should be soldered).

#### Dump

Execute the command `st-flash read bootloader.bin 0x08000000 0x7000`

#### Flash

From this folder, execute the command `st-flash write MKSTFT28EVO.BIN 0x8000000`
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ Only the TFTs listed below are currently supported. Trying to install the firmwa
MKS_TFT32L_V3_0
MKS_TFT35_V1_0

**MKS TFT with GigaDevice MCUs**

MKS_GD_TFT28_V1_2-4

**WARNING:** BTT does not officially provide MKS TFT hardware support. MKS TFT is maintained by open source contributors and BTT does not bear any risk of MKS TFT hardware using this firmware.

## Software Repository
Expand Down Expand Up @@ -250,6 +254,12 @@ For **MKS TFTs**:
1. The firmwares use the naming convention `MKS_TFT*_V*.*.*.x.bin`
2. Any binary file for an MKS firmware (e.g. `MKS_TFT28_V4.0.27.x.bin`) **MUST** be renamed to `MKSTFT*.bin` (e.g. `MKSTFT28.bin`, `MKSTFT35.bin` etc.) in order it can be recognized and installed by the TFT

For MKS TFTs **GigaDevice MCUs** (like the newest version of Genious Pro):

1. rename the right binary (e.g. `MKS_GD_TFT28_V1_2-4.27.x.bin`) in `mkstft28evo.bin`
2. create an empty `mkstft28.bin` file
3. create two empty directories `mks_font` and `mks_pic`

For example, for BTT TFT35 V3 select:

`BIGTREE_TFT35_V3.0.27.x.bin`
Expand Down Expand Up @@ -463,6 +473,7 @@ Please, see [Customization Guides](https://github.com/bigtreetech/BIGTREETECH-To
;MKS_TFT28_V4_0
;MKS_TFT28_NEW_GENIUS
;MKS_TFT35_V1_0
;MKS_GD_TFT28_V1_2-4
[platformio]
src_dir = TFT
boards_dir = buildroot/boards
Expand Down
392 changes: 392 additions & 0 deletions TFT/src/Libraries/cmsis/gd32f30x/gd32f30x.h

Large diffs are not rendered by default.

Loading