<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36704/what-should-i-do-to-make-nrf52840-to-be-a-usb-host</link><description>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 ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Jan 2023 10:58:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36704/what-should-i-do-to-make-nrf52840-to-be-a-usb-host" /><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/405809?ContentTypeID=1</link><pubDate>Fri, 20 Jan 2023 10:58:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:349e2f02-eb81-4ee3-8a0f-1c62f6336724</guid><dc:creator>sne_333</dc:creator><description>&lt;p&gt;If we configure the NRF52840 as a host by configuring MAX3421e. How will nrf52840 receive data from another USB peripheral?? will it receive via SPI?? or we have to add some USB drivers??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/288292?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 02:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d72bd9e-14b7-4578-8517-d078e12419b2</guid><dc:creator>marcusrm</dc:creator><description>&lt;p&gt;&lt;span&gt;Has anyone found a newer chip that allows bluetooth and USB host functionality?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/244805?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 17:16:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7b9e19e-8d44-4ef5-99ed-318690204688</guid><dc:creator>ai212983</dc:creator><description>&lt;p&gt;Yeah, I&amp;#39;ve thought about it too, but hoped if nothing is connected to MAX3421E, it would be enough for oscillator. Guess I&amp;#39;m wrong.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/244220?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2020 13:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c5c85a3-1622-492c-87ec-8ab4dc56e600</guid><dc:creator>KevinL</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;As I have mentioned before, I haven&amp;#39;t worked on this project in a long time.&lt;/p&gt;
&lt;p&gt;I do however remember something along the lines of OSCOKIRQ not being set, and actually read the same thread at stackexchange. I think the problem back then was a lack of power because the nRF52840DK cannot provide enough current to the MAX3421E-EVKIT.&lt;/p&gt;
&lt;p&gt;Try looking up the power specification for you board and checking if you&amp;#39;re providing enough. If not, use an external power source.&lt;/p&gt;
&lt;p&gt;Good luck,&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/244039?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 09:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fad049b-6165-4211-8081-4b73b378eb3f</guid><dc:creator>ai212983</dc:creator><description>&lt;p&gt;Hello Kevin!&lt;/p&gt;
&lt;p&gt;I have a&amp;nbsp;nrf52840-DK and &lt;a href="https://store.arduino.cc/arduino-usb-host-shield" rel="noopener noreferrer" target="_blank"&gt;Arduino USB Host Shield&lt;/a&gt;&amp;nbsp;combo. Setting communication bits is just fine, I also can read the revision number.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve stuck over&amp;nbsp;a problem though. In code examples you&amp;#39;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.&lt;/p&gt;
&lt;p&gt;OSCOKIRQ is never set on for me. There is&amp;nbsp;&lt;a href="https://electronics.stackexchange.com/questions/372236" rel="noopener noreferrer" target="_blank"&gt;a thread&lt;/a&gt;&amp;nbsp;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&amp;nbsp;&lt;a href="https://github.com/felis/USB_Host_Shield_2.0" rel="noopener noreferrer" target="_blank"&gt;felis/USB_Host_Shield_2.0&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;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?&lt;/p&gt;
&lt;p&gt;My question is - have you&amp;nbsp;seen this problem in your project? Was waiting for OSCOKIRQ working for you? Or you&amp;#39;ve just skipped this stabilization part?&lt;/p&gt;
&lt;p&gt;Sorry for bugging you, but I am really desperate right now.&amp;nbsp; (&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/224286?ContentTypeID=1</link><pubDate>Sun, 08 Dec 2019 17:22:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12345ffe-d1c3-41ba-8b25-84880455b2fd</guid><dc:creator>KevinL</dc:creator><description>&lt;p&gt;Hello Akarsh,&lt;/p&gt;
&lt;p&gt;If you search for &amp;quot;MAX3421E code&amp;quot; or &amp;quot;MAX3421E github&amp;quot; on google you will find multiple libraries. 2 examples:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/felis/lightweight-usb-host"&gt;https://github.com/felis/lightweight-usb-host&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/greiman/UsbFat/blob/master/USB_Host_Shield_2.0/max3421e.h"&gt;https://github.com/greiman/UsbFat/blob/master/USB_Host_Shield_2.0/max3421e.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As for the SPI on the Nordic chip I will assume you&amp;#39;re using SDK 16.0.0. This is the documentation for the example code for an SPI master:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fnrfx_spim_example.html&amp;amp;cp=6_1_4_6_40"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fnrfx_spim_example.html&amp;amp;cp=6_1_4_6_40&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Kevin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/224274?ContentTypeID=1</link><pubDate>Sat, 07 Dec 2019 18:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:369353f1-57b8-4d18-b557-de34fb14ad13</guid><dc:creator>Akarsh</dc:creator><description>&lt;p&gt;Hi Kevin,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestions. It will be helpful reference if we can have a link where we can find the reference code.&lt;/p&gt;
&lt;p&gt;Akarsh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/222888?ContentTypeID=1</link><pubDate>Sat, 30 Nov 2019 10:09:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b645b6f-e437-4c97-8946-d47d7c832cdb</guid><dc:creator>KevinL</dc:creator><description>&lt;p&gt;Hi Akarsh,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been out of the project for over a year now, so don&amp;#39;t have the specifics available anymore.&lt;/p&gt;
&lt;p&gt;You indeed have to use the Nordic SPI to configure the MAX3421E. First set the SPI communication bits on the MAX. Then make sure you can read the revision number of you MAX to confirm SPI communication. After that you can set the HOST bit on the MAX. Specifics on how to program the chip can be found in the MAX3421E programming manual on the website of Maxim Integrated.&lt;/p&gt;
&lt;p&gt;Back then I wrote my own code to use the MAX3421E, but after I was finished I found some open source code on github to do exactly that. You might be able to find it.&lt;/p&gt;
&lt;p&gt;Good luck&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/222887?ContentTypeID=1</link><pubDate>Sat, 30 Nov 2019 09:38:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c979d448-33e7-421d-98a2-aa7100886b7c</guid><dc:creator>Akarsh</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/kevinl"&gt;KevinL&lt;/a&gt;,&lt;br /&gt;Can you help us understand the settings that were done for MAX3421E to be configured for USB host? Does the SPI on Nordic have to configure the MAX3421E chip ? We are using the same but facing issues in interfacing it to Nordic. Thanks for the help. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/142881?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 18:00:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0921c9e-2235-4731-af76-bef8c44a5ffd</guid><dc:creator>MeliodasD</dc:creator><description>&lt;p&gt;Thanks @&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/kevinl"&gt;KevinL&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;I am going to give a look to that one :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/142723?ContentTypeID=1</link><pubDate>Fri, 03 Aug 2018 06:38:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:317cf6ee-2f39-4b4e-94f5-28733f8df0e3</guid><dc:creator>KevinL</dc:creator><description>&lt;p&gt;I have not.&lt;/p&gt;
&lt;p&gt;I am using a MAX3421E, this does not have a programmable microcontroller though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/142703?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 21:43:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1a41834-fc92-4cbb-aa0f-cdd966dced7d</guid><dc:creator>MeliodasD</dc:creator><description>&lt;p&gt;guys do you have tried the&amp;nbsp;Vinculum-II? I also want to&amp;nbsp;connect a nRF5840 to a CDC Modem using AT commands a give it cellular functionality. at the moment no luck to make work the Vinculum II&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What should I do to make nRF52840 to be a USB host?</title><link>https://devzone.nordicsemi.com/thread/140920?ContentTypeID=1</link><pubDate>Mon, 23 Jul 2018 07:28:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d01633b7-7618-45d7-b88a-1a01c9719fb0</guid><dc:creator>KevinL</dc:creator><description>&lt;p&gt;I have found that the nRF52840 is not capable of being a USB host, it&amp;#39;s peripheral only. I&amp;#39;ve concluded that from&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20446/can-the-nrf52840-act-as-a-usb-host"&gt;this devzone post&lt;/a&gt; and&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fhardware_driver_usbd.html"&gt;this infocenter entry&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can use a microcontroller with USB host functionality and another communication protocol compatible with the nRF52840 or a USB bridge IC. I&amp;#39;m doing the same thing at the moment using an SPI to USB bridge.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>