<?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>debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88611/debugging-while-using-external-supply-on-nrf52840-dk</link><description>Hi Nordic, 
 I want to use an Arduino USB host shield with NRF52840-DK. Since the VDD on DK is 2.5v and MAX3421 on the shield works with 3 to 3.6 volts, I have to use an external supply to power both boards. 
 Everything seems to work fine. However, when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Jun 2022 14:33:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88611/debugging-while-using-external-supply-on-nrf52840-dk" /><item><title>RE: debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/374774?ContentTypeID=1</link><pubDate>Wed, 29 Jun 2022 14:33:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfd1507e-8984-4249-ad87-44db4bf4f82e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi Hossein,&lt;/p&gt;
&lt;p&gt;I found a solution which might work for you. You can use the REG0 on the nRF52840 to output 3.3V. There is a voltage follower on the DK VDD that follows the nRF52 VDD when using high voltage mode. So by setting &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52833/uicr.html?cp=4_1_0_3_4_0_7#register.REGOUT0"&gt;REGOUT0&lt;/a&gt; to 3.3V, the VDD on the DK will also be 3.3V, and you can still use J2 for debugging.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Write 5 to the REGOUT0 register
&lt;ul&gt;
&lt;li&gt;nrfjprog --memwr 0x10001304 --val 5&lt;/li&gt;
&lt;li&gt;power cycle&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Plug in a USB cable to J3. (using two cables, both for J2 and J3)&lt;/li&gt;
&lt;li&gt;Set nRF power source switch to USB&lt;/li&gt;
&lt;li&gt;Check that the VDD voltage is now 3.3V&lt;/li&gt;
&lt;li&gt;Leave the other switches in their default position
&lt;ul&gt;
&lt;li&gt;SW10 to OFF&lt;/li&gt;
&lt;li&gt;SW6 to default&lt;/li&gt;
&lt;li&gt;Do not supply power to the external supply header&lt;/li&gt;
&lt;li&gt;Make sure that SB40 and SB41 are not cut, or put a header on P22 and P23&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So what happens is that the nRF52 is powered from J3 at VDDH using the nRF power source switch. Then it outputs 3.3V to nRF_VDD. The VDD on the DK follows the voltage on nRF_VDD, so that the IO voltage is the same as on the nRF52 chip. The debugger is still powered from J2.&lt;/p&gt;
&lt;p&gt;Also maybe check that your software is not overwriting REGOUT0. Remember that in order to change the value on REGOUT0. UICR will have to be erased first, since it&amp;#39;s part of the flash (nrfjprog --eraseuicr).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/373209?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 11:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e37d581e-affa-4b67-9927-833a9182250d</guid><dc:creator>hossein_m</dc:creator><description>&lt;p&gt;Hi Swathy,&lt;/p&gt;
&lt;p&gt;Sorry for the late response.&lt;br /&gt;- A photo of my setup:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/20220615_5F00_182941.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;- I use the J2 USB port to debug my project and connect the external power source to P21.&lt;/p&gt;
&lt;p&gt;- To&amp;nbsp;test whether&amp;nbsp;the board&amp;nbsp;works with an external supply, I wrote a simple code to toggle one of the pins on the board ( one that has no connection with any peripherals on the board). This code worked fine when SW10 was off but didn&amp;#39;t work when it was on.&lt;/p&gt;
&lt;p&gt;If there are any other switches or options related to this problem, please let me know to check them too so we can reach a solution.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Bests,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Hossein&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/372595?ContentTypeID=1</link><pubDate>Wed, 15 Jun 2022 13:27:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde73dee-ff9c-4a46-830f-7c6bd9a75b99</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Hossein,&lt;/p&gt;
&lt;p&gt;The device should not stop working when SW10 is ON.. Could you tell me how you made the connections ? Did you connect the external power supply to P21 or P22.? Take a look at the set up mentioned here:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/direct_supply.html?cp=4_0_4_7_2_4"&gt;https://infocenter.nordicsemi.com/topic/ug_nrf52840_dk/UG/dk/direct_supply.html?cp=4_0_4_7_2_4&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, which USB port did you use to connect the USB (J2 or J3).? It would be better if you could share a photo of your set up..&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/372162?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 13:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff50060-d0f2-49a9-8f44-4dc31a5caba9</guid><dc:creator>hossein_m</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;The SW9 is on VDD. I mentioned in my first message that &lt;span&gt;I didn&amp;#39;t change any switch/jumper on the DK, and everything is on default mode.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Based on&amp;nbsp;the DK&amp;#39;s user guide I guess it should be solved using SW10, but I don&amp;#39;t know why NRF stops working when SW10 is ON.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Bests,&lt;/p&gt;
&lt;p&gt;Hossein&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/372096?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2022 10:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d12f70-4e56-408e-809d-d258c5f5a541</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Hussein,&lt;/p&gt;
&lt;p&gt;In that case, you will see a&amp;nbsp; switch for nRF power source on the DK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-components-multipleuploadfilemanager/f5542cbd_2D00_57cd_2D00_4c4f_2D00_9385_2D00_50d9f56f1df6-107732-complete/pastedimage1654850124423v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;There are 3 options.. Li-Po, Vdd and theUSB.. Could you make sure that it is not set to USB?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52-DK</title><link>https://devzone.nordicsemi.com/thread/371701?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 13:54:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74b147de-ee40-455e-8ec2-db475f4edac2</guid><dc:creator>hossein_m</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I am using the &lt;span&gt;NRF52840-DK&amp;nbsp;( pca10056). I will change the title; sorry for the confusion.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am using the MAX3421e USB host shield, although I&amp;#39;ve modified it to work in only 3.3v. The pins are based on Arduino Uno, and the shield worked fine with the Arduino board.&lt;br /&gt;&lt;br /&gt;&lt;a href="https://5.imimg.com/data5/XK/RR/MY-1833510/usb-host-shield-for-arduino.pdf"&gt;https://5.imimg.com/data5/XK/RR/MY-1833510/usb-host-shield-for-arduino.pdf&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://github.com/felis/USB_Host_Shield_2.0"&gt;https://github.com/felis/USB_Host_Shield_2.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Also, I tried to use the SW10 to only use the external supply for the NRF, but even though there is a voltage on NRF52840&amp;#39;s supply pins, it doesn&amp;#39;t turn on. Do I have to make any more changes to the board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Bests,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hossein&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: debugging while using external supply on NRF52-DK</title><link>https://devzone.nordicsemi.com/thread/371617?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 10:58:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92970448-c6b8-4f8b-9de3-624499b3eb32</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Hossein,&lt;/p&gt;
&lt;p&gt;Are you using the&amp;nbsp; nrf52 DK or the nrf52840DK.? The tag you added confused me a bit.. Also, could you provide the link to the Arduino shield that you are using just to double check the pins..?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>