<?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>Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72690/programming-custom-nrf52832-board-using-swd-interface</link><description>Hello NRF, 
 I have a custom board with NRF52832, and exposed the SWDIO, SWDCLK, GND, VDD, RESET pins for programming the board through the NRF52-DK board. 
 
 I started with a sample peripheral_uart, connected the NRF52-DK board to my PC, and managed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Mar 2021 09:54:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72690/programming-custom-nrf52832-board-using-swd-interface" /><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301620?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 09:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c03e8a63-a60c-4808-b0a6-1e5bb84f739b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any details as to what this bootloader is, but I assume &lt;a href="https://www.sparkfun.com/"&gt;Sparkfun&lt;/a&gt;&amp;nbsp;provides it&amp;nbsp;in the case that this should happen. You can check out&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/20802/swd-jtag-to-a-sparkfun-nrf52832"&gt; this thread on DevZone&lt;/a&gt; for an explanation on how to use a Sparkfun board with a DK. I would also assume that recovering the Sparkfun board would be similar to how you recover the nRF52840 Dongle, which is described in the &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/nrf52840-dongle-programming-tutorial"&gt;Dongle Programming tutorial.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As for the board file configuration and GPIO configuration, please check out &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-3-ncs-v1-4-0#h11sk6ks1jkp1figkuq6gxw1m1rctdp0"&gt;&amp;quot;The board files&amp;quot; section in part 3 of our NCS tutorial&lt;/a&gt; which explains the complete setup of custom board files in NCS, as it is not&amp;nbsp;&lt;strong&gt;&lt;/strong&gt;only the board file deciding GPIO mapping etc. in NCS. It is better explained in that guide than I can do in a single DevZone comment.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301561?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 00:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e16ca1b-f908-493d-9cf6-a9a117bf20fe</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The reply option is not available for the message you sent me yesterday, so I am replying to a previous message.&lt;/p&gt;
