DMA callbacks vs. Thread_Entry | Cypress Semiconductor
DMA callbacks vs. Thread_Entry
after having a closer look at the firmware examples, I question myself why there are different approaches regarding DMA communication.
I noticed that there are examples that do all the work in Thread_Entry, while others work within callbacks.
My application is an asynchronous device, reading data from an OUT endpoint, processing it on the ARM and writing it to an IN endpoint eventually, where the host fetches it.
To me, the callback approach looks cleaner, however I can't get it to work for the IN endpoint. The registered DMA callback is simply not called when I try to read on the EP from the host. The Control Center returns Error 997.
Is it a misunderstanding on my side that a read request on the IN endpoint should generate a callback request on the FX3 (of course only if such a callback is registered and dmaCfg.prodSckId = CY_U3P_CPU_SOCKET_PROD)?
Thanks in advance,