This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

What should I do to make nRF52840 to be a USB host?

I am doing a Nordic project, that need to be a USB host. May I know how to make nRF52840 to be a USB host ? 

Parents Reply
  • Hello Kevin!

    I have a nrf52840-DK and Arduino USB Host Shield combo. Setting communication bits is just fine, I also can read the revision number.

    I've stuck over a problem though. In code examples you've specified there is a loop waiting for OSCOKIRQ for PLL/internal oscillator to stabilize. Same loop is in every code for MAX3421e I was able to find.

    OSCOKIRQ is never set on for me. There is a thread at Electrical Engineering StackExchange claiming it is a bug in MAX3421e. I doubt this is the case, it certainly would be noticed, at least by felis/USB_Host_Shield_2.0

    I am running nrf52840-DK connected and powered via USB, nothing is connected to the shield, I can set communication bits and read revision number. So I guess it is enough power for PLL, right?

    My question is - have you seen this problem in your project? Was waiting for OSCOKIRQ working for you? Or you've just skipped this stabilization part?

    Sorry for bugging you, but I am really desperate right now.  (

Children
Related