changing SPI-settings ends up in HAL-Timeout
Hi,
I have to change the CPOL and CPHA of SPI, because I'm communicating with different SPI-Devices. This worked fine on a Nucleo-Board with a Cortex M7.
On the Cortex M4 of the STM32MP157-DK2 it ends up in HAL-Timeout :(
After some time I found a solution.
I added this in front of the code changing the SPI-settings:
HAL_SPI_DeInit(&hspi5);
HAL_SPI_Init(&hspi5);
/** code to change settings of CPOL und CPHA **/Now it works perfectly fine :)
My question is now: why?
regards
Lukas
