I am investigating a strange issue I have and it seems it's more present when softdevice is enabled, but maybe it's just a coincidence
I have a working design in place that is using dma transfer to send data to host using IN transaction and generally I get the USB interrupts in the following sequence
- STARTED interrupt (pos=1)
- ENDEPIN2 interrupt (pos=4)
- EPDATA interrupt (pos=24)
But for no clear reason I sometimes and in rare occasion get the EPDATA interrupt too early.
When it's occuring the design is "blocked" and I cannot go further.
So I have the following sequence:
- STARTED interrupt (pos=1)
- EPDATA interrupt (pos=24) ==> This one is occuring in same interrupt as the STARTED previous interrupt type.
- ENDEPIN2 interrupt (pos=4)
I tried to ignore the early EPDATA to try to respect the 1, 4, 24 interrupts sequence but it doesnt work.
Did anyone see this strange behavior ?