2024-11-11 02:18 AM - edited 2024-11-17 09: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 09: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 09: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.