<?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>DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19478/dfu-sdk-12-2-0-s130-nrf51822-qxxaa</link><description>can i use dfu secure bootloder for nrf51822 QxxAA ?
if yes please help me how ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 Oct 2017 11:16:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19478/dfu-sdk-12-2-0-s130-nrf51822-qxxaa" /><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75662?ContentTypeID=1</link><pubDate>Tue, 31 Oct 2017 11:16:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8977dc00-e358-4fc5-b428-c04246a79922</guid><dc:creator>sosse</dc:creator><description>&lt;p&gt;You don&amp;#39;t have to micro-ECC for the secure booloarder. You can use more light-weight way to implement secure bootloader by using AES-CMAC.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/CHAKAK/bootloader_secure_custom"&gt;https://github.com/CHAKAK/bootloader_secure_custom&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can find, the example code and tool to generate encrypted firmwaire.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75661?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2017 20:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cacb3ddc-2612-4ed3-9a7c-23a4c2b19e79</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Ok. I will try to find the post where the application start address was discussed.&lt;/p&gt;
&lt;p&gt;BTW.
I presume, you still cant get it to work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75660?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2017 13:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1df66edd-25cd-4c5c-bbac-de11726de8b4</guid><dc:creator>uriy</dc:creator><description>&lt;p&gt;I think no need to change application start address. Because it&amp;#39;s always located above softdevice.
For bootloader (In my opinion) we can set start address  as small as possible. When I start experiments I set bootloacer start addres 0x3ACO00 and size 0x5000. When I enable loggin this size was insuficcent and I change start address to 0x37C00 and size 0x8000&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75659?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 21:15:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3da51c0f-a568-4288-9df9-4a554aa836ab</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Interesting.&lt;/p&gt;
&lt;p&gt;I am at about the same stage as you are.&lt;/p&gt;
&lt;p&gt;It took me a while to find the original post about changing the RAM size, and I posted asking that the SDK or docs be updated to show the correct amount of RAM so it worked on both QFAC and QFAA.&lt;/p&gt;
&lt;p&gt;But I have not had time to actually upload any code.&lt;/p&gt;
&lt;p&gt;One thing I read however, ( and I now cant find a link to it on this site), was that if I want to still upload via the debugger, is that some compile settings need to be changed.
Possibly the flash start address&lt;/p&gt;
&lt;p&gt;And I dont know whether its also necessary to change those settings for the OTA upload&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75658?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2017 17:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a22b55b-bb41-4da5-87ad-9e6a7b6a4227</guid><dc:creator>uriy</dc:creator><description>&lt;p&gt;Unfortunatelly it doesn&amp;#39;t solve my problem.
Bootloader and my app works fine on NRF51-DK.
Now I&amp;#39;m porting it to QFAA chip with 16KB of RAM.
In my case was required to set IRAM1 0x200025F0 : 0x1A10.
Bootloader works in QFAA chip, I am able to send new firmware over nrfConnect but new app doesn&amp;#39;t start.
After firmware upgrade it&amp;#39;s again in bootloader.
Bootloader logs attached.
Another problem that I see logs only when #define NRF_LOG_DEFERRED 0.
If I set #define NRF_LOG_DEFERRED 1 logs are silent
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/boot_5F00_log.txt"&gt;boot_log.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75657?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 10:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f142b221-f6cb-4c50-a582-8f0c20ce2645</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Mohsen, In order to compile the Secure bootloader for a nRF51 variant with 16kB RAM you need to adjust the size of the RAM section and lower the RAM start address.&lt;/p&gt;
&lt;p&gt;The SoftDevice returns the application ram base address in the app_ram_base parameter given to sd_ble_enable. Thus, if you debug the Secure Bootloader and set a breakpoint after sd_ble_enable and add a watch to app_ram_base, you will see that the application RAM start address can be set to 0x200025E0 and the size can be set to 0x1A20.&lt;/p&gt;
&lt;p&gt;If your using GCC, you need to modify the &lt;code&gt;secure_dfu_gcc_nrf51.ld&lt;/code&gt; (linker script) and modify the RAM section to&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;RAM (rwx) :  ORIGIN = 0x200025E0, LENGTH = 0x1A20
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;If you&amp;#39;re using Keil, then you need to edit the memory settings under &amp;quot;Options for target&amp;quot;, see the screenshot below&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8272.memory_5F00_settings.PNG" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU sdk 12.2.0 (s130) nrf51822 QxxAA</title><link>https://devzone.nordicsemi.com/thread/75656?ContentTypeID=1</link><pubDate>Sun, 05 Feb 2017 18:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1e5f3a7-a273-440e-8c0a-9cfaa12e30c6</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;yes you can.  just change RAM settings to 16KB instead of the default 32KB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>