2021-10-08 04:04 AM
Hi,
I have been working on my Custom STM32F405 Board. I have been using different Communication protocols like I2C,SPI2,I2C1,USB OTG on the same chip in a single code using FREE RTOS.
However, I have a problem with SPI1 of STM32F405. I'm trying to communicate with a ADS1292R Chip which also built on a custom board. The ADS1292R Board is working perfectly with STM32F401RE NUCLEO BOARD(SPI2 ON NUCLEO BOARD). But when I'm using the same code with STM32F405 with SPI1, I'm not getting correct result. The same code is working on STM32F401(SPI2) but not on STM32F405(SPI1).
Is there any difference in SPI Modules of both IC's?
Solved! Go to Solution.
2021-10-11 01:35 AM
if you have enabled the correct SPI clock for STM32F401(SPI2 clock) and STM32F405(SPI1 clock) respectively? this problem should be caused by wrong SPI configuration. if have no idea, it is better to monitor SPI port signal by oscilloscope.
2021-10-08 07:17 AM
> Is there any difference in SPI Modules of both IC's?
The registers are the same, which probably means the modules are identical, especially as they're in the same family.
Perhaps elaborate on the problem, what you're getting, and what you expect.
2021-10-11 01:35 AM
if you have enabled the correct SPI clock for STM32F401(SPI2 clock) and STM32F405(SPI1 clock) respectively? this problem should be caused by wrong SPI configuration. if have no idea, it is better to monitor SPI port signal by oscilloscope.
2021-10-11 04:45 AM
Hi,
Yes , it was SPI clock Speed Issue. I had to lower the SPI Clock to 1MHZ in case of STM32F405.