<?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 can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72870/how-can-i-change-flash-address-in-the-code-using-nrf-connect-sdk-for-nrf5340</link><description>Hi , 
 Technical Environment details: 
 
 nRF Connect SDK 
 segger Embedded Studio 
 nRF5340 DK board 
 
 1. I have enabled immutable bootloader and MCUboot bootloader. 
 2. Compiled fade_led sample code for nRF5340 DK board and some of the files generated</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Mar 2021 07:10:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72870/how-can-i-change-flash-address-in-the-code-using-nrf-connect-sdk-for-nrf5340" /><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/302285?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 07:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97a38554-dd4e-4177-8778-d5eeab589f90</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hello again!&lt;br /&gt;&lt;br /&gt;This is possible by using &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#configuring-static-partitions"&gt;static partitions&lt;/a&gt;, configured in a pm_static.yml file. You can see an example of this in the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/applications/asset_tracker/configuration/thingy91_nrf9160ns/pm_static.yml"&gt;asset tracker sample&lt;/a&gt;, for example.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/301659?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 11:51:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c818c3-cd7c-402a-b3e7-7eec21eb24a6</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;HI Carl,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there any possibility to set application start address and size of the application through pm.yml. if yes, please let me know the macro to set start address and size of the application&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Srinivas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/301609?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 09:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c902fa2b-da1a-4825-b4f8-315579dbb4fb</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;The size of the immutable bootloader partition is also given by Kconfig, as mentioned in my previous comment. Specifically,&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a1100997148a43dca31051e4721269124b55a3fa/subsys/bootloader/Kconfig#L165"&gt;PM_PARTITION_SIZE_B0_IMAGE&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As for the start address I mentioned this:&lt;/p&gt;
[quote user="crfosse"]From what I can see the partition manager places images according to pm.yml, starting at address 0x0. The end address is naturally given by the start address + image size.[/quote]
&lt;p&gt;Hence, the start address is given by the setup in pm.yml.&amp;nbsp;&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/301575?ContentTypeID=1</link><pubDate>Wed, 24 Mar 2021 06:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b195ecbc-0e63-4461-87fd-69fdc3131c0b</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;Thanks for information&lt;/p&gt;
&lt;p&gt;I am able to see&amp;nbsp;&lt;span&gt;MCUboot&amp;nbsp;&lt;/span&gt;partition size, &lt;span&gt;MCUboot&amp;nbsp;&lt;/span&gt;scratch size and &lt;span&gt;MCUboot&amp;nbsp;&lt;/span&gt;pad in Kconfig file&lt;/p&gt;
&lt;p&gt;I could not find&amp;nbsp; the start address of MCUboot and Immutable bootloader in &lt;span&gt;Kconfig&amp;nbsp;&lt;/span&gt;file.&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;could not find immutable bootloader partition size also.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/300641?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 10:40:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec2e955c-7a21-44d8-a12d-d7abaaea831d</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi again!&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;MCUboot bootloader:&lt;/strong&gt;&lt;br /&gt;You can find the base size the MCUboot bootloader in the &lt;a href="https://github.com/nrfconnect/sdk-mcuboot/blob/78fc1d62edc9d639059fa5fdf7b39ef8a9e3f1a3/boot/zephyr/Kconfig#L19"&gt;MCUboot Kconfig&lt;/a&gt;.&amp;nbsp;The partitions can be changed using the following configurations in the&amp;nbsp;MCUboot child image .conf:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_PM_PARTITION_SIZE_MCUBOOT
CONFIG_PM_PARTITION_SIZE_MCUBOOT_SCRATCH
CONFIG_PM_PARTITION_SIZE_MCUBOOT_PAD&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Immutable bootloader:&lt;br /&gt;&lt;/strong&gt;The base size for the immutable bootloader partitions can similarly be found in the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/a1100997148a43dca31051e4721269124b55a3fa/subsys/bootloader/Kconfig#L154"&gt;immutable bootloader Kconfig&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;From what I can see the partition manager places images according to pm.yml, starting at address 0x0. The end address is naturally given by the start address + image size.&lt;br /&gt;&lt;br /&gt;I hope this answers your question!&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/300556?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 04:52:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62b99fc7-78dc-4a9e-92cb-0507eba4aded</guid><dc:creator>SRINI</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;MCUboot bootloader:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I am able to see &lt;strong&gt;pm.yml&lt;/strong&gt; file in the below folder for MCUboot.&amp;nbsp;but I am not able to see the start address of the MCUboot, End address of the MCUboot and size of the MCUboot in the configuration file.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;v1.5.0\bootloader\mcuboot\boot\zephyr\pm.yml&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Immutable bootloader:&lt;/strong&gt;&lt;br /&gt;I am able to see &lt;strong&gt;pm.yml&lt;/strong&gt; file in the below folder for immutable bootloader.&amp;nbsp;but I am not able to see the start address of the immutable bootloader, End address of the immutable bootloader and size of the immutable bootloader in the configuration file.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;v1.5.0\nrf\samples\bootloader\pm.yml&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Srinivas.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I change flash address in the code using nrf connect sdk for nrf5340</title><link>https://devzone.nordicsemi.com/thread/300370?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 11:46:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecb064f-80ef-480e-b8cd-d6531f5e4e71</guid><dc:creator>Carl Richard</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;span&gt;Srinivas!&lt;br /&gt;&lt;br /&gt;As you mention the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html"&gt;partition manager&lt;/a&gt;&amp;nbsp;configures the start address and size of RAM and flash partitions of multi image builds. You can configure the partitions using pm.yml files, as explained in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/scripts/partition_manager/partition_manager.html#configuration"&gt;the documentation&lt;/a&gt;. The documentation&amp;nbsp;also contains some example configurations. What do you want do change?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Carl Richard&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>