2021-10-19 06:33 AM
Hello,
I tried to use SPI connectivity on STM32F769I-DISCO in order to comminucate with an ADC (LTC2440), but i can't visualize the SPI Clock on my scope. I used the SPI2, so the clock signal can be retrieved on the arduino pin (D13).
Has anyone ever encountred this issue ?
You 'll find attached a part of my code and the clock settings
Best regards.
2021-10-26 06:33 AM
Hello,
Could you please share with us your .ioc file and specify the STM32CubeMX version that you are using.
thanks in advance,
Sara
2021-10-28 07:32 AM
2021-10-28 09:34 AM
Read out and check/post SPI and relevant GPIO registers content.
Make sure there is required connectivity between the mcu pin and the connector (i.e. there's no disconnected jumper or solder bridge) and that there's no connection to on-board circuitry which would be in conflict with the pin. Write a simple program which sets this pin to GPIO Output and in main toggles its output level, and observe on oscilloscope.
JW
2021-10-29 01:15 AM
Hi @PSOW.1 ,
Could you please test the loopback example first to verify that the SPI works correctly. You simply need to connect MOSI to MISO and check the pDataRx content after the transfer.
In order to visualize the clock signal try to adjust the time scale of your scope and make sure to take into account the delay that you added in the while loop.
Regards,
Sara.