<?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>problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49859/problems-of-migrating-sdk5-nrf51422-to-nrf5182</link><description>Hi. 
 I struggled to migrate ble blinky example of nrf5 (nrf51422) to nrf51822 using KEIL (SDK5 v12.3) but failed 
 Here are what I tried. 
 Firstly, I changed target device from nrf51422 to nrf51822 as below 
 
 
 And I changed parameters of ROM and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Jul 2019 08:54:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49859/problems-of-migrating-sdk5-nrf51422-to-nrf5182" /><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/199165?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 08:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:203ecff7-a5f8-4900-89ea-f475346b9ff7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Crystal is more accurate, and RC will increase current consumption. See &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/19/what-s-the-benefit-of-having-an-external-32-khz-crystal/74#74"&gt;this post&lt;/a&gt; for more details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/199104?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 04:05:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38d49c41-f523-40db-b1c8-1bd80119392b</guid><dc:creator>MnP_Junho</dc:creator><description>&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Your code works in the board. It seems there is no crystal at all.&lt;/p&gt;
&lt;p&gt;By the way, what&amp;#39;s the difference between using crystal and internal oscillator?&lt;/p&gt;
&lt;p&gt;In my guess, crystal is more accurate than internal oscillator and there is no difference. isn&amp;#39;t it?&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;J&amp;oslash;rgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/198951?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 11:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:581a4105-99da-4e4d-8aea-f92b10366284</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>[quote user="MnP_Junho"]It seems using internal RC oscillator will work whether the board has the LF crustal or not.[/quote]
&lt;p&gt;Yes, that is correct.&lt;/p&gt;
[quote user="MnP_Junho"]How can we use the RC oscillator?[/quote]
&lt;p&gt;If you have not modified the example, the clock config will be collected from the board header file. It looks like you have a custom board file (BOARD_PCA10028_beacon). Open the board header file, look for the definition of NRF_CLOCK_LFCLKSRC, and replace it with this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&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;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/198930?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 10:52:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50e6a640-8fc9-446f-854f-5bd5520b4ba4</guid><dc:creator>MnP_Junho</dc:creator><description>&lt;p&gt;Yes. Actually, it is the custom board which is not what we made.&lt;/p&gt;
&lt;p&gt;We bought the BLE beacon with nrf51822 chip and we&amp;#39;d like to reprogram it.&lt;/p&gt;
&lt;p&gt;It seems using internal RC oscillator will work whether the board has the LF crustal or not.&lt;/p&gt;
&lt;p&gt;How can we use the RC oscillator?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/198898?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 09:11:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d50202de-fa3f-42e9-a1d8-535c29776fbd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you running this on a custom board? If you are, does your board contain the 32.768 kHz LF crystal? The behavior you explain can indicate that the softdevice is waiting for the clock to start. If you do not have the LF crystal on your board, you can use the internal RC oscillator.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/198819?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 22:37:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbf4cd35-64aa-4bd9-b0e8-731cd2a06456</guid><dc:creator>MnP_Junho</dc:creator><description>&lt;p&gt;Dear &lt;span&gt;J&amp;oslash;rgen&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the reply.&lt;/p&gt;
&lt;p&gt;Other examples without ble like pheripheral blinky works fine in the hardware.&lt;/p&gt;
&lt;p&gt;However, examples including ble doesn&amp;#39;t works.&lt;/p&gt;
&lt;p&gt;I changed the RAM space as your suggestion as below.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_A1CE98CC_3.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;As this try also failed,&amp;nbsp;I tried debugging and found unsolved error.&lt;/p&gt;
&lt;p&gt;The code stops in the ble_stack_init and more precisely,&amp;nbsp;SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/0815._A1CE98CC_.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_A1CE98CC_2.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here are Options for the project&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/_A1CE98CC_4.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And here are the Defines of the code&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;DEBUG BLE_STACK_SUPPORT_REQD NRF51822 BOARD_PCA10028_beacon NRF_SD_BLE_API_VERSION=2 S130 NRF51 SOFTDEVICE_PRESENT SWI_DISABLE0&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problems of migrating SDK5 nrf51422 to nrf5182</title><link>https://devzone.nordicsemi.com/thread/198766?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 14:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9204caf1-5fdf-4650-b4d9-7ce890f71df4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It should not be necessary to do this, the nRF51822 and nRF51422 are identical except from ANT support.&lt;/p&gt;
&lt;p&gt;Have you tried &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;debugging the application&lt;/a&gt; to see if any error codes are returned? You seem to have allocated very little RAM space for the softdevice (the minimum required RAM). Unless you use very few features of the softdevice, you will most likely need more. The typical default values in the ble_peripheral examples in SDK 12.3.0 is&lt;/p&gt;
&lt;p&gt;START = 0x20001fe8,&amp;nbsp;SIZE = 0x6018. If you use xxAB package, SIZE should be reduced by 0x4000, i.e., set to 0x2018.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>