2024-11-11 2:18 AM - edited 2024-11-17 9:32 PM
I’m working on reading an ADC that’s interfaced with an STM32L4RET6, and I’m encountering an issue with data reception when switching SPI modes. Here’s the setup:
The issue arises when switching from full-duplex to receive-only mode on the SPI: while the ADC configuration works in full-duplex, no data is received by the SPI after enabling RX_ONLY mode. Any ideas on why this might be happening or suggestions on how to troubleshoot this?
Solved! Go to Solution.
2024-11-17 9:31 PM
I resolved the issue by configuring SPI1 in full-duplex mode and synchronizing only SPI1_TX with DMAMUX CHANNEL0 Event. SPI1_RX was set to circular mode, allowing me to read all ADC channel data (27 bytes) every 125 µs (8 ksps) as per the setup below.
2024-11-17 9:31 PM
I resolved the issue by configuring SPI1 in full-duplex mode and synchronizing only SPI1_TX with DMAMUX CHANNEL0 Event. SPI1_RX was set to circular mode, allowing me to read all ADC channel data (27 bytes) every 125 µs (8 ksps) as per the setup below.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.