Question
STM32F412 SPI not sending
I'm using the STM32F412 with an SPI LCD on a custom board and am having problems with the SPI communications. It seems that the TXE flag is always high, and therefore the code locks on the -:
while (!__HAL_SPI_GET_FLAG(&spiHal, SPI_FLAG_TXE))
:- check used after loading the first character into the FIFO.
I'm using the Arduino TFT_eSPI library and this was previously tested using an STM32F410 Nucleo board. We used the F412 for the production system as we need more memory and may require USB later, but I would have expected this to work much the same on the two processors.
I could guess that I've not got something configured correctly somewhere - possibly with the clocks (since I'm a little suspicious that my clock config isn't being updated correctly), but I'd welcome any pointers as to why the SPI might show busy. There is little else done before this other than to configure the alternative pin functions and configure some debug serial and LED...
Thanks.
