<?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>Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97303/unable-to-connect-to-custom-nrf53840-board</link><description>Hi, 
 We have encountered an issue while trying to flash our custom nRF53840 board using the debug out (P19) on another nRF53840 DK as a programmer. Previously, we were able to flash a nRF52840 custom board using the debug out (P19) on an external nRF52840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Mar 2023 09:53:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97303/unable-to-connect-to-custom-nrf53840-board" /><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/414574?ContentTypeID=1</link><pubDate>Fri, 10 Mar 2023 09:53:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:071b6f9f-a836-4968-81f1-4e27c0bc1220</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;It was my pleasure to assist you in resolving this issue.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/414455?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 16:07:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:427f12b4-018e-455a-b0bb-9c87a8804653</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/414446?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 15:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbbec3f7-d743-40ed-ae20-5b8b7041ae46</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I would expect the voltage level to be closer to 3 V. It is good that you don&amp;#39;t have any problem when using nRF52840-DK as programmer.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/414333?ContentTypeID=1</link><pubDate>Thu, 09 Mar 2023 10:00:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:facc33b9-b211-431c-ba0b-02bafc3f8b2d</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Sure, we&amp;#39;re getting 2.25V on our nRF52840 custom board using nRF52840DK as a programmer.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/414090?ContentTypeID=1</link><pubDate>Wed, 08 Mar 2023 11:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e7f713-db25-4275-967f-ec02b9cbc30d</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you measure the voltage level&amp;nbsp; on TP35 of your nRF52840 custom board?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413933?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 16:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4602918-3118-4f17-8f28-1698779ab8dc</guid><dc:creator>hugzy123</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/97303/unable-to-connect-to-custom-nrf53840-board/413914"]RF52840-DK also requires 3 V for programming. Did you use high voltage mode or normal voltage mode on your nRF52840 custom board?[/quote]
