This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC1788 problem with USB host

Hello.
My CPU is LPC1788.
I have code like this:

void TestFunc(void)
{
  if(finit ("U0:") == 0)
  {
     while(1)
     {
        usbh_engine_all();
        if(usbh_msc_status(0, 0))
        {
           .
           .
           .
        }

        if(Exit)
        break;
     }
     funinit("U0:")
  }
}

First calling of TestFunc() works OK. But when I call it second time, it hangs on finit function. Documentation allows calling finit after funinit.
What I'm doing wrong?

t.

Parents Reply Children
No data