Skip to main content

2 replies

KnarfB
Super User
August 14, 2024

In  SPI1_Transmit_DMA, the data_to_send parameter is already a pointer.

You should not pass that pointer's address to CMAR, but the pointer itself.

hth

KnarfB

Associate II
August 14, 2024

thanks for the answer. I corrected, unfortunately it had no effect. I happen to have a logic state analyzer and it looks the same as before.

TDK
August 14, 2024

Can you better define "something is not working"? Have you looked at the signals? If so can you show what they look like?

You need to wait for the SPI transaction to complete by polling the BSY flag before raising CS.

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