This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EKI-LM4F232 USB Controller

Hello,

Can someone please tell me the register setup (or process) in order to receive data on the USB controller (Device mode). I'm using the EKI-LM4F232 development board.

I'm able to get past the setup stage, I'm also able to transmit data, but not to receive.

Help is greatly appreciated.

Janos

  • Hi Janos,

         See, the usb_dev_bulk example program. Partial description below.

         "This example provides a generic USB device offering simple bulk data transfer to and from the host."

    -kel

  • Hi Kel,

    I've tried that program but still I can't get my receive to work. I'm developing a USB Device driver for Micrium's uC/USB-Device stack. What I would like to know is a basic setup for the registers in order to be able to receive, I seem to be NAKing a lot because the device is not ready to receive yet. I'm not sure of what I'm missing.

    Thanks,

    Janos

  • I'm past through this issue now, but got stuck in a new one.

    Is there something that needs to be done when the FIFO for endpoint 0 gets filled (64 bytes)? I'm able to do transfers on this endpoint of up to 63 bytes, but if I transfer 64 the device will receive them but then no more transfers are possible, it's like the FIFO is all filled and nothing more gets received, not even the setup packet for the next transaction.

    Thanks,

    Janos

  • Might your post be even more compelling if you'd be good enough to describe your actions in over-coming your initial issue?  I'd assist now - but USB not my area.  (although a very similar post landed - another ARM site - past month or so.  While not an exact "fix" - may suggest methods which will speed your solution...)