2024-02-08 12:32 PM
Hello,
i am trying to interface 1.8 inch SPI TFT Display 128 x 160 to the STM32F103C8 using SPI2.
https://www.az-delivery.de/products/1-8-zoll-spi-tft-display
SPI1 is used for LoRa, i thought to connect TFT too to SPI1 using addresses but i am affraid to influence the
LoRa.
The library which i am using is from this website:
https://controllerstech.com/st7735-1-8-tft-display-with-stm32/
A year earlier i tried to interface LoRa to STM32F103C8 using SPI2 but without success.
Is it a general problem in STM32F103C8 using SPI2?
Any help is appreciated.
Solved! Go to Solution.
2024-02-18 04:23 PM
There are few options left to try...
Radio interference? Try to shut down LoRa until display works
Try to shorten or shield display cables
2024-02-19 01:38 AM
I am interfacing only the display right now.
There is no LoRa now.
Display cables are max 7cm.
2024-02-19 01:42 AM
In the initialize function of the display:
it tries to send command -> HAL_SPI_Transmit() -> checks for TXE flag -> not set -> timeout.
This dicplay works perfeclty on SPI1.
I checked often for wrong pins -> NO, i am using the right pins.
I think it is a settings problem, why?
There is no clock at all.
CS -> is set low -> works.
2024-02-19 03:36 PM
I'm sorry but I can't help you.
Maybe a previous project has damaged your boards...
I don't have more ideas to try :slightly_frowning_face:
2024-02-20 10:44 AM
I have tried many borads -> no success
2024-03-18 11:17 PM
The problem was with the hardware.
Finally i could get the SPI2 work together with SPI1 on the same Board.
Many Bluepills are just not good this days.
Anyway thank you all for being helpful.
Best regards
Mohamad