How to reset SPI using HAL functions using Nucleo - L073RZ
I am working on a SPI project (using DMA) as a slave and things seems to work fine but after an hour and maybe more in some cases I see one error and that locks the dma ....I can detect when that happens but I have problems to reset the SPI interface...I tried several things what were posted before like:
HAL_SPI_Abort_IT(&hspi3);
HAL_SPI_Abort(&hspi3);
HAL_SPI_AbortCpltCallback(&hspi3);
HAL_SPIEx_FlushRxFifo(&hspi3);
HAL_SPI_DeInit(&hspi3);
HAL_SPI_Init(&hspi3);
but it does not fix it ...I am using HAL functions ...in a post 2 years ago from from Gone Aug 06 he included the following:
- SPIP_SlaveConfigureSpi(pSPIP->hspi);
- SPIP_SlaveConfigureDma(pSPIP->hspi);
I do not think these are HAL functions I wonder if you anybody has the code for the functions mentioned above ?
I have been struggling with this for some time ......not sure if it is a noise issue (working with NUCLEO L073RZ ) I am using the highest priority for the SPi and also trying to add pull downs to clock and mosi to try to reduce noise but does not seem to help ....
Thanks for your help.