&lt;p&gt;We power our nRF52840 custom board via VDDH too. See below screenshot of our custom board schematic.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/photo_5F00_2023_2D00_03_2D00_07_5F00_16_2D00_29_2D00_06.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413914?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 15:28:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3448f476-421c-4112-bacc-cb56db7b571c</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="hugzy123"]So the reason we can flash our nRF52840 custom board is because the&amp;nbsp;nRF52840 DK &amp;quot;allows&amp;quot; programming at 1.8V due to SWD0_SEL&amp;nbsp;being hardwired to VDD (with SB47 shorted)?[/quote]
&lt;p&gt;nRF52840-DK also requires 3 V for programming. Did you use high voltage mode or normal voltage mode on your nRF52840 custom board?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413902?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 15:07:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baf5900d-9def-4095-851b-1e5be1c2ba9e</guid><dc:creator>hugzy123</dc:creator><description>[quote userid="111786" url="~/f/nordic-q-a/97303/unable-to-connect-to-custom-nrf53840-board/413840"]Yes, this is correct.[/quote]
&lt;p&gt;Thanks we&amp;#39;ll try flashing using VDD only.&lt;/p&gt;
[quote userid="111786" url="~/f/nordic-q-a/97303/unable-to-connect-to-custom-nrf53840-board/413840"]This behavior exists on both nRF5340 and nRF52840. You can read more in registers section of the documentation. Relevant registers are&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=4_0_0_4_3_2_0_1#register.VREGHVOUT"&gt;VREGHVOUT&lt;/a&gt;&amp;nbsp;for nRF5340 and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=5_0_0_3_4_0_7#register.REGOUT0"&gt;REGOUT0&lt;/a&gt;&amp;nbsp;for nRF52840.[/quote]
&lt;p&gt;I see. So the reason we can flash our nRF52840 custom board is because the&amp;nbsp;nRF52840 DK &amp;quot;allows&amp;quot; programming at 1.8V due to SWD0_SEL&amp;nbsp;being hardwired to VDD (with SB47 shorted)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413840?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 13:23:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db715d88-0a2f-4397-9e0c-33831a150f35</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="hugzy123"]I see. So with the nRF53840 DK as a programmer, power will need to be supplied via VDD for connection/flashing our custom board? Then VDDH can be used for normal operation after flashing the firmware.&lt;br /&gt;[/quote]
&lt;p&gt;Yes, this is correct.&lt;/p&gt;
[quote user="hugzy123"]Also, when powering our nRF52840 custom board via VDDH&amp;nbsp;is VDD regulated to 1.8V too or is this behaviour only seen on the nRF53840 modules?[/quote]
&lt;p&gt;This behavior exists on both nRF5340 and nRF52840. You can read more in registers section of the documentation. Relevant registers are&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=4_0_0_4_3_2_0_1#register.VREGHVOUT"&gt;VREGHVOUT&lt;/a&gt;&amp;nbsp;for nRF5340 and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/uicr.html?cp=5_0_0_3_4_0_7#register.REGOUT0"&gt;REGOUT0&lt;/a&gt;&amp;nbsp;for nRF52840.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413825?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 13:03:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0dc87ee5-bef5-40d6-a7a8-010162aff568</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Hi Dejan,&lt;/p&gt;
&lt;p&gt;Thanks for&amp;nbsp;looking into this.&lt;br /&gt;&lt;br /&gt;I see. So with the nRF53840 DK as a programmer, power will need to be supplied via VDD for connection/flashing our custom board? Then VDDH can be used for normal operation after flashing the firmware.&lt;br /&gt;&lt;br /&gt;Also, when powering our nRF52840 custom board via VDDH&amp;nbsp;is VDD regulated to 1.8V too or is this behaviour only seen on the nRF53840 modules?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413767?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 10:23:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a4deaf1-9ef1-46e4-8bc8-d47f66ea0eec</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]However when we try the same setup replacing the external DK with our custom nRF53840 board using a programming jig for&amp;nbsp;SWDIO, SWDCLK, VCC and GND it did not flash our nRF53840 custom board.&amp;nbsp;It did not seem to flash the internal nRF53840 on the DK either, but it gave a flashing successful message. We&amp;#39;ve also tried reading the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf5340%2Fchapters%2Fficr%2Fdoc%2Fficr.html"&gt;INFO.DEVICEID[n]&amp;nbsp;&lt;/a&gt;&amp;nbsp;using nrfjprog,&amp;nbsp;but we only got a unique device ID when a DK was the external board. When the custom board was connected, we got the same value as when no board was connected.[/quote]
&lt;p&gt;There is a different behavior between nRF52840-DK and nRF5340-DK boards related to debug out and the detection of the external board. Detection method has changed with a change of interface MCU chip.&lt;br /&gt;&lt;br /&gt;As you can see from the picture below, in the older version of nRF52840 (and nRF5340), when SB47 is shorted, then SWD0 SEL line is put to VDD which selects an external board. In this case, even if you disconnect external board, selection pin stays high which indicates the existence of the external board.&lt;br /&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/pastedimage1678178296203v1.png" alt=" " /&gt;&lt;br /&gt;Situation has changed with newer version of the nRF5340-DK (from v2.0.0) as shown in the picture below. SWD0 SEL is now located at the pin 3 and it is not directly connected to VDD. The selection of external board is done when SWD0 SEL pin is put to the ground. Therefore, if you want to have the same behavior as with older versions of the boards described above, you would need to ground SWD0 SEL pin by changing your custom board, or by modifying the cable by connecting SWD0 SEL to the ground.&lt;br /&gt;&lt;br /&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/pastedimage1678179119952v2.png" alt=" " /&gt;&lt;br /&gt;However, if you put pin 3 to the ground and use external power supply of 3.6 V, there would still be a problem because GPIO pins should be supplied with 3 V. GPIO high voltage is tied to VDD. If there is 3.6 V which is supplied to VDDH, this voltage is regulated down to 1.8 V on the VDD pin (as shown for the register VREGHVOUT in the UICR on the application core), but you would need 3 V on VDD to be able to program the device using DK.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There are two options. One option would be to supply 3 V directly to VDD (not VDDH) through TP5 when programming, but this would need to be done every time when you program. Second option would be to use external debugger which can program using GPIO voltage of 1.8 V.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]The pins we use for programming are SWDIO, SWDCLK, VDDH and GND.&amp;nbsp; RESET is not connected, is this needed?[/quote]
&lt;p&gt;It is not needed to have RESET connected. You would need to connect SWDIO, SWDCLK, VDD and GND.&lt;/p&gt;
[quote user=""]Can you see any issues in our HW design?[/quote]
&lt;p&gt;HW design looks fine.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413765?ContentTypeID=1</link><pubDate>Tue, 07 Mar 2023 10:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd6f0c77-14a7-4a26-a0b6-579607dd5532</guid><dc:creator>hugzy123</dc:creator><description>&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable To Connect To Custom nRF53840 Board</title><link>https://devzone.nordicsemi.com/thread/413659?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 22:57:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350c0830-e1dc-4cb9-9b68-de4ffe3a3531</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;I have started looking into your case. I will get back to you tomorrow.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>