<?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>Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19183/test-program-not-working-in-custom-board</link><description>Hi Nordic Forum! 
 I&amp;#39;ve been trying to run a test program (pin toggle) on a custom nRF52832 board. 
 First, I tried the same program on the HDK to toggle pin P0.17 (LED1) and verified that it worked. 
 But then, when I tried on my custom board (but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Jan 2017 07:52:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19183/test-program-not-working-in-custom-board" /><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74292?ContentTypeID=1</link><pubDate>Mon, 30 Jan 2017 07:52:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42b7e10-b7e7-42bf-822b-39d18aac6893</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;That is what matters. Hopefully you will have less issues from now on :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74291?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 15:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d80f850d-5675-4835-9713-4fb6a5c948c4</guid><dc:creator>Rodrigo Lorenzo Leal</dc:creator><description>&lt;p&gt;Yeah, I think that too. Another possibility might be the changes I did in the folder structure (I deleted unused files, examples etc and just kept the components and our application). Usually, I check the makefile very carefully, but I must have missed a flag or something. The good thing is we got everything running even with our folder structure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74290?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 14:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa44b403-0e93-4c03-971b-95088af304e2</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;That is a very sound strategy. I am just surprised that the code you attached would not run without an external LF clock. Since it only uses GPIO, RTT and nrf_delay_ms I would expect it to run fine even without a 32k clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74289?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 13:52:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca8c1099-6683-4945-8e51-78dbfa151c10</guid><dc:creator>Rodrigo Lorenzo Leal</dc:creator><description>&lt;p&gt;Torbjørn! Tha&amp;#39;s why is a test program. I wanted to start with something small and that I could verify right away. Since our custom board has a lot of IC and components, If I tried to load our main app right away, debugging that would have been a nightmare. Fortunately, we already manage to advance quite fast on the testing and even have Bluetooth functionalities going!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74288?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 13:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be308bb2-2e2c-4d48-9148-1006536ffd17</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rodrigo. It is good to hear you found the issue, but I am a bit surprised that the LF clock setting had an effect on your test program, since it only toggles a pin. I assume you were also running some more complicated examples?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74287?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 19:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:959c3981-5ccc-48d0-b83f-b90a8e2be1f4</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Thats interesting.&lt;/p&gt;
&lt;p&gt;BTW. I had other bizarre issues, when some one gave me 32.000 Khz crystals to fit on their board, but the value is supposed to be 32.768khz
I cant exactly remember what happened, but I remember the code appeared to run, but did not run correctly ;-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74286?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 10:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2bbdb9-f7c7-40e5-9a0d-7787011ef95b</guid><dc:creator>Rodrigo Lorenzo Leal</dc:creator><description>&lt;p&gt;Solved the problem.&lt;/p&gt;
&lt;p&gt;In the end, the problem was that I didn&amp;#39;t have a 32KHz crystal on my custom board. After I changed the source of the Low-Frequency Clock by writing the register, it worked.&lt;/p&gt;
&lt;p&gt;Afterward, I just added the correspondent definition of the clock source in my custom board header file and deleted the Low-Frequency Clock initialization.&lt;/p&gt;
&lt;p&gt;As a general comment, If you&amp;#39;re going to drop the 32KHz crystal, don&amp;#39;t forget to add the following line in the &lt;code&gt;custom_board.h&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,              \
                                 .rc_ctiv       = 16,                               \
                                 .rc_temp_ctiv  = 2,                                \
                                 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The rc_ctiv and rc_temp_ctiv parameter where configured acording to &lt;a href="https://devzone.nordicsemi.com/question/88582/change-clock-source-nrf52832-app-beacon-example/"&gt;this&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74285?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 06:42:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f41043e5-86c1-4349-8683-994819a67dbd</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Is that the entirety of your test program, or are you actually using something like the blinky example?&lt;/p&gt;
&lt;p&gt;Have you tried other pins, or is it only pin 10 that works?&lt;/p&gt;
&lt;p&gt;I suspect you have a hardware fault(s)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Test program not working in Custom Board</title><link>https://devzone.nordicsemi.com/thread/74284?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 10:40:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c774e1b5-f6ec-4780-8565-e24275822b51</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Rodrigo&lt;/p&gt;
&lt;p&gt;Can you debug the code on your custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>