&lt;p&gt;I opened the zephyr -&amp;gt; boards -&amp;gt; arm -&amp;gt; nrf52dk_nrf52832, where I have the following files.&lt;/p&gt;
&lt;p&gt;1. board.cmake&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Kconfig&lt;/p&gt;
&lt;p&gt;3. Kconfig (board file)&lt;/p&gt;
&lt;p&gt;4. Kconfig.deconfig&lt;/p&gt;
&lt;p&gt;5. nrf52dk_nrf52832.dts&lt;/p&gt;
&lt;p&gt;6. nrf52dk_nrf52832.yaml&lt;/p&gt;
&lt;p&gt;7. nrf52dk_nrf52832_deconfig&lt;/p&gt;
&lt;p&gt;I checked what was inside the Kconfig, and I DID NOT find any GPIO assignments inside that file, instead I find the GPIO assignments on nrf52dk_nrf52832.dts file.&lt;/p&gt;
&lt;p&gt;Please suggest, it is this file that works as the GPIO mapping file?&lt;/p&gt;
&lt;p&gt;So, what if I change this file to correspond to the Sparkfun board or my custom board, and start a new project based on the nrf52dk_nrf52832 , which will now pull the GPIO configuration based on the Sparkfun board, would that work?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301460?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 13:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d874be8c-46ec-4745-8f90-626ba9cce9fc</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;Is there a way to unbrick the boards through NRFDK SWD interface to a custom board?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301405?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 11:41:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21630fb1-fa18-405c-9d94-73dde1558330</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Dinesh&lt;/p&gt;
&lt;p&gt;The board files in the nRFConnect SDK can be found as described &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/app_boards.html"&gt;here&lt;/a&gt;, in /zephyr/boards/arm/ folder. It also describes how you can define your own board., and &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/application/index.html#custom-board-definition"&gt;this guide&lt;/a&gt; helps you add your own custom board to the Zephyr build system.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301313?ContentTypeID=1</link><pubDate>Tue, 23 Mar 2021 03:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9112b7f0-a173-4e59-b380-55bac190bea2</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;Could you kindly advise me the location of the NRF52DK board file for the peripheral_uart project? I am using the nRF Connect -&amp;gt; Tool Chain -&amp;gt; IDE and then I open File -&amp;gt; nRF Connect SDK project and choose the project and the hardware (board), in this case NRF52DK_NRF52832.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The sparkfun breakout board&amp;#39;s connections are as follows.&lt;/p&gt;
&lt;p&gt;1. Reset pin &amp;lt;pin 21&amp;gt;&lt;/p&gt;
&lt;p&gt;2. LED pin &amp;lt;pin 07&amp;gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. Push button &amp;lt;pin 06&amp;gt;&lt;/p&gt;
&lt;p&gt;4. RX pin &amp;lt;pin 26&amp;gt;&lt;/p&gt;
&lt;p&gt;5 Tx pin &amp;lt;pin 27&amp;gt;&lt;/p&gt;
&lt;p&gt;All the other pins are left open and are not connected anywhere. What would be the minimum set of requirement on the NRF52DK board, when it is running the peripheral_uart sample project? I believe, it requires Reset pin, LED, push button, serial port (perhaps with RTS/CTS??). My understanding is, that, if I change these pin assignments, then the peripheral_uart app should work on the Sparkfun breakout board as well. So kindly advise me, where I can find this definition file for the nRF Connect SDK projects.&lt;/p&gt;
&lt;p&gt;Also, I think when I was trying these options, I BRICKED a couple of my sparkfun boards (where they are not responding through the nrfjtool when I try to erase them and reflash the bootloader) through the NRF52DK SWD port.&lt;/p&gt;
&lt;p&gt;Is there a utility / method to get these bricked boards working now?&lt;/p&gt;
&lt;p&gt;Your help is much appreciated.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/301123?ContentTypeID=1</link><pubDate>Mon, 22 Mar 2021 08:05:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72fae480-82a0-4343-b67b-23c33f1c5db7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not suggesting to edit the NRF52DK board file, but rather make your own custom board file for your custom board, where the TX/RX pins used in HW are set in this board file. Yes, they are &amp;quot;just&amp;quot; pin assignments, but in our example projects we call these defines so that they are used by the project as well. See the RX_PIN_NUMBER and TX_PIN_NUMBER calls in the UART peripheral example for instance, which are called from the board file used in your project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300982?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 14:46:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f40dd2e2-7f76-4ae6-bf57-830250cb7c85</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;Are you suggesting, if I go and remap the RX/TX pins from P0.06/P0.08 to P0.27/P0.26, then perhaps I should be able to program the cards, both Sparkfun dev kit and the custom board, through the NRF52_DK board selection?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Also, these are just pin assignments, and if nothing is connected to the rx/tx pins, how would the program know if these pin assignments are wrong? After all, its telling the processor to use 6 and 8, instead of 26 and 27. Is there some form of a communication between the nrf chip and the debug chip, through SWD interface, that will emulate JTAG and make sure the serial port is working (so you would need the correct pin mapping)?&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300839?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 08:46:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb39d78a-76ae-4c0a-aa9f-51a5c6af4536</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
[quote user="DineshB"]So, on the Sparkfun dev kit, nothing is connected, all GPIOs are open, only the rx/tx are connected to a serial2uart cable. Their definitions are, P0.27 -&amp;gt; TX and P0.26 -&amp;gt; RX[/quote]
&lt;p&gt;&amp;nbsp;I think this is the reason, the Nordic Development Kits use P0.06 and P0.08 for UART by default for instance. It is generally important to select the correct board files for the board you&amp;#39;re using. If your custom board is a replica of the Sparkfun board then selecting the sparkfun board should be fine, but we generally suggest creating board files for custom boards.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300791?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 21:30:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cfe7b61-ec7a-40f3-93a2-3cdf9c4720fc</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;I managed to program the Sparkfun dev board and get it up and running.&lt;/p&gt;
&lt;p&gt;What I had to do was to select nrf52_sparkfun as the Board Name, instead of nrf52dk_nrf52832.&lt;/p&gt;
&lt;p&gt;nRF Connect -&amp;gt; Tool Chain Manager -&amp;gt;&amp;nbsp; nRF Connect SDK v1.4.2 -&amp;gt; Open IDE&lt;/p&gt;
&lt;p&gt;Then I use,&lt;/p&gt;
&lt;p&gt;File -&amp;gt; Open nRF Connect SDK project -&amp;gt; fade led (projects) , nrf52_Sparkfun (Board Name) , 1.4.2 (nRF Connect SDK Release), 1.4.2 (nRF connect Tool chain version)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So, on the Sparkfun dev kit, nothing is connected, all GPIOs are open, only the rx/tx are connected to a serial2uart cable. Their definitions are, P0.27 -&amp;gt; TX and P0.26 -&amp;gt; RX&lt;/p&gt;
&lt;p&gt;I still don&amp;#39;t understand, if the circuit is not connected to any other peripheral, what would be the different settings in terms of selecting the Board (nrf52DK vs nrf52_sparkfun) that makes the board work only when you select the nrf52_sparkfun?&lt;/p&gt;
&lt;p&gt;Next, I will try to program my custom board with nrf52_sparkfun as the Board selected. But this still puzzles me, what would prevent the app (uart_peripheral) work only with the nrf52_sparkfun Board selection, instead of the nrf52DK.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300610?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 09:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8511b78a-ea33-48aa-89f2-eb96b8165afc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. In the nRF5 SDK you can edit the following defines in the project&amp;#39;s sdk_config.h header file to these values to enable the RC oscillator and calibration.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// &amp;lt;h&amp;gt; Clock - SoftDevice clock configuration

