2019-06-21 12:22 AM
The clock and data lines on SPI seem to go tri-state off when not in use even though the SPI channel is left open. Is this expected behaviour? It causes issues with some connected chips as they see the re-establishment of the driven clock signal as a clock pulse
Code is:
HAL_SPI_TransmitReceive(&hspi3, mybufft.cTxBuffer, mybuffr.cRxBuffer, 1, 5000);
Solved! Go to Solution.
2019-06-21 08:34 AM
see
void MX_SPI1_Init(void)
{
...
...
hspi1.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE;
...
2019-06-21 12:28 AM
> Code is:
> HAL_SPI_TransmitReceive(&hspi3, mybufft.cTxBuffer, mybuffr.cRxBuffer, 1, 5000);
That's no code. That's a call to a "library" function. Look at that what it does.
Or use bandaid a pullup.
JW
2019-06-21 08:34 AM
see
void MX_SPI1_Init(void)
{
...
...
hspi1.Init.MasterKeepIOState = SPI_MASTER_KEEP_IO_STATE_ENABLE;
...