<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Steps to program nRF52840 Dongle with Mesh Serial Example</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88832/steps-to-program-nrf52840-dongle-with-mesh-serial-example</link><description>I have 
 Hardware: nRF52840 DK - 1 nRF52840 Dongle - 1 
 Software: nRF5 SDK Mesh - v5.0.0 nRF5 SDK - v17.0.2 
 I want to program Mesh Serial example on nRF52840 Dongle.When I try to cocnvert the program for PCA10059 chipset , it gives me an error as UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Sat, 11 Jun 2022 05:40:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88832/steps-to-program-nrf52840-dongle-with-mesh-serial-example" /><item><title>RE: Steps to program nRF52840 Dongle with Mesh Serial Example</title><link>https://test-devzone.nordicsemi.com/thread/371969?ContentTypeID=1</link><pubDate>Sat, 11 Jun 2022 05:40:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aef3c4c6-0255-47c4-af4c-c580624d2742</guid><dc:creator>user115760</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;I have modified my Dongle to work with External power supply by cutting SB2 and soldering SB1.As the new versions of SDK have&lt;br /&gt;REGOUT0 set for 3V for PCA10059 boards, I don&amp;#39;t have to change it manually.The below code explains that.&lt;/p&gt;
&lt;p&gt;Code location : C:\Nordic_Semi\nRF5_SDK_17.0.2_d674dde\components\boards\boards.c&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if defined(BOARD_PCA10059)
/**
 * Function for configuring UICR_REGOUT0 register
 * to set GPIO output voltage to 3.0V.
 */
static void gpio_output_voltage_setup(void)
{
    // Configure UICR_REGOUT0 register only if it is set to default value.
    if ((NRF_UICR-&amp;gt;REGOUT0 &amp;amp; UICR_REGOUT0_VOUT_Msk) ==
        (UICR_REGOUT0_VOUT_DEFAULT &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos))
    {
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}

        NRF_UICR-&amp;gt;REGOUT0 = (NRF_UICR-&amp;gt;REGOUT0 &amp;amp; ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) |
                            (UICR_REGOUT0_VOUT_3V0 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos);

        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy){}

        // System reset is needed to update UICR registers.
        NVIC_SystemReset();
    }
}
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After following the above steps also, I won&amp;#39;t be able to program my Dongle using my DK through SWD.I don&amp;#39;t know what will be the problem.&lt;/p&gt;
&lt;p&gt;My Questions:&lt;br /&gt;1)Is my board permanently gets damaged?&lt;br /&gt;2)In the definition of UART pins for PCA10059&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define RTS_PIN_NUMBER 21 // Mistakekenly defined PIN 21 instead of PIN 21&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;But, PIN 21 is not given as an GPIO pin for Dongle board.PIN 20 is the GPIO pin.I mistakenly changed the PIN 20 to PIN 21.&lt;br /&gt;Does, this crashed my Dongle?&lt;br /&gt;3)I have another Dongle which works perfectly.If I try to configure UART pins for that Dongle, which PINs I have to use &lt;br /&gt;to make the board work perfectly without any defect?&lt;/p&gt;
&lt;p&gt;Please reply as soon as possible.&lt;br /&gt;Thankyou.&lt;/p&gt;
&lt;p&gt;-Vicky&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Steps to program nRF52840 Dongle with Mesh Serial Example</title><link>https://test-devzone.nordicsemi.com/thread/371944?ContentTypeID=1</link><pubDate>Fri, 10 Jun 2022 15:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7f0b057-46d3-42dd-ba16-96dc02d1fb56</guid><dc:creator>user8164</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There are some pitfalls and caveats when working with the Dongle, in particular if programming it using a programmer such as the one on a DK. Please have a look at the &lt;a href="https://test-devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial#programming_using_external_debugger"&gt;Using an external debugger&lt;/a&gt; sections of our nRF52840 Dongle Programming Tutorial.&lt;/p&gt;
&lt;p&gt;Most importantly, VDD configuration is cruical for being able to program the Dongle using a DK. See &lt;a href="https://test-devzone.nordicsemi.com/guides/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial#recover_from_non_porgrammable_state"&gt;Recover after an accidental UICR erase&lt;/a&gt; (in the same tutorial.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>