<?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>nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53394/nrf51822-controller-connection-through-uart-swd</link><description>I need to program the nrf51 controller directly from PC. How to connect nRF51822 controller from PC through UART/SWD pins to program.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Dec 2020 14:24:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53394/nrf51822-controller-connection-through-uart-swd" /><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/284356?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 14:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0dbad3e-3960-4819-bc46-08f1d9e35a8a</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Thanks for the help. But the problem turned out to be the difficulty of working with a production device that I only have half the information for. In order to flash the device, I have to turn it on which runs the current program immediately. When I flash, the flashing happens somewhere in the middle of that program running. Who knows where? This caused the saved data (in particular bonding info) to get corrupted. Restarts basically did not get pass reloading bonding. I removed all the code related to bonding (so I connect unencrypted) and it worked. So I did not erase the Softdevice and I did not fry my chip with my clunky soldering of the SWD interface.&lt;/p&gt;
&lt;p&gt;I have learned to give a lot more respect to those hardware engineers that can solder micro wires to micro pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/284336?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 13:27:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c01db93-3bc5-4db9-8980-866d2c295452</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Erasing sectors means that it will erase only those flash sectors (4kB flash pages) that overlap with the firmware you are trying to program. Typically this will keep other parts of the flash intact (e.g. bonding information and softdevice will not be replaced or erased if you program the application).&lt;/p&gt;
&lt;p&gt;In Keil you typically have a drop down box where you can either program the precompiled BLE stack (e.g. flash_s132_nRF52_x.x.x._softdevice)&amp;nbsp;or&amp;nbsp;the application (e.g. nrf528322_xxaa), this is chosen like this:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/2806.pastedimage1607606608770v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If the softdevice&amp;nbsp;stack is chosen you should flash the softdevice, do not press compile! If you press compile the softdevice hex file found in \components\softdevice will be erased, and you can no longer flash it. In that case you need to unzip those folders from the nRF5 SDK zip file again.&lt;/p&gt;
&lt;p&gt;If the application is chosen, then you can compile and program the application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Typically you program the softdevice stack first, and then you only need to work with the application firmware.&lt;/p&gt;
&lt;p&gt;To erase entire flash (softdevice and application) you can click:&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7776.pastedimage1607607064473v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283877?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 15:28:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22104f24-bee1-415e-94d5-28e1d5688fe1</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Andreas,&lt;/p&gt;
&lt;p&gt;After some searching I found that Keil is set to erase sectors. But I do not know what &amp;#39;sectors&amp;#39;. All I have is an address range.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I cannot copy-paste so its hard to get this hand-typed copy right. nRF51xxx with Range is 0000...0H&amp;nbsp; to 001FF...FFH. When I click on &amp;#39;add&amp;#39; I see there are three options including SoftDevice. When I add that it has the same range as the already included nRF51xxx option. Would suggest that SoftDevice was erased as well. But I am not sure if that is not relative to something else.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If SoftDevice is gone can I use Keil to re-install is or DO I need to use the nRF tool?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Well, using the nrfTool is says that I don&amp;#39;t need to load SoftDevice. So nrf51822 is probably damaged. But since I have no idea what I am doing and working with a chip in a production device without the tools one really needs for this job, I have no idea.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283713?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 08:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66f603a5-35ae-4011-b9a7-5ea9e18ddea7</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sounds like you might have reprogrammed the device, possibly erased the flash where the Application and Softdevice was stored. You should look into the settings in Keil, if it does a full erase, or partial and if so which sectors. In this case you need to reprogram the Softdevice also.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283525?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 11:59:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91be64d4-087a-403f-ba0e-9626d0e0e6b9</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;The error was solved by googling which led me to a post in this forum. Found that I needed to set the debug mode to &amp;#39;SW&amp;#39; instead of Jlink or whatever it was. Doing that solved the &amp;#39;cortex&amp;#39; error.&lt;/p&gt;
&lt;p&gt;I still have a slew of other issues as there is a separate sensor MCU running independently of the BLE. I have managed to mess it up enough that the BLE is no longer advertising. Probably did something in the starting the debugger that the BLE stack got corrupted.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283519?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 11:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeeb89e8-4fc8-4b3a-8c7e-bc0db7d4db95</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The header &amp;#39;layout&amp;#39; follows the Arduino shield standards, allowing 3rd party PCBs to be popped on top and connect to the nRF52 and/or IF MCU through the GPIO headers. A target nRF51 on such a shield would be able to be debugged through the P20 header, but it can of course be used with fully external targets as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error you get could be due to the wiring (e.g. swapped SWDIO and SWDCLK) or due to missing power supply of the target. Could you try &lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download"&gt;nrfjprog &lt;/a&gt;instead? Install if you do not have it (write &amp;#39;nrjprog -v&amp;#39; in a CMD window) and run&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog -f NRF51 --readregs&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you get any error? Hopefully that should be more indicative.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283182?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:47:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d2ff76-a372-4821-ad8c-6b96db11063a</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;It turns out I can get power from the batteries on the production device. So I have used the VTG pin on P20 to connect to the VDD &amp;#39;pin&amp;#39; on the production device. The DK user&amp;#39;s guide mentions that P20 is for &amp;#39;shield targets&amp;#39; but I am not sure what that means.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I also have limited equipment and tools to make the solder connections on the target board. They look okay but its hard to tell.&lt;/p&gt;
&lt;p&gt;So now I run the Kiel IDE with the project and plug the USB cable into the DK. Yellow led comes on. I start the Start/Stop debug session on the Keil IDE and get the error &amp;#39;no Cortex-M device found ...&amp;#39;. Now this project was provided by the developer of the production device so I figure I am using the DK wrong or have not done a solid job of soldering.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/283160?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 15:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b15c318e-1ba6-4801-a098-501a271a22ab</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;OK, sounds like it should be fine. If the target is powered it should be fine to power it using the DK, if 1.8V it will be out of range for the debugger on the DK anyway.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282831?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 09:47:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e1bbda-de3a-40fd-92e8-3e48d4cd4d89</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;Thanks for that information. I do not know if the target is self powered when trying to flash new code. I am asking the company, but I do not believe it is. Pressing the power button triggers all kinds of sensor activity that I have no control over and has nothing to do with the BT module. So I am pretty sure I have to power the target from the DK. I assumed that I would have to wire the VDD of the DK to VDD of the target to do that. If self powered, I would use VTG of the DK to VDD of the target. But I guess it is slightly more complicated than that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282796?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 07:47:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e90cd9bc-d1d3-4806-a1b0-f9a9b85e6a2b</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;VTG is the input of the debugger, that is to be connected to VDD on the debug target. If the target is supplied and powered by its own supply/battery/etc. then this will work, if not then you can connect VDD (on the DK) to VTG (and by extension VDD on the target) to power the target. See as an example the wiring in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51235/programming-external-board-from-nrf51-dk-nrf52-dk-stopped-working"&gt;this case&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Note that you might want to cut SB9 to not power the nRF51 on the DK itself. This can be reverted by shorting SB9, or plugging a jumper across P22:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1348.sb9.PNG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282729?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 15:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:433df42d-b8bf-4438-b5ae-c4626531b10c</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;My DK has both VDD and VTG pins. Which is the correct one to use?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282601?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 08:38:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21512a78-1125-47e5-a4c5-0f163d4d7dbf</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="brianreinhold"]So what you are saying is that I could take a USB cable connected from the PC and wire it directly to the SWD pins on my production device (I know where to solder the connections)[/quote]
&lt;p&gt;No, the USB port on the PC will not understand the SWD protocol. You can connect the SWD pins on your debugger to SWD through an USB cable, obviously this will not work as a &amp;#39;normal&amp;#39; USB port (e.g. by a compunter) and for that it might not be an ideal solution as the debug USB port might be confused with a normal USB port, care must be taken for this to handle the 5V bus voltage in case it is incorrectly inserted into a normal USB port.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="brianreinhold"]Alternatively, I could connect the USB cable to the DK and wire the P20 and P19 pins to my production device. The latter sounds easier and safer as I assume that all voltage and power supply issues are worked out.[/quote]
&lt;p&gt;Yes, this would work. The interface MCU on the DK acts as a translator, and will translate the communication from the PC (over USB) into SWD which is needed by the nRF51822 target. This needs SWDCLK and SWDIO for communication, and VDD (called VTG by the debugger) and GND for reference voltage. Note that the VTG connection on the debugger does not supply the target, you must make sure to do this externally.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282429?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 12:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f717ca4-da87-46f4-9ba8-c83f0259f17e</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I DO have the DK. My production target also has its own power (it is a real market device) but the device will not be on when flashing. So what you are saying is that I could take a USB cable connected from the PC and wire it directly to the SWD pins on my production device (I know where to solder the connections). Will there be a power problem? I&amp;#39;ve seen in this forum somewhere that the voltage needs of the nrf51822 are not that supplied by USB.&lt;/p&gt;
&lt;p&gt;Alternatively, I could connect the USB cable to the DK and wire the P20 and P19 pins to my production device. The latter sounds easier and safer as I assume that all voltage and power supply issues are worked out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282407?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 10:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b639cd8c-3305-4cfc-9bbc-f1454669105b</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure I understand correctly, but the DK has a debugger IC on it (the one with the sticker) that translates the information received from Keil over the USB cable into SWD. Hypothetically you could direct SWD over a USB cable from the debugger to your target nRF51, the nRF51 just needs an electrical connection to the&amp;nbsp;&lt;span&gt;SWD, SWDIO, VDD and GND pins&lt;/span&gt; on the debugger.&lt;/p&gt;
&lt;p&gt;You can use P20 or P19 on the DK to program or debug an external target (instead of the nRF51 on the DK itself), see section 6.10 in the &lt;a href="https://infocenter.nordicsemi.com/topic/struct_nrf51/struct/nrf51_development.html?cp=5_1"&gt;DK User Guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/282353?ContentTypeID=1</link><pubDate>Sun, 29 Nov 2020 14:48:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60e32777-4900-431b-b0b6-a5ad1b664110</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I need to do something similar to the above. I have a finished pulse oximeter using the nRF51822 on a YJ-14001-nrf51822 daughter board. The device is to test a new BLE protocol specification and I have been provided with the original software in a Keil project. I need to replace the existing BLE protocol with the new protocol specification.&lt;/p&gt;
&lt;p&gt;According to the company, I can flash the software using SWD. They have given me the input soldering points on the daughter board to make the SWD connection on the Pulse OX. Now what I need to do is interface that to the PC. I have no idea how to do this.&lt;/p&gt;
&lt;p&gt;From this discussion it appears that I cannot repurpose a USB cable and flash the device from the Keil IDE even though it supports SWD via USB when using a DK..&lt;/p&gt;
&lt;p&gt;How do I do this directly to the nrf51822 SWD contact points? Do I need additional hardware to go from USB to SWD?&lt;/p&gt;
&lt;p&gt;Thanks. If this is not answered in a few days (old post) I will make an additional post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216512?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 08:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9286fee8-b8a2-4832-822b-a5f9766c16de</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The programmer needs SWD, SWDIO, VDD and GND, no matter which one you use.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also there are some de-facto standard connectors for this that might be interesting, which all incorporate the needed signals. See as an example &lt;a href="https://www.segger.com/products/debug-probes/j-link/accessories/adapters/6-pin-needle-adapter/"&gt;J-link needle adapter&lt;/a&gt; and &lt;a href="https://www.segger.com/products/debug-probes/j-link/accessories/adapters/9-pin-cortex-m-adapter/"&gt;9-pin cortex-M connector&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216479?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2019 05:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98c9e2e9-c67f-425b-bb24-cec91545ca7c</guid><dc:creator>Namitha</dc:creator><description>&lt;p&gt;Ok thank you..one more thing i need to know which all pins i need to take out from the nRF51 controller in order to program with these programmers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216300?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 08:21:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cde270b3-937a-4c82-b2dd-62a0388d017c</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For production programming you need a production programmer, the DK debugger license only covers use during development. The connection towards your board will be the same though, it will just be a different programmer instead of a DK.&lt;/p&gt;
&lt;p&gt;You might find &lt;a href="https://infocenter.nordicsemi.com/topic/ug_getting_started/UG/gs/prod_test_prog.html?cp=1_0_6"&gt;this getting started guide&lt;/a&gt; useful.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216266?ContentTypeID=1</link><pubDate>Wed, 23 Oct 2019 05:26:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:092c8662-a396-414e-8de9-98829b14919e</guid><dc:creator>Namitha</dc:creator><description>&lt;p&gt;But for mass production we need to program nRF51 on our PCB individually. I want to know how to connect, by using DK board can we program the controller which is in our PCB..kindly help us with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216133?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 11:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9af4f8d1-60b9-4169-8eb4-8341330ea196</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am not quite sure I understand what you mean, but if you have a nRF51-DK you have all that you need to program/debug your nRF51822 board, and the nRF51822 IC that sits on the nRF51822. Some slight modifications might be needed on the DK in order to have the interface MCU communicate with the external nRF51822 over UART.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The principle for both programming a nRF51822, and communicating with a nRF51822 over UART is the same, regardless if it is your custom PCB or a nRF51-DK. See &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/programming-and-debugging-custom-nrf5x-devices"&gt;this blog post&lt;/a&gt; for details. The difference is that on the DK, UART and SWD(for programming/debug) lines are hard-wired to the nRF51822 that is on the DK itself. If that NRF51822 sits in parallel with your custom board nRF51822 then the communication will be disrupted.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/216042?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 04:54:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:745a98ea-30ab-46e1-8d9a-7a911aad829c</guid><dc:creator>Namitha</dc:creator><description>&lt;p&gt;The thing is if i have the nRF51 DK board can i program the nRF51822 controller which is on the DK board directly from PC using the nRF51822 UART pins and USB to UART converter.&lt;/p&gt;
&lt;p&gt;The interface MCU will be bypassed by cutting the soldering edge.&lt;/p&gt;
&lt;p&gt;Is it possible to do kindly reply or i need any other software or debugger to program the controller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/215919?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 12:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2afa8c2-fc75-4c90-907d-e3483719e5c3</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a nRF51822 on the DK itself which you will need to disconnect from the UART lines in order to use UART with your external nRF51822 board. Or you can just remove the power supply for the on-DK nRF51822, there are solder bridges for easy cutting of all relevant lines.&lt;/p&gt;
&lt;p&gt;For programming of the external board SWD will be used, this can be done in parallel with the nRF51822 on the DK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/215877?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 10:50:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78235fed-2e55-47b5-9f10-9ca4c7b5bece</guid><dc:creator>Namitha</dc:creator><description>&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;In nRF51 DK board will it support UART connection for programming even if we bypass the connection of MCU and try direct programming form pc to nRF controller.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/215847?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 08:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da2222ea-088e-419c-a9e1-1fe2c4e4cb03</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You need to translate the SWD interface and the UART interface to something the PC understands. For SWD a J-Link debugger is typically used, other SWD debuggers can be used but you might experience various incompatibility with our other tools. For UART any UART to USB translator can be used.&lt;/p&gt;
&lt;p&gt;nRF51-DK comes with an on-board J-Link debugger and UART translator combo MCU for easy interfacing. Furthermore it is 100% supported with all our tools. If you do not have any debugger or UART translator I recommend getting your hands on a nRF51-DK, or even nRF52-DK (compatible with external nRF51 boards).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The setup is the same though, you need to connect SWD as explained below to the debugger, no matter which debugger is used, and UART RXD-&amp;gt;TXD and TXD-&amp;gt;RXD no matter which translator is used.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 controller connection through UART/SWD.</title><link>https://devzone.nordicsemi.com/thread/215817?ContentTypeID=1</link><pubDate>Mon, 21 Oct 2019 06:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1484cef-bc65-4538-bc74-6cfb2986ddba</guid><dc:creator>Namitha</dc:creator><description>&lt;p&gt;OK thank you...but i am not using the DK board..i have the nrf controller on my pcb..i have taken out the swdio and swdclk pins to the connector along with the uart pins..kindly help me with how to connect these pins from the PC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>