Skip to main content
bad-engineer
Associate
September 18, 2024
Question

Internal Loopback Test with QuadSPI

  • September 18, 2024
  • 1 reply
  • 1548 views

I am trying to test QuadSPI peripheral in the STM32H745BIT6 by carrying out an internal Loopback test. I am apparently not configuring its parameters correctly. Can anyone suggest what configurations I should do for QuadSPI and if there's anything wrong with these functions (the code halts at the breakpoint on the last error handler function inside the QSPI_LoopbackTransmit() function)? main.c code is attached.

 

 

1 reply

TDK
Super User
September 18, 2024

You can't do a loopback with QSPI. It's not an SPI interface. The data pins are not driven the same way. In particular, for a given stage of the transmission, the peripheral is either sending data, or receiving data, but not both.

"If you feel a post has answered your question, please click ""Accept as Solution""."
bad-engineer
Associate
September 18, 2024

Thank you for replying, can you suggest an experiment that I can do to test QSPI functionality without an external device to connect to (like flash memory, ADC, etc)?

TDK
Super User
September 18, 2024

Transmit data and monitor it on a scope or logic analyzer. Verify the correct number of pulses and that the data is as expected. You can do the same with receive.

"If you feel a post has answered your question, please click ""Accept as Solution""."