<?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>Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17899/running-the-ble-bootloader-example</link><description>Hello, 
 I have been trying to make the BLE bootloader example works without succes. I am getting stuck after uploading the Softdevices and the Bootloader. 
 Step by step (Version - nRF5_SDK_11.0.0_89a8197): 
 
 First I upload the proper Softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jan 2017 14:31:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17899/running-the-ble-bootloader-example" /><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69022?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 14:31:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb988c0d-e1f5-4c3a-9318-c2329a7087d9</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Don´t worry! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69024?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 13:58:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d7f616a-40ae-4930-8fee-c1d4aeca1d0f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Great! Again, I apologize for not catching this earlier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69023?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 13:28:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:323f5a59-812a-4a85-a073-d60c98d879b6</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Tested the new changes on two diferent custom nRF51822 boards and It works like a charm!!!! Thank you!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69021?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 13:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e590a4-1b6a-46a7-8c7e-d48ff27dcb93</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;I am sorry for not catching this earlier, but the nRF51822 QFAA only has 16 kB of RAM(0x4000) bytes. The bootloader example in the SDK is intended for the nRF51422 QFAC which has 32 kB of RAM. This means that you have to adjust the RAM size to the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IRAM1: Start 0x20002C00 Size 0x1380
IRAM2: Start 0x20003F80 Size 0x80   No Init: set
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Does this solve the issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69020?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 12:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2123ae6-c9ce-401c-bb96-921d8eb6c50e</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;This chip: nRF51822QFAAH00
So, in the target option I have the following settings:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IROM1: Start 0x3C000 Size 0x3C00
IRAM1: Start 0x20002C00 Size 0x5380
IRAM2: Start 0x20007F80 Size 0x80   No Init: set
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69019?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 12:12:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58097b3f-5a9c-475a-8e0f-ac43afea0562</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, so you still reach &lt;code&gt;dfu_ble_peer_data_get()&lt;/code&gt;, but it does not return? The chip you&amp;#39;re trying to run it on is a nRF51822 QFAA right? Could you post the ROM and RAM settings you&amp;#39;re using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69018?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 11:52:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9700dd53-6cfb-40cb-950d-45231afac718</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Yes, they do have. Both crystals, 32kHz and 16MHz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69017?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 11:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41412a3b-6baf-4915-a9d0-1857b6234494</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Does the custom boards have external 32kHz crystals like the nRF51 DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69016?ContentTypeID=1</link><pubDate>Mon, 16 Jan 2017 09:37:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:329e9785-e894-44a3-a8cc-d4639c3e138d</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Well, with the nRF51822 still the same problem. No matter if I upload the bootloder for SoftDevice S110 or S130, it does not advertise the NRF_Targ. I will continue testing with other custom boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69014?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 11:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f1dac87-a10f-447d-a4ae-997ea96cf298</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you still seeing the same issue as before or is there a new issue that causes the bootloader code to not function properly on the custom nRF51822 board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69015?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 11:16:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f9924d0-8dce-4da1-b7b5-17a013dc5f38</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Dear Bjørn,
In the end we have managed to make the bootloader work but in the PCA10031 (USB Dongle). Still we couldn´t make it work in the nrf51822, so technically it is not problem of the code...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69012?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 15:29:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93aa0cc-f1c7-4895-b4a7-f68cd151756b</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, in the app_error_weak.c file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69011?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 14:10:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996abb8c-a3dd-4b44-945e-095fb5eb77d8</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;You mean in the app_error_weak.c file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69008?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 11:40:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8e64be-a447-4e39-a7b4-236a29878e19</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Javier, you can just ignore the nrf_delay.h include error, it is a known issue that will not affect your code. However, I cant see why execution should stop in crc16_compute, it should return the crc value and then an error if its incorrect. Can you set a breakpoint in app_error_fault_handler and see if you end up there ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69013?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2016 08:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9fa0f88-c1ea-48b4-a923-c90375c8e978</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;I have been checking the whole code again. I always had an error while including &amp;quot;nrf_delay.h&amp;quot;, more a &amp;quot;cosmetic&amp;quot; error since it works fine. Now I also have one error in: #include &amp;quot;bootloader.h&amp;quot;&lt;/p&gt;
&lt;p&gt;The error states: error in include chain (cmsis_armcc.h): expected identifier or ´(´
So I open the header file, which it took me to another and another untill the &amp;quot;error&amp;quot; in cmsis_armcc.h.&lt;/p&gt;
&lt;p&gt;The error is in the line 48:&lt;/p&gt;
&lt;p&gt;__STATIC_INLINE uint32_t __get_CONTROL(void)&lt;/p&gt;
&lt;p&gt;error: unknown type name ´__STATIC_INLINE´
error: expected ´;´after top level declarator&lt;/p&gt;
&lt;p&gt;In the Pack Installer, the ARM::CMSIS is up-to-date.&lt;/p&gt;
&lt;p&gt;Any idea? or it is not a real error?&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69010?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2016 13:09:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a552a9a-d2b6-484d-8e83-3838603a02db</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hi!
While in debug mode, inside dfu_transport_update_start(void) it reachs to err_code = dfu_ble_peer_data_get(&amp;amp;m_ble_peer_data); Inside that function it gets stuck in:&lt;/p&gt;
&lt;p&gt;crc = crc16_compute((uint8_t *)&amp;amp;m_peer_data, sizeof(m_peer_data), NULL);&lt;/p&gt;
&lt;p&gt;There is where the debugger gets blocked...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69007?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 15:25:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0b9c923-0e8c-487d-8523-b9b0c1acda2f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Javier, that is expected, as the bootloader will enter a infinite for loop when it enters &lt;code&gt;wait_for_events()&lt;/code&gt; in &lt;code&gt;bootloader_dfu_start()&lt;/code&gt;. Can you check if you reach &lt;code&gt;advertising_start()&lt;/code&gt; in &lt;code&gt;dfu_transport_update_start()&lt;/code&gt; in &lt;code&gt;dfu_transport_ble.c&lt;/code&gt;? If it returns from this function, then the device should advertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69006?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 14:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f0cb17a-8975-4d78-8103-24da90df8d32</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;It gets blocked at bootloader_dfu_start();
I am trying to find the exact point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69004?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 10:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:68587673-44da-4230-8899-df7d6449c24f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you able to debug the bootloader, i.e. do you enter the main() of the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69009?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2016 07:28:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b529ca8f-e7e3-4c69-85bf-8388ae0cce0c</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;No, the App nRF Connect doesn´t detect something. I have double-checked that the board works uploading again an example (ble_app_uart) and it works perfectly....but the bootloader still not working&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69003?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 14:31:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10a2878-f41e-4361-a98d-d27cb8982e29</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Are you able to see the device advertising with the nRF Connect for Android or iOS app?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69005?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 13:10:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f782d705-e905-49ea-b12f-e32f70b016f6</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;Hello Bjørn,&lt;/p&gt;
&lt;p&gt;I have tried with nRF51822QFAAH00 (0x0072).&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;First with the nRFgo Studio I have flashed the device, and then uploaded the:
nRF5_SDK_11.0.0_89a8197/components/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;In KeiluVision I have opened
nRF5_SDK_11.0.0_89a8197\examples\dfu\bootloader\pca10028\dual_bank_ble_s130
In project option, in the utilities Tab for the nrfjprog.exe I have added the following line:
--program &amp;quot;#H&amp;quot; -f NRF51
And then in the code modified the pins of LED´s to:
Led1   3  /
Led2   4  /
Led3   6  /
Button4  7&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The reason of those changes is because those are the PINs I have acces to.
Uploaded the code, and again the MCP doesn´t detect the Board and LED1 and 2 are on. LED3 is off. I have tried with the Button....nothing at all&lt;/p&gt;
&lt;p&gt;Javier&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69002?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 12:54:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1608c6f-c8af-4fa9-8c94-e62da8057089</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Happy to help. Let me know when you&amp;#39;ve tried this on a rev 3 IC.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/69001?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 12:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78fc9503-50f6-4632-803e-e8866c19abf3</guid><dc:creator>Javier</dc:creator><description>&lt;p&gt;You are right, the chip version of the PCA10004 Rev.2.2.0 is the N51822QFAAG0, non compatible. Then I have a custom board with the chip N51822QFAAG2, but this one also enter in the revision 2 IC? I will check with another custom board with N51822QFAAH0, revision 3.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Running the BLE bootloader example</title><link>https://devzone.nordicsemi.com/thread/68999?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 11:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:268d9ff3-2a4c-4b76-93da-1fc9ecb32747</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If you&amp;#39;re using a PCA10004 Rev.2.2.0 board, then its higly likely that you&amp;#39;re using a nRF51822 IC revision 2 chip, please check the chip markings against the overview on &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51822_ic_revision_overview.html?cp=3_0_1"&gt;this&lt;/a&gt; Infocenter page. If you&amp;#39;re using a revision 2 IC, then its not compatible with SDK v11.0.0, please see the compatibility matrix found &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/compatibility_matrix/nRF51422_nRF51822_ic_rev_sdk_sd_comp_matrix.html?cp=3_0_4"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>