TFT on Bluepill works on old stm32duino but not on 2.8.1
Posted: Sun Aug 04, 2024 1:19 am
I got an ST7798v IPS 320x240 TFT working on a Bluepill, without too much trouble, using a package 'STM32F1xx/GD32F1xx boards by stm32duino, Version 2022.9.26'. It uses a 4 wire SPI interface and works with both hardware and software SPI.
I'm using the 'graphicstest' example from the 'ADAfruit ST7735 and ST7789 Library'
Unfortunately it doesn't work with 2.8.1. It compiles and runs but nothing apears on the display. From the serial monitor output it appears to run at similar speed to the woprking version. The run time is dominated by the SPI speed so that would suggest that the SPI is running at the same rate. I tried changing from s/w to h/w SPI but it didn't help.
Can anyone suggest any obvious things I may have got wrong when moving to 2.8.1? Any simple tests or things to look for?
I could dig out may oscilloscope to look at the SPI signals but that would be quite a bit of effort (the scope is packed away) that I'd rather avoid for now.
I don't have much experience of the Arduino IDE beyond trying out a few examples and none with stm32duino.
TIA for any suggestions.
I'm using the 'graphicstest' example from the 'ADAfruit ST7735 and ST7789 Library'
Unfortunately it doesn't work with 2.8.1. It compiles and runs but nothing apears on the display. From the serial monitor output it appears to run at similar speed to the woprking version. The run time is dominated by the SPI speed so that would suggest that the SPI is running at the same rate. I tried changing from s/w to h/w SPI but it didn't help.
Can anyone suggest any obvious things I may have got wrong when moving to 2.8.1? Any simple tests or things to look for?
I could dig out may oscilloscope to look at the SPI signals but that would be quite a bit of effort (the scope is packed away) that I'd rather avoid for now.
I don't have much experience of the Arduino IDE beyond trying out a few examples and none with stm32duino.
TIA for any suggestions.