I am writing a USB device driver for USB0 FS on LPC55S69-EVK.
My problem is that, after receiving an initial SETUP token, I cannot clear the USB0.DEVCMDSTAT.SETUP bit (by writing a 1 to it). The SETUP bit remains set.
So far, in the manual and SDK sample code, I could not find any prerequisite to clearing the bit, is there anything I missed?
Incidentally, USB0.INTSTAT.DEV_INT and USB0.INTSTAT.EP0OUT are both also set, and I can also not clear those (by writing 1 to them).