Closed AndreoBotelho closed 2 months ago
Hi @AndreoBotelho
about setClockDivider
it should not be used, you have to use SPISettings
:
https://www.arduino.cc/reference/en/language/functions/communication/spi/setclockdivider/
About your issue with clock divider did you check the clock config? About the need of miso, yes it is required to properly init the SPI: https://github.com/stm32duino/Arduino_Core_STM32/blob/3a3ff8428655c0fb314a48b06461a6b78a2833f7/libraries/SPI/src/utility/spi_com.c#L222-L226
About DMA, it is not planned. Anyway, feel free to contribute 😉
I see no specific issue (except maybe the clock divider) so what did you expect?
Describe the bug stm hang when trying to send data to SPI bus
To Reproduce
Steps to reproduce the behavior:
Expected behavior send bytes to display
Screenshots N/A
Desktop (please complete the following information):
Board (please complete the following information):
Additional context SPI.setClockDivider(int); is not working, I can get only 256 divider, manually coding 2 divider works fine uncommenting //SPI.setMISO(PE5); make it works but I don't have this MISO pin connected and loses a GPIO on PE5
are there any plans to support DMA transfer? the current code is slow and eats a lot of cpu power.