cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103C8 using SPI2

hamo
Senior

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.

65 REPLIES 65
xisco
Associate III

There are few options left to try...

Radio interference? Try to shut down LoRa until display works

Try to shorten or shield display cables

hamo
Senior

I am interfacing only the display right now.

There is no LoRa now.

Display cables are max 7cm.

@xisco 

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.

 

@AScha.3 

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.

xisco
Associate III

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 🙁

hamo
Senior

I have tried many borads -> no success

hamo
Senior

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