Skip to content

[FR] Support TFT SPI screens on STM32H7 platform #25046

@vovodroid

Description

@vovodroid

Is your feature request related to a problem? Please describe.

Currently "SPI TFT is currently only supported on STM32F1 and STM32F4 hardware", while new BTT SKR 3 board is STM32H7 based. Thus it's impossible to replace stock BTT SKR 2 board with SKR 3, as Biqu S1 SE uses TFT35 SPI screen.

I tried to add #include "stm32h7xx_hal.h", but build failed with error

Marlin\src\HAL\STM32\tft\xpt2046.cpp:146:18: error: 'struct SPI_TypeDef' has no member named 'DR'; did you mean 'SR'?
  146 |   SPIx.Instance->DR = data;

https://github.com/MarlinFirmware/Marlin/blob/bugfix-2.1.x/Marlin/src/HAL/STM32/tft/xpt2046.cpp#L146

Are you looking for hardware support?

Biqu S1 SE (Plus)

Describe the feature you want

Support TFT SPI screens on STM32H7 pratform

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions