From 14a83103c32fe1590b5b0416f71d1445648c58ed Mon Sep 17 00:00:00 2001 From: Bevan Weiss Date: Fri, 6 Sep 2024 06:50:32 +1000 Subject: flashsd: Add support for chitu-v6 (#6671) Add flashsd configuration for Tronxy x5sa and other printers based on Chitu v6 board. These boards should support sdio (this is what the schematic details), however I couldn't get this working from a quick try. Signed-off-by: Bevan Weiss --- scripts/spi_flash/board_defs.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts/spi_flash/board_defs.py') diff --git a/scripts/spi_flash/board_defs.py b/scripts/spi_flash/board_defs.py index c0a8b577..9924fefc 100644 --- a/scripts/spi_flash/board_defs.py +++ b/scripts/spi_flash/board_defs.py @@ -46,6 +46,7 @@ BOARD_DEFS = { 'mcu': "stm32f103xe", 'spi_bus': "spi2", "cs_pin": "PA15", + "conversion_script": "scripts/update_mks_robin.py", "firmware_path": "Robin_e3.bin", "current_firmware_path": "Robin_e3.cur" }, @@ -133,6 +134,16 @@ BOARD_DEFS = { 'mcu': "stm32g0b1xx", 'spi_bus': "spi1", "cs_pin": "PB8" + }, + 'chitu-v6': { + 'mcu': "stm32f103xe", + 'spi_bus': "swspi", + 'spi_pins': "PC8,PD2,PC12", + "cs_pin": "PC11", + #'sdio_bus': 'sdio', + "conversion_script": "scripts/update_chitu.py", + "firmware_path": "update.cbd", + 'skip_verify': True } } @@ -182,7 +193,8 @@ BOARD_ALIASES = { 'fysetc-s6-v1.2': BOARD_DEFS['fysetc-spider'], 'fysetc-s6-v2': BOARD_DEFS['fysetc-spider'], 'robin_v3': BOARD_DEFS['monster8'], - 'btt-skrat-v1.0': BOARD_DEFS['btt-skrat'] + 'btt-skrat-v1.0': BOARD_DEFS['btt-skrat'], + 'chitu-v6': BOARD_DEFS['chitu-v6'] } def list_boards(): -- cgit v1.2.3-70-g09d2