This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to pause SPIM DMA transmission for a short time after n bytes?

I have to talk to a SPI device, which gets an address and then needs some time to handle the address. Afterwards the transfer can continue.

Is this scenario possible to pause the transmission e.g. after one byte and then continue with DMA transfers?

Otherwise I tried to uninitialize the spi, init it again without an event handler to use blocking mode to send the address, then unitialize again, and init with an event handler to have the rest of the transmission in DMA mode.

In this scenarion, the event_handler fires immediately after initialization. It seems some flags or events are still set.

How can I clear the flags and is this a good approach for my problem?

Parents Reply Children
No Data
Related