<?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>External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42532/external-target-nrf51422-with-ble-problems</link><description>Hello everyone, 
 I know that there are many similiar questions on the DevZone but i am not able to get it work and i dont uderstand it yet. 
 For example: https://devzone.nordicsemi.com/f/nordic-q-a/24922/ble-example-not-working-on-external-target 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Feb 2019 09:48:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42532/external-target-nrf51422-with-ble-problems" /><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/169677?ContentTypeID=1</link><pubDate>Wed, 06 Feb 2019 09:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55f44794-1ef2-44fd-963c-5bca86757937</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi. Sorry for the late response. It doesn&amp;#39;t seem that you have turned off optimizations while debugging. You should redo it with optimizations turned off. &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;Check this post for more info regarding optimizations&lt;/a&gt;: You can also try to change the IRAM1 configuration to:&lt;/p&gt;
&lt;p&gt;START:0x20002080&lt;/p&gt;
&lt;p&gt;SIZE:&amp;nbsp;0x5F80&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/168299?ContentTypeID=1</link><pubDate>Mon, 28 Jan 2019 15:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98ee7620-5321-43a7-93be-5d51a4ef85f2</guid><dc:creator>ShadowAdu</dc:creator><description>&lt;p&gt;I hope I have read your instructions correctly. &lt;br /&gt;app_ram_base(&lt;span&gt;0x0001CB44&amp;nbsp;)&lt;/span&gt; and err_code(0x0001CB46). (screen)&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7610.1.PNG" /&gt;&lt;/p&gt;
&lt;p&gt;In memory view (decimal):&lt;br /&gt;0x0001CB44 = 001&lt;br /&gt;&lt;span&gt;0x0001CB46 = 000&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/167565?ContentTypeID=1</link><pubDate>Thu, 24 Jan 2019 09:09:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89c83aed-a488-47e5-9b2a-b1186912ba2e</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;The softdevice is enabled by the function call sd_ble_enable() in the softdevice_enable() call that is done in ble_stack_init(). One of the parameters that is passed to sd_ble_enable() is a pointer to the address that sets the amount of memory the ble stack needs. Could you run the program in debug mode and see what value &amp;amp;app_ram_base is pointing to? Also, could you print the err_code that is returned from sd_ ble_enable()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/167194?ContentTypeID=1</link><pubDate>Tue, 22 Jan 2019 18:37:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f86c8454-ed39-4647-a245-d037c195f7f1</guid><dc:creator>ShadowAdu</dc:creator><description>&lt;p&gt;Okey Jared,&lt;/p&gt;
&lt;p&gt;I launched ble_app_blinky and SoftDevice S130 from the SDK11 packages.&lt;br /&gt;I used &amp;quot;board_custom&amp;quot; with following LFCLKSRC:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define NRF_CLOCK_LFCLKSRC      {.source       = NRF_CLOCK_LF_SRC_XTAL,            \
							    .rc_ctiv       = 0,                                \
							    .rc_temp_ctiv  = 0,                                \
							    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I chose the NRF51422_XXAB board in Keil, I set ROM1 (screen under the first post) and XTAL to 32 Mhz (For lower values, it does not turn on BLE).&lt;/p&gt;
&lt;p&gt;After uploading the program, in nrfConnect i found the board as &amp;quot;n/a&amp;quot;, and after clicking &amp;quot;Connect&amp;quot;, it immediately breaks the connection.&lt;/p&gt;
&lt;p&gt;Is there a problem with clock settings ?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/50882550_5F00_2506492712698323_5F00_8881070157045170176_5F00_n.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/166760?ContentTypeID=1</link><pubDate>Mon, 21 Jan 2019 09:54:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:429d02a3-888d-41a8-90df-f22a372b0482</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;When I mentioned the remapping the code, I meant remapping code that is already built for the nRF51. I suggest that you start with the ble_app_blinky project for the nRF51 then remap the pins so that it fits your board. &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/sdk_for_custom_boards?28#custom_board_support"&gt;Regarding custom board.&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;It&amp;#39;s OK to share the MISO and MOSI pins with slaves as long as they have separate CS pins.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;The pins for the radio is not configurable and is automatic assigned once the appropriate chip is chosen.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/166449?ContentTypeID=1</link><pubDate>Fri, 18 Jan 2019 11:49:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71ea65c2-436e-4ab7-8e0d-efee7b4dbd69</guid><dc:creator>ShadowAdu</dc:creator><description>&lt;p&gt;This is the same code for another pca.&lt;/p&gt;
&lt;p&gt;This should work, provided I have a good pin mapping.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/166368?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 21:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19e928f-d103-49e7-97e1-5448c492d8f3</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Code built for an nRF52 will not work on an nRF51,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/166358?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 18:40:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c1d130-ec4f-4bcd-bd26-b76d7e85b75a</guid><dc:creator>ShadowAdu</dc:creator><description>&lt;p&gt;Hi Jared, &lt;br /&gt;Thanks for the quick response. I will try to explain everything accurately&lt;/p&gt;
&lt;p&gt;&amp;bull; I first used the s130 version and then s110. None of them worked&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;bull;&amp;nbsp;&lt;span&gt;ble_app_blinky don&amp;#39;t work too, but I see that the problem is probably with the board file mapping&lt;/span&gt;.&amp;nbsp;Could you help me with this? I have edited the pca10028.h file, changed the LED&amp;#39;s pins, commented on the buttons and the &amp;quot;serialization APPLICATION board&amp;quot; and &amp;quot;serialization CONNECTIVITY board&amp;quot; and &amp;quot;Arduino board mappings&amp;quot;.&lt;br /&gt;&lt;br /&gt; Additionally, under &amp;quot;Low frequency clock source to be used by the SoftDevice&amp;quot; I have defined S130. &lt;br /&gt;I have a problem with this fragment (see figure 1). I have 2 sensors that communicate using the SPI protocol (&lt;span&gt;see figure 2&lt;/span&gt;). What should this pin layout look like in this case?&amp;nbsp;And where is the place to define the antenna pins?&amp;nbsp;&lt;br /&gt;&lt;a href="https://pastebin.com/YeimxH38"&gt;https://pastebin.com/YeimxH38&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&amp;bull;&amp;nbsp;Exactly. At the beginning I programmed my nrf52 DK, uploading S132 and ble_app_template. On the phone, I launched nrf Connect and there I could connect to the processor (it was called Nordic_Template).&lt;br /&gt;Then I used nrf52 DK as a programmer (see &lt;a href="https://devzone.nordicsemi.com/attachment/e417459405c7675236d8842c0015b72f"&gt;here&lt;/a&gt;) and uploaded to my custom board first S130 + program, and then when it did not work, S110 + program. In both cases in nrf Connect I could not find my board.&lt;span&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1207.pca10028.PNG" /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1321.SPI.PNG" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fig.1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Fig.2&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: External target NRF51422 with BLE problems</title><link>https://devzone.nordicsemi.com/thread/166289?ContentTypeID=1</link><pubDate>Thu, 17 Jan 2019 14:43:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc87e137-6441-4e8e-b191-d899a32faa1c</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Which version of the Softdevice are you using?&lt;/li&gt;
&lt;li&gt;Does it advertise if you upload the ble_app_blinky example from the SDK? (Note you have to remap the board file so that it corresponds to your board)[quote userid="76487" url="~/f/nordic-q-a/42532/external-target-nrf51422-with-ble-problems"]I would like to add that as a programmer I use nrf52 DK which contains the processor NRF52832 on which after uploading s132 and the above program, the connection was established without difficulty.[/quote]&amp;nbsp;&lt;/li&gt;
&lt;li&gt;I&amp;#39;m not sure i understand you correctly. Does this mean that you have programmed the application to an nRF52 and it worked?&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>