User Profile
RHenr
Joined 8 years ago
User Widgets
Contributions
Re: Unable to receive OUT packet on USB in device mode
Thanks, sorry, DCTL.sgoutnak is 0 and not 1. And I also have GINTSTS.goutnakeff = 0. The sequence you describe is what I do. I have tried setting DCTL.cgoutnak = 1 just in case but this does not change anything. The register values just after preparing the transfer are as follows : gotgctl 0xd00c0 gintsts 0x4000020 : PTxFEmp, NPTxFEmp gdfifocfg 0x1f802000 dctl 0, dcfg 0x8100001 dsts 0x18702 doepctl0 0x80008000 doepint0 0 doeptsiz0 0x8000084Views0likes0CommentsUnable to receive OUT packet on USB in device mode
Hello, I am trying to use USB on Cyclone V soc with tinyUSB. I am able to receive SETUP transaction and send device descriptor, but then I cannot receive and acknowledge the next OUT transaction. I see that DOEPINT0.nakintrpt goes to 1, confirming that the device responds NAK to the OUT transaction, but I don't understand why. Here are the settings that are relevant to me : GAHBCFG.dmaen = 0 DCTL.sgoutnak = 1 GRXFSIZ.rxfdep = 0x50 DOEPMSK.xfercomplmsk = 1 GINTMSK.rxflvlmsk = 1 Written before waiting for OUT packet: DOEPCTL0.epena = 1 DOEPCTL0.cnak = 1 DOEPTSIZ0.xfersize = 0 DOEPTSIZ0.pktcnt = 1 I am lacking ideas of where to search or what could cause this behaviour. Is there anything to take care ? Best regards, Romain178Views0likes2Comments