<?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>Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20</link><description>Hi all, 
 I have a custom board with LED on PIN 11 of nRF52832, and I am using SWD P20 configuration to program my board through nrf52 DK PCA10040. Apparently, nRFgo Studio find my custom board, so I want to blink the LED on my board using the blinky</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Apr 2020 11:38:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20" /><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/246237?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 11:38:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:279e93df-712c-4889-b8ad-57a4e43e92bc</guid><dc:creator>Alanarf</dc:creator><description>&lt;p&gt;Hi Simonr,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;so, the problem was that my LED was&amp;nbsp;inverted polarity.&lt;br /&gt;&lt;br /&gt;But what is important about this ticket and the answers you gave me;&lt;br /&gt;&lt;br /&gt;1. When using DK board (i am using pca10040) for SWD, the DK board will always be defined as the board&amp;nbsp;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/245696"]pca10040.h is likely chosen because you&amp;#39;re using the chip on the DK&amp;nbsp;which checks the BOARD_PCA10040) define in boards.h and uses the pca10040.h header file instead of your custom_board.h.[/quote]
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;So any changes, if needed, should be done in the pca10040.h.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;2. The connection pinout&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;This is the connection that i used, powering my board externally:&lt;br /&gt;&lt;br /&gt;&lt;img alt=" " height="216" src="https://devzone.nordicsemi.com/resized-image/__size/550x532/__key/communityserver-discussions-components-files/4/pastedimage1587641909941v1.png" width="224" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;3. My custom design considered external LF clock oscillators, so i didn&amp;#39;t need to m&lt;span&gt;odify the sdk_config.h&lt;br /&gt;&lt;br /&gt;Thats it, thanks a lot Simonr!&lt;br /&gt;&lt;br /&gt;Alanarf&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/246217?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 10:56:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7745a3b9-26ac-4da2-89ff-e8771d1b9f4a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please try powering the board using the VDD from the DK when you program it. It will provide 3.0V, not 5V, so you should be good in that regard. I think the interface MCU needs to detect the supply voltage of the board in order to program and debug the chip on the external board.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re still struggling, please upload the full schematics and layout of your board so I can take a look to see if everything looks right HW-wise.&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: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/246169?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 08:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946f379d-6dbe-4353-9ebf-e1ba636927c6</guid><dc:creator>Alanarf</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/246161"]\nRF5_SDK_XXXX\examples\peripheral\blinky[/quote]
&lt;p&gt;Yes, this is the path of the project that i am running. I didn&amp;#39;t make any other changes in the file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/246161?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 07:36:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba656ae5-34cc-4c44-8cdd-5f27725f9fd2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Please confirm that your project is based on the example&amp;nbsp;&lt;strong&gt;\nRF5_SDK_XXXX\examples\peripheral\blinky.&amp;nbsp;&lt;/strong&gt;If so, your device should toggle all the defined LEDs on your device.&amp;nbsp;Have you made any other changes to the example other than the LED defines?&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: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/245965?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 08:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a384fa9-57f6-4b25-9f0e-0b67ebb7f195</guid><dc:creator>Alanarf</dc:creator><description>[quote userid="89333" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/245964"]#define LED_3 11[/quote]
&lt;p&gt;Actually i changed LED_3 as you can see, but again, nothing happened =/&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/245964?ContentTypeID=1</link><pubDate>Wed, 22 Apr 2020 08:03:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2771c83-4c06-488f-92e5-bb7996365c9b</guid><dc:creator>Alanarf</dc:creator><description>&lt;p&gt;Hi Simonr,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/245696"]Have you configured the blinky example to use P0.11 instead of the LEDs configured in pca10040.h (P0.17-P0.20)?[/quote]
&lt;p&gt;I believe you are referring to these lines of pca10040.h right?&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;// LEDs definitions for PCA10040&lt;br /&gt;#define LEDS_NUMBER 4&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;#define LED_START 17&lt;br /&gt;#define LED_1 17&lt;br /&gt;#define LED_2 18&lt;br /&gt;#define LED_3 11&lt;br /&gt;#define LED_4 20&lt;br /&gt;#define LED_STOP 20&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I changed LED_1 to 11, nothing happened on my board.&amp;nbsp;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/245696"]pca10040.h is likely chosen because you&amp;#39;re using the chip on the DK[/quote]
&lt;p&gt;Yeah, it makes sense hehe. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
[quote userid="75734" url="~/f/nordic-q-a/60421/custom-board-nrf52832-blinking-led-using-nrf52-dk-p20/245696"]Can you show me how your board custom board is connected to the NRF52DK debugger?[/quote]
&lt;p&gt;I am using this configuration, except that i am not shorting VDD and VTG, I am just using VTG. Couse, i am using external supply for my board, and i read that shorting it will make the DK power my board, but with 5V, and i need 3.3V.&lt;br /&gt;&lt;br /&gt;Thanks again!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/245696?ContentTypeID=1</link><pubDate>Tue, 21 Apr 2020 06:20:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46a8018-c533-42b9-901b-e960e88b80ce</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Yes, I was aiming at the crystals, but they seem to be okay indeed. Thank you for the update.&lt;/p&gt;
&lt;p&gt;Have you configured the blinky example to use P0.11 instead of the LEDs configured in pca10040.h (P0.17-P0.20)? pca10040.h is likely chosen because you&amp;#39;re using the chip on the DK&amp;nbsp;which checks the BOARD_PCA10040) define in boards.h and uses the pca10040.h header file instead of your custom_board.h.&lt;/p&gt;
&lt;p&gt;Can you show me how your board custom board is connected to the NRF52DK debugger? Please use the picture below as reference when connecting your custom board to a DK&amp;#39;s debugger.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-2afb69acf20c4098a9cc3d81c5fad813/ext_5F00_52DK.png" /&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: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/245562?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 13:25:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6b258be-cd68-4441-a3c9-b09b4652b4bf</guid><dc:creator>Alanarf</dc:creator><description>&lt;p&gt;Hi Simonr,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;thanks for answer.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You mean the crystalls?The design includes two crystal oscillators, the 32.7 KHz and 32 MHz. I basically followed the circuit bellow.&lt;br /&gt;&lt;br /&gt;&lt;img height="197" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1587389077445v1.png" width="505" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board NRF52832 blinking LED using NRF52-DK P20</title><link>https://devzone.nordicsemi.com/thread/245541?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 12:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76eb9c69-c31c-4e55-b510-0b8679f84acc</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Alanarf&lt;/p&gt;
&lt;p&gt;Does your custom design include an external LF clock? If not, you&amp;#39;ll need to modify the sdk_config.h file to use the internal LFRC oscillator instead by changing the following defines:&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;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>