SPI is always stuck in busy state
I have found several other forum posts on this subject, and I've tried to follow them, but I'm still stuck. For some reason, SPI3 on my bl47eio1a never enters a ready state. It gets stuck waiting for a ready state before it ever can send or receive anything. Below is the code I'm using to try and force the SPI to reset. I got these tips from other forum posts, but I'm still stuck. I've also attached my .ioc file so you can try to reproduce the issue if desired.
void radioInit(const Radio *radio) {
__HAL_RCC_SPI3_FORCE_RESET();
__HAL_RCC_SPI3_RELEASE_RESET();
// wait for SPI to enter ready state
while(radio->hspi->State != HAL_SPI_STATE_READY) {
HAL_GPIO_TogglePin(radio->nss.port, radio->nss.pin);
HAL_Delay(100);
}
}