<?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>how to set iRom and iRam address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67993/how-to-set-irom-and-iram-address</link><description>Hi, 
 1st time using nRF52840 - EV-BT840 on Keil V5.25.20 
 I use SDK 1702, reference to example examples\dfu\secure_bootloader\pca10056_s140_ble 
 
 My question is what softdevice should I use? 
 is s140_nrf52840_5.0.0-2.alpha_softdevice.hex ? 
 
 and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Nov 2020 08:43:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67993/how-to-set-irom-and-iram-address" /><item><title>RE: how to set iRom and iRam address</title><link>https://devzone.nordicsemi.com/thread/279141?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 08:43:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae5a4b45-0a19-40a6-a6c6-90386a1ab3c8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;The Bootloader is a complete standalone application with the two main responsibilities being handling of DFUs and validation&amp;amp;booting of the main app. Please take a look at the &amp;quot;&lt;span&gt;&lt;a title="Dual-bank and single-bank updates" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader_dfu_banks.html?cp=7_1_3_5_1_2"&gt;Dual-bank and single-bank updates&lt;/a&gt;&lt;/span&gt;&amp;quot; section of the bootloader documentation for a better illustration of this. Notice how the main application is placed right above the Softdevice (ie bluetooth stack).&lt;/p&gt;
[quote user="martinly77"]So should I select other example to start from?&amp;nbsp; &amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Yes, support for DFU can be added later. I would generally recommend starting development on the main application first. When you have a working app and is ready DFU support, I recommend you go start with reading this blog post: &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/software-development-kit/posts/getting-started-with-nordics-secure-dfu-bootloader&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set iRom and iRam address</title><link>https://devzone.nordicsemi.com/thread/279106?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 22:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4899dbdd-7c85-4bc7-be4b-15879beb38a4</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;HI Vadar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Our application on this nrf52840 need DFU and that is why I choose this example to start from.&lt;/p&gt;
&lt;p&gt;But the setting start from 0xF8000 which is bootloader address and size is limited.&lt;/p&gt;
&lt;p&gt;So should I select other example to start from?&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But add the DFU function later?&amp;nbsp; &amp;nbsp;But how?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set iRom and iRam address</title><link>https://devzone.nordicsemi.com/thread/279100?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 18:54:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc81df9c-8b53-40e6-8a77-b58d9b78cdbd</guid><dc:creator>DYNAMICTOYS</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;From the example code&amp;nbsp;&amp;nbsp;SurfBoard_nrf52_SDK_1702\examples\dfu\secure_bootloader\pca10056_s140_ble\arm5_no_packs&lt;/p&gt;
&lt;p&gt;it has set iRom as&amp;nbsp;&lt;/p&gt;
&lt;p&gt;0xF8000&amp;nbsp; size : 0x6000&lt;/p&gt;
&lt;p&gt;This size is very small, if I change size to bigger like 0x10000, it will step on MBR area and compile error.&lt;/p&gt;
&lt;p&gt;So it is very confused.&lt;/p&gt;
&lt;p&gt;From other post like here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/23237/what-is-the-recommended-irom-iram-setup-for-s140-5-0-0-3-alpha"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/23237/what-is-the-recommended-irom-iram-setup-for-s140-5-0-0-3-alpha&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;it should set to 0x22000 and size DE000&lt;/p&gt;
&lt;p&gt;By this setting, my code can compile but it do not run after download.&amp;nbsp; Once start debug, it will enter HardFault_handler&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1604948021188v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So what is the actual setting of iRom and iRam?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to set iRom and iRam address</title><link>https://devzone.nordicsemi.com/thread/278574?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2020 11:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea1276db-b807-4836-bfda-a1a4be10fe64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;SDK v17.0.2 is compatible with s140 v7.2.0 as can be seen from the compatibility matrix here: &lt;span&gt;&lt;a title="SDKs and SoftDevices " href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52840/COMP/nrf52840/nRF52840_ic_rev_sdk_sd_comp_matrix.html?cp=4_0_3_2"&gt;SDKs and SoftDevices. &lt;/a&gt;This Softdevice is also included in the SDK and it can be programmed to the board by using the flash Softdevice target in the Keil project, please refer to the &amp;quot;&lt;a title="Running examples that use a SoftDevice" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/getting_started_softdevice.html?cp=7_1_1_3"&gt;Running examples that use a SoftDevice&amp;quot; &lt;/a&gt;section of the SDK getting started guide for more details.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;Softdevice flash target&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/0285.pastedimage1604574627262v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;It&amp;#39;s fine to use the project&amp;#39;s default IRAM and IROM setting. The default memory layouts for devices that include the bootloader are illustrated here &lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;link&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>