<?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>blinking a led using programmer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18870/blinking-a-led-using-programmer</link><description>Hello,
I use a SparkFun programmer to flash a nRF52832, once I flash my board (with the program below), I type in my terminal : &amp;quot;JLinkExe -device nRF52 -speed 4000 -if SWD&amp;quot;. 
 I use SDK v12.1.0, my toolchain is gcc 4_9_3. 
 #include &amp;lt;stdbool.h&amp;gt;
#include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2017 16:51:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18870/blinking-a-led-using-programmer" /><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72903?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 16:51:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:521004fa-6788-4754-92df-990baa57b3db</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;It works! I just feed my sparkFun board on 3v3, connect VDD to VTG, and SWDIO-&amp;gt;D and SWDCLK-&amp;gt;C .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72900?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 14:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7061bda7-95be-498c-b94c-de1f30a80620</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;I dont think so, because in the explanation given in the following link :
&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fdevelopment%2Fpreview_dev_kit%2Fhw_debug_out.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;
We explain that we can use one of the two connector (P19 or 20) to debug,and for the Debug out header (P19), the Interface MCU will detect the supply voltage on the mounted shield and program/debug the shield target. That&amp;#39;s mean that there are not connected, no?
otherwise, the VTG and GND Detect pins should also be connected to the external board? or other specific pins in the board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72902?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 14:24:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b41b6c0-8f56-4a52-a4f2-d9beb5498f3f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;P19 and P20 are connected to the same pins.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72901?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 14:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c26bb72-9538-4c5d-b170-5a11d5473445</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;Should I use the debug out connector (P19) instead of Shield Debug and Current measurement Connector (P20) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72898?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 13:21:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ebe7c2e-326d-46d8-82d7-ae89c68405b0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@acha: nrfjprog programs our chips using SWD and not JTAG, thus you should be able to flash an external nR52 Board with the nRF52 DK using nrfjprog.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72897?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 13:06:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:519698c0-2b46-4ef7-a0fc-cf6346353d49</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;I am used to use the nrfjprog to flash the firmware! it didn&amp;#39;t works, as I should program my board using swd instead of J-TAG, so i tried to following command :&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;JLinkExe -device nRF52 -speed auto -if SWD&lt;/li&gt;
&lt;li&gt;J-Link&amp;gt;si SWD&lt;/li&gt;
&lt;li&gt;loadfile _build/nrf52832_xxaa.hex&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;but it didn&amp;#39;t work also :&amp;#39;(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72899?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 12:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44888f73-0b21-4188-be17-5dfd1ad3a61c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am assuming that you&amp;#39;ve also conencted VDD and ground as well, this should be indicated by the power led. Have you tried using nrfjprog(part of the nRF Commandline Tools, found &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/51499/37/77565992"&gt;here&lt;/a&gt;) to flash the firmware?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72894?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 11:50:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bd46654-3dd9-4579-97d9-7f10565c9a0f</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;I connect the SWDIO and SWDCLK to respectively D and C pin in the SparkFun&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72893?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 11:32:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8261ed5c-227a-4cc0-8154-adb55b2413ea</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Which pins on the nRF52832&amp;#39;s Debug out(p19 or P20) have you connected to which pins on the SparkFun nRF52832 Breakout board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72896?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 10:03:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2548dbb8-4fb1-4058-afb0-202a3c2bfffa</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;yess, it&amp;#39;that&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72895?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 10:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce3d672d-9676-45cd-8bc2-5898efecd6b5</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, just checking that I understood this correctly: You are trying to program the SparkFun nRF52832 Breakout board using the nRF52 DK (PCA10040) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72891?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 09:54:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceaa9bb6-9155-4fd3-a32b-4f64103636c8</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;I use a custom nRF52832 board, and I use the pca10040 debugger of this board to program the µcontroller in the Sparkfun, there a useful link:
&lt;a href="https://learn.sparkfun.com/tutorials/nrf52832-breakout-board-hookup-guide?_ga=1.67619921.1106431012.1481636862"&gt;learn.sparkfun.com/.../nrf52832-breakout-board-hookup-guide&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72892?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 09:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9641171b-582f-4b56-b956-d68228c61023</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Can you provide a link to the programmer or any documentation on it? Are you working with a custom nRf52832 board, a nRF52 Module or our nRF52 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72890?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 08:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67d9fe0e-b573-448b-8d3a-eab3d4f07564</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;it&amp;#39;s a SoC that combines an ARM Cortex-M4F microprocessor, it provides access to all of the chip’s I/O pins. I use the blinky example of the sdk, and I set the led pin to the pin 7 (which corresponds to the LED in the sparkFun board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72889?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 23:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8da44a4e-aa49-44da-a1ac-7671dd6591f5</guid><dc:creator>Daniel Wang</dc:creator><description>&lt;p&gt;What is a &amp;quot;SparkFun programmer&amp;quot;?&lt;/p&gt;
&lt;p&gt;What example in the SDK is this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: blinking a led using programmer</title><link>https://devzone.nordicsemi.com/thread/72888?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 16:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16f96301-f89f-4ca3-8089-4722f20bdf6b</guid><dc:creator>acha</dc:creator><description>&lt;p&gt;An important point, I add theises definition in the makefile :
CFLAGS += -DENABLE_DEBUG_LOG_SUPPORT&lt;/p&gt;
&lt;p&gt;CFLAGS += -DNRF_LOG_USES_RTT=1&lt;/p&gt;
&lt;p&gt;CFLAGS += -DENABLE_SWO&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>