stm32duino / Arduino_Core_STM32

STM32 core support for Arduino
https://github.com/stm32duino/Arduino_Core_STM32/wiki
Other
2.76k stars 961 forks source link

SPI.beginTransaction() does not work - help #695

Closed litian85734 closed 4 years ago

litian85734 commented 4 years ago

Dear All sirs: I use STM32F401 SPI HW mode drive the TFT LCD, but the speed is very low even worse than soft SPI mode, I try to use SPI.beginTransaction(SPISettings(XXXX, MSBFIRST, SPI_MODE0)) to change the SPI speed, but seems no use, Anybody meet same issue?

Thanks

fpistm commented 4 years ago

Hi @litian85734 could you be more precise (setup, LCD, core version, board, ...) and share your sketch.

stas2z commented 4 years ago

Ive played with st7735 spi lcd last week, using f401cc blackpill, and can say SPI.beginTransaction works fine, ive made a test using 10kb bitmap drawing in a loop which changed spi clock, drawing speed changed as expected. Also ive tested software spi bitbanging in compare with hw spi and it was much slower. So probably your lib have an issue with hw spi implementation

BennehBoy commented 4 years ago

+1 There a re a lot of broken SPI implementations out their in user library land.

On Fri, Oct 18, 2019 at 7:32 PM stas2z notifications@github.com wrote:

Ive played with st7735 spi lcd last week, using f401cc blackpill, and can say SPI.beginTransaction works fine, ive made a test using 10kb bitmap drawing in a loop which changed spi clock, drawing speed changed as expected. Also ive tested software spi bitbanging in compare with hw spi and it was much slower. So probably your lib have an issue with hw spi implementation

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stm32duino/Arduino_Core_STM32/issues/695?email_source=notifications&email_token=AF6R4XWBHYWBHTWRQYSDBS3QPH6NFA5CNFSM4JACGWQKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBVOVGQ#issuecomment-543877786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6R4XQVKYQGUKSCHYW2WJ3QPH6NFANCNFSM4JACGWQA .

fpistm commented 4 years ago

No feedback since more than a week and it works. Close it