//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;2. In NCS, you need to go to the &amp;quot;Configure NCS project&amp;quot; option in the Project dropdown folder in SES and change the Clock control source to use the RC oscillator instead of external crystal.&lt;/p&gt;
&lt;p&gt;Please note that if you&amp;#39;ve followed the sparkfun schematics you should have this external crystal however, so this should not be the issue it seems. Are you able to run the example project on the nRF52 DK?&lt;/p&gt;
&lt;p&gt;Are you using the toolchain manager in nRFConnect to set up the nRFConnect SDK, or do you refer to the getting started guide? I would recommend using the toolchain manager for new users, as this is easier to get started with. When opening the SES IDE, how do you open the project. Please note that you should &amp;quot;Open nRFConnect SDK project&amp;quot; in &amp;quot;File&amp;quot; when opening new projects in NCS.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616059076609v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300526?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 20:40:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c63ab9-c4fe-4034-9a1b-f16526a1e27e</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I connected the NRF52-DK to the Sparkfun dev kit, as per your instructions. (My custom design is based on the Sparkfun dev kit design).&amp;nbsp; You can check their schematics here,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://cdn.sparkfun.com/assets/learn_tutorials/5/4/9/sparkfun-nrf52832-breakout-schematic-v10.pdf"&gt;sparkfun-nrf52832-breakout.sch&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Based on their schematics (which is what my current designs are based on), both the 32MHz and 32KHz crystals are connected.&lt;/p&gt;
&lt;p&gt;I am using nRF Connect v3.6.1 and nRF Connect SDK v1.4.2 and peripheral_uart project.&lt;/p&gt;
&lt;p&gt;Even with this Sparkfun development board, I am unable to get the peripheral_uart project up and running, whereas I have verified that the Sparkfun board is working through a different (Arduino) toolchain/IDE.&lt;/p&gt;
&lt;p&gt;Please advise, what could be the problem here. I see that both the crystals are connected. When I BUILD &amp;amp; RUN from the SES, there is no error thrown, and looks like the flashing goes smoothly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe, if I can get this dev kit to work with the SES + peripheral_uart project, then I can simply get my custom hardware to work with the SES + perhipheral_uart as well.&lt;/p&gt;
&lt;p&gt;Looking forward to hearing back from you soon.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300451?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 14:21:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd06083a-bc82-460d-a7d1-7df7976ec53d</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;At the moment, I am using NRF5 SDK with NRF52832 device, and the uart_peripheral sample app.&lt;/p&gt;
&lt;p&gt;Please kindly advise, where I can find the LF clock definition in ,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;1. NRF5 SDK&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. NRFConnect SDK (NCS)&lt;/p&gt;
&lt;p&gt;I shall try both the options, and make sure the hardware works fine. Then I can make a choice, based on the features available on each option.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300431?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 13:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a444b76-bcef-45f1-a463-dc677102a661</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again Dinesh&lt;/p&gt;
&lt;p&gt;You&amp;#39;re using nRFConnect SDK (NCS), correct? And thus&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_uart/README.html"&gt;&amp;nbsp;this example project&lt;/a&gt;? If you only have the one external crystal&amp;nbsp;that explains why it doesn&amp;#39;t start advertising. In order to run most of our examples, you also need to use a LF clock (32.768 kHz), and our example projects are configured to use the optional external (XTAL) 32.768kHz crystal. You can configure the example to use the internal RC oscillator instead though, which should make the application run as intended.&lt;/p&gt;
&lt;p&gt;1. NCS does not use the SoftDevices, so it seems like you&amp;#39;re mixing up the nRF5 SDK and the nRFConnect SDK.&lt;/p&gt;
&lt;p&gt;2. I believe it should be sufficient to configure the project to use the RC oscillator instead of the XTAL. Please&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/choice_309.html#choice-309"&gt; see the documentation here for details.&lt;/a&gt; The calibration should be enabled by default when the RC oscillator is enabled it seems.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/300229?ContentTypeID=1</link><pubDate>Tue, 16 Mar 2021 19:35:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86d458e-a589-4ba7-ac37-0242bfc74d21</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simnor,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I still struggle with this setup.&lt;/p&gt;
&lt;p&gt;I connected the power/GND/SWDIO/SWDCLK as per your suggestion.&lt;/p&gt;
&lt;p&gt;When I run the BUILD &amp;amp; RUN from the SES, I can see that the programming is going on.&lt;/p&gt;
&lt;p&gt;However, I programmed the unit with the peripheral_uart example, and I expect it to start advertising, and I should be able to use another device with NRF Toolbox -&amp;gt; UART and Connect / Scan , where I expect the unit to pop up with Nordic_UART_Service. But I don&amp;#39;t get that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On the&amp;nbsp; other hand, if I program the NRF52832 on the DK board (by removing my device from the DK), I am able to observe its advertisements with &amp;quot;Nordic_UART_Service&amp;quot;.&lt;/p&gt;
&lt;p&gt;I believe for this &amp;quot;periphral_uart&amp;quot; example, no external pins are required for it to kick start the advertisement?&lt;/p&gt;
&lt;p&gt;And, my NRF custom design has an external Crystal connected to it, which is 32MHz.&lt;/p&gt;
&lt;p&gt;Side note, I am able to program a custom bootloader + app on this board, through a set of utilities provided by Sparkfun, The app works fine on this custom board. However, the issue is, the sample app template they have provided and their libs wouldn&amp;#39;t let me to obtain the low power levels (around 10 - 20uA) , compared to what your setup seems to support. So I want to use the same hardware and start the development with the SES. Why I am saying this, is to let you know that the custom hardware board is functional (with someone elses tools).&lt;/p&gt;
&lt;p&gt;So I need your support to get my custom hardware to run the uart_peripheral and start advertising, where I can pick up the advertisements from another Android device running NRF Toolbox -&amp;gt; UART.&lt;/p&gt;
&lt;p&gt;A few questions.&lt;/p&gt;
&lt;p&gt;1. Since I already flashed a softdevice + bootloader to these boards (for the sprakfun), does your debugger ignores them and flash the sample app directly and able to run it? (uart_peripheral app from the SES, build and run option)&lt;/p&gt;
&lt;p&gt;2. What other additional requirements are needed to run the perhipheral_uart sample, through SES -&amp;gt; BUILD &amp;amp; RUN option?&lt;/p&gt;
&lt;p&gt;Looking forward to hearing back from you soon.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/299655?ContentTypeID=1</link><pubDate>Mon, 15 Mar 2021 07:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eee79542-684a-4aef-9892-faa26bb28054</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Please let me know whether this is successful or not. If you&amp;#39;re still struggling, please let me know some details about your custom board. If you&amp;#39;re, for example, lacking an external LF crystal that is likely the issue.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/299546?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 17:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bb45df9-0f27-49f3-8c67-e9aedbbad44b</guid><dc:creator>DineshB</dc:creator><description>&lt;p&gt;Hello Simonr,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I was powering my custom board separately (through a coin cell battery) and wired the VTG on DK to VDD on my board side (3.3v).&lt;/p&gt;
&lt;p&gt;I will remove the power source (coin cell) on my board, and power the custom board through the NRF52-DK as per your suggestion.&lt;/p&gt;
&lt;p&gt;I believe, once I execute the BUILD&amp;nbsp; &amp;amp; RUN, the same behavior is expected on my custom board, similar to how it runs on the DK, as on DK, I see the NRF advertisements, but when I programmed my board, I couldn&amp;#39;t see the advertisements.&lt;/p&gt;
&lt;p&gt;I will test this and get back to you.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;Dinesh.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Programming custom NRF52832 board using SWD interface</title><link>https://devzone.nordicsemi.com/thread/299492?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 13:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d3fe780-9876-4b24-9a10-5e6160061bf4</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Dinesh&lt;/p&gt;
&lt;p&gt;Please confirm that your custom device is connected as shown in this picture when trying to program it. How is your custom board powered?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7444.ext_5F00_52DK.png" /&gt;&lt;/p&gt;
&lt;p&gt;1. No, you do not need a bootloader, the debugger on the DK will be able to access the Flash of the nRF52 series through the SWD interface.&lt;/p&gt;
&lt;p&gt;2. Yes, when the custom board is connected correctly to the DK, the &amp;quot;Build and Run&amp;quot; command in SES will download the application onto the custom board, as it will detect connected custom boards automatically.&lt;/p&gt;
&lt;p&gt;3. In the peripheral_uart example you can see that the RX and TX pin numbers are defined as RX_PIN_NUMBER and TX_PIN_NUMBER. These are defined in the board file (&lt;strong&gt;C:\...\nRF5_SDK_17.0.2_d674dde\components\boards\pca10040.h&lt;/strong&gt;), and when making a project for a custom board, you should create your own custom_board.h file. This is described in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/sdk_for_custom_boards.html"&gt;Infocenter here where it is explained how to use the SDK with custom boards.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>