I am developing code which requires the use of endpoint 0 for vendor specific commands. I am having difficulty transfering data back to the host. I am using modified starter ware code for the USB. I am calling the routine USBDCDSendDataEP0 to transfer the data. I receive the command from the host and the host sees my acknowledgement.
The host program doesn't see the data. It seems the transmit packet ready bit of the PERI_TXCSR is not getting set for this transfer. When looking at the spec (spruh73f) it talks about this bit but unless I wrong the definition of the register is never clearly defined.
So where can I get a clear definition of this register and any assistance on why the data packet is not be sent would be much appreciated.