<?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>Steps to program nRF52840 Dongle with Mesh Serial Example</title><link>https://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</generator><lastBuildDate>Thu, 01 Sep 2022 13:35:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://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://devzone.nordicsemi.com/thread/384354?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 13:35:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f843c7f-a359-4b73-aebb-1d43fc66003e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am sorry for the delay.&lt;/p&gt;
[quote user="Vicky7797"]1)Is my board permanently gets damaged?[/quote]
&lt;p&gt;It may be permanently damaged if both SB1 and SB2 are connected at the same time, and the board is powered. That is, if you solder SB1 without cutting SB2 and then power the board. I am not a hardware expert, but my understanding is you would get currents where you do not want currents and those currents will damage the hardware.&lt;/p&gt;
[quote user="Vicky7797"]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?[/quote]
&lt;p&gt;UART on the nRF52840 Dongle requires that you connect to the pins configured for UART, in order to communicate. UART does not get bridged through USB on the nRF52840 Dongle, as there is no interface MCU or other USB to UART bridge. Configuring the wrong GPIO pins as UART pins does not damage the Dongle, but the application may not work. Programming the Dongle with an application with the correct UART pin configurations should work. You should then be able to use the UART with the new pin configuration.&lt;/p&gt;
[quote user="Vicky7797"]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?[/quote]
&lt;p&gt;It depends on which pins you want to use for the UART communication / how you connect to the pads on the Dongle. If you configure the same pins in the application as you connect to and the signal is not driven outside the VSS to VDD range, then it should work. Connecting higher voltage levels than VDD to GPIO pins could potentially damage the device.&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><item><title>RE: Steps to program nRF52840 Dongle with Mesh Serial Example</title><link>https://devzone.nordicsemi.com/thread/373230?ContentTypeID=1</link><pubDate>Mon, 20 Jun 2022 12:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f61e5b0f-20f0-487f-9d33-cda8ea8dd5f6</guid><dc:creator>Vicky7797</dc:creator><description>&lt;p&gt;Anybody please reply to my question...I want to know the answer...Don&amp;#39;t ignore me...Please...&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://devzone.nordicsemi.com/thread/373113?ContentTypeID=1</link><pubDate>Sat, 18 Jun 2022 02:39:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cad2595-6fdd-42fb-a498-d6d217c453b4</guid><dc:creator>Vicky7797</dc:creator><description>&lt;p&gt;Can somebody please answer my question ...It&amp;#39;s almost 7 days , Since I asked this ...&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://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>Vicky7797</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://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>tesc</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://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://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>