<?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>Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8088/bootloader-s120-for-nrf51822-example</link><description>Hello, 
 I am trying to adapt a bootloader from sdk examples to my nRF51822 board without success. 
 I am able to adapt the example apps from the SDK (I have to change the clocks as I use different ones than the ones in the dev. boards) but there is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jul 2015 07:20:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8088/bootloader-s120-for-nrf51822-example" /><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29042?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 07:20:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e42b0340-a4c4-450a-8e1c-53689dd69d50</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! You don&amp;#39;t have to delete it, you can just close it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29041?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 06:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfb02e93-67fc-46ab-80fc-4acf3e4897d7</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;Thanks &lt;a href="https://devzone.nordicsemi.com/users/670/petter/"&gt;Petter&lt;/a&gt;, I finally managed to solve the problem with &lt;a href="https://devzone.nordicsemi.com/users/6059/aryan/"&gt;Aryan&lt;/a&gt;&amp;#39;s help from &lt;a href="https://devzone.nordicsemi.com/question/43945/bootloader-s120-port-from-nrf51422-to-nrf51822/"&gt;THIS&lt;/a&gt; thread. Mutual exclusion was not needed in the end. Thanks anyway. Should I delete this question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29033?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 10:54:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063ac675-8244-4b28-ad46-f9aa9eeca8ed</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;With SoftDevice S120 2.1.0 the mutual exclusion between the radio and the application is disabled by default. You need to enable this to use it on a revision 2 chip. Try:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;cpu_blocking_enabled.common_opt.radio_cpu_mutex.enable = 1;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29032?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 10:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:183c26e0-9cd0-4fac-99b1-d9c6d1d17850</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;Added this in main.c in my bootloader:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t opt_id = BLE_COMMON_OPT_RADIO_CPU_MUTEX;
			ble_opt_t cpu_blocking_enabled;
			cpu_blocking_enabled.common_opt.radio_cpu_mutex.enable = 0;
		
    // If stack is present then continue initialization of bootloader.
    ble_stack_init(!app_reset);
			err_code = sd_ble_opt_set(opt_id, &amp;amp;cpu_blocking_enabled);
    scheduler_init();
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Id I did it well, still doesn&amp;#39;t work...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29031?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2015 09:47:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86438a79-ce09-496f-8fb0-e5383b159136</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;Thank you! I will definitely try it out as soon as I can and I will let you know...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29039?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 15:27:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:924c7f40-0de6-4103-9acc-39e6c61df281</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you have a revision 2 chip on your custom board, and on the PCA10028 nRF51 DK you have a revision 3 chip, so there could be something there. Please see the &lt;a href="https://www.nordicsemi.com/eng/nordic/download_resource/41917/8/43828581"&gt;compatibility matrix&lt;/a&gt; for more information. If you use SoftDevice 2.1.0 with a revision 2 chip you need to enable mutual exclusion between the radio and the application. Please see the Changes section in the S120 2.0.0 release notes for more information. It could be something to try out. If you haven&amp;#39;t already done it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29040?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 13:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9f168ef-144e-408f-aff8-8c38f516b049</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;The marking on my chip is: N51822_QFAAG3_1440BK. Started to work with SDK 7.1 and SD s120 1.0.1 and ported the app to SDK 8.1 and Softdevice S120 2.1.0 which I&amp;#39;m working with now. FYI, &lt;a href="https://devzone.nordicsemi.com/users/6059/aryan/"&gt;Aryan&lt;/a&gt; is also checking this issue and he said maybe for tomorrow he will have a solution. You can see it in my other thread &lt;a href="https://devzone.nordicsemi.com/question/43945/bootloader-s120-port-from-nrf51422-to-nrf51822/"&gt;here&lt;/a&gt;. Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29038?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 12:06:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c22132a4-458a-4865-aa45-7e8839ee7d12</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What are the chip markings of your nRF51822? What SDK and SoftDevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29037?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 11:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9d270bb-ca89-4041-a48b-e9e4f628acdb</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;I tried softdevice s110 and a s110 adapted bootloader from a nrf6310 board from earlier sdk&amp;#39;s and it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29034?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 10:41:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da730e5a-2653-4cd2-87b0-f2e178cf13ef</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Strange. Does the S110 with unmodified bootloader work as well? Do you have any debug possibilites?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29036?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 09:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:855bfdb5-9158-44af-adb3-d6e0af375b24</guid><dc:creator>Gabriel C.</dc:creator><description>&lt;p&gt;I can adapt all the examples from SDK to my nRF51822 board by making small changes for the clock. I do not have the 32kHZ crystal, so I use the interna clock. Bootloader is the only one I cannot adapt to my board by changing the settings as the app...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader s120 for nRF51822 example</title><link>https://devzone.nordicsemi.com/thread/29035?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 09:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7b1ee13-04cf-457d-8155-e9d510f69d9f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;There is no difference between nRF51422 and nRF51822 except that you can&amp;#39;t use ANT on nRF51822, so i don&amp;#39;t think it is related to the chip swap. It seems your are saying that you can&amp;#39;t get any examples from the SDK to work, so this is not just related to the bootloader is it? Are you able to use the debugger to see where it stops working? Does your custom board have a 32kHz crystal? Maybe &lt;a href="https://devzone.nordicsemi.com/question/38507/nothing-happens-when-i-flash-a-firmware-on-a-custom-nrf51822-board/"&gt;this&lt;/a&gt; question is helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>