<?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 configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95187/how-to-configure-memory-layout-in-asset-tracker-v2-app</link><description>Hello, 
 We are currently using NRF Connect SDK 2.2.0 and even more specifically the Asset Tracker v2 application in nrf9160dk board. By the moment we are only including some dependencies which our future application will need. This dependencies include</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Feb 2023 12:26:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95187/how-to-configure-memory-layout-in-asset-tracker-v2-app" /><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/409584?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 12:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882d987f-941e-44cf-b7ef-a8699ade3d99</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jfpastrana"]Is there any possibility to place the app in the external flash?[/quote]
&lt;p&gt;Placing the app in an external flash could be possible using Execute In Place (XIP), but it is not recommended.&lt;/p&gt;
&lt;p&gt;Instead, start by moving secondary and storage partitions to external flash.&lt;/p&gt;
[quote user="jfpastrana"]&amp;nbsp;Below you can find the static configuration of my application:[/quote]
&lt;p&gt;From this, I would suggest placing mcuboot_secondary and nonsecure_storage in external flash as a start.&lt;br /&gt;Let me know how the flash space looks after that.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/409555?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 11:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:926d0dd8-ea97-4132-bc88-07ba5f5d3b70</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;Thanks for the clarification, I misunderstood this size due to the following image:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676287854997v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;My mistake.&lt;/p&gt;
&lt;p&gt;Is there any possibility to place the app in the external flash? The other possibility what I am considering is to flash only the Application without bootloader, I am doing a proof of concept and I do not need it now. Does it possible in AT2?&lt;/p&gt;
&lt;p&gt;Thank you very much for the support,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/409495?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 08:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b6b2ede-1035-4609-b08e-6a20a5432516</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jfpastrana"]&lt;p&gt;&lt;span&gt;As&amp;nbsp; can see in the error the flash_primary_size is 0x100000, therefore it is not going to fit. PM is not taking into consideration the ending addrees.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I increase this region? as I can see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html"&gt;here&lt;/a&gt;, we have lot of space available.&lt;/span&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I think the figure you are looking at can be misleading.&lt;/p&gt;
&lt;p&gt;The nRF9160 has a 1024 kB flash, which is 1MB = 0x0-0x100 000. For a source on the converting, I can give &lt;a href="https://stackoverflow.com/questions/10173828/converting-from-1mbyte-to-hex"&gt;stack overflow&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;So this is correct:&lt;/p&gt;
[quote user="jfpastrana"]flash_primary_size is 0x100000[/quote]
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/409457?ContentTypeID=1</link><pubDate>Sun, 12 Feb 2023 16:59:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7e74445-e958-4da7-b5fa-0221f65a1fa5</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;It was helping the information that you shared with me. I was optimising the application, however it is not enough. I am overlapping&amp;nbsp;235412bytes... quite a lot.&lt;/p&gt;
&lt;p&gt;I was doing some test using static partition, it looks promising. However, I would like to know how to increase the flash_primary partition.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Below you can find the static configuration of my application:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;EMPTY_0:
  address: 0xc000
  end_address: 0x10000
  placement:
    before:
    - mcuboot_pad
  region: flash_primary
  size: 0x4000
EMPTY_1:
  address: 0xff000
  end_address: 0x100000
  placement:
    after:
    - settings_storage
  region: flash_primary
  size: 0x1000
EMPTY_2:
  address: 0xfc000
  end_address: 0xfd000
  placement:
    after:
    - mcuboot_secondary
  region: flash_primary
  size: 0x1000
app:
  address: 0x1c200
  end_address: 0x86000
  region: flash_primary
  size: 0x69e00
mcuboot:
  address: 0x0
  end_address: 0xc000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0xc000
mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x8000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200
mcuboot_primary:
  address: 0x10000
  end_address: 0x86000
  orig_span: &amp;amp;id001
  - tfm
  - mcuboot_pad
  - app
  region: flash_primary
  sharers: 0x1
  size: 0x76000
  span: *id001
mcuboot_primary_app:
  address: 0x10200
  end_address: 0x86000
  orig_span: &amp;amp;id002
  - app
  - tfm
  region: flash_primary
  size: 0x75e00
  span: *id002
mcuboot_secondary:
  address: 0x86000
  end_address: 0xfc000
  placement:
    after:
    - mcuboot_primary
    align:
      start: 0x8000
  region: flash_primary
  share_size:
  - mcuboot_primary
  size: 0x76000
nonsecure_storage:
  address: 0xfd000
  end_address: 0xff000
  orig_span: &amp;amp;id003
  - settings_storage
  region: flash_primary
  size: 0x2000
  span: *id003
nrf_modem_lib_ctrl:
  address: 0x20008000
  end_address: 0x200084e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - tfm_sram
    - start
  region: sram_primary
  size: 0x4e8
nrf_modem_lib_rx:
  address: 0x2000a4e8
  end_address: 0x2000c4e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_tx
  region: sram_primary
  size: 0x2000
nrf_modem_lib_sram:
  address: 0x20008000
  end_address: 0x2000c4e8
  orig_span: &amp;amp;id004
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x44e8
  span: *id004
nrf_modem_lib_tx:
  address: 0x200084e8
  end_address: 0x2000a4e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_ctrl
  region: sram_primary
  size: 0x2000
otp:
  address: 0xff8108
  end_address: 0xff83fc
  region: otp
  size: 0x2f4
settings_storage:
  address: 0xfd000
  end_address: 0xff000
  inside:
  - nonsecure_storage
  placement:
    align:
      start: 0x8000
    before:
    - end
  region: flash_primary
  size: 0x2000
sram_nonsecure:
  address: 0x20008000
  end_address: 0x20040000
  orig_span: &amp;amp;id005
  - sram_primary
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x38000
  span: *id005
sram_primary:
  address: 0x2000c4e8
  end_address: 0x20040000
  region: sram_primary
  size: 0x33b18
sram_secure:
  address: 0x20000000
  end_address: 0x20008000
  orig_span: &amp;amp;id006
  - tfm_sram
  region: sram_primary
  size: 0x8000
  span: *id006
tfm:
  address: 0x10200
  end_address: 0x1c200
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0xc000
tfm_nonsecure:
  address: 0x1c200
  end_address: 0x86000
  orig_span: &amp;amp;id007
  - app
  region: flash_primary
  size: 0x69e00
  span: *id007
tfm_secure:
  address: 0x10000
  end_address: 0x1c200
  orig_span: &amp;amp;id008
  - mcuboot_pad
  - tfm
  region: flash_primary
  size: 0xc200
  span: *id008
tfm_sram:
  address: 0x20000000
  end_address: 0x20008000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x8000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;This configuration is currently working AT2 application, if we focus on &amp;quot;EMPTY_1&amp;quot; partition, we can see that the ending address is&amp;nbsp;0x100000. If I try to increase this partition to&amp;nbsp;&lt;span&gt;0x180000, for instance. It will throw an error:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676220866030v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, I think that the problem comes from flash_primary region:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;--flash_primary-size;0x100000;--flash_primary-base-address;0x0;--flash_primary-placement-strategy;complex;--flash_primary-device;flash_controller;--flash_primary-default-driver-kconfig;CONFIG_SOC_FLASH_NRF
Call Stack (most recent call first):
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As&amp;nbsp; can see in the error the flash_primary_size is 0x100000, therefore it is not going to fit. PM is not taking into consideration the ending addrees.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;How can I increase this region? as I can see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fmemory.html"&gt;here&lt;/a&gt;, we have lot of space available.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/403974?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 07:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0a847a-d84e-4f64-9de0-07ecd956cd3d</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="jfpastrana"]And regarding your question, the limitation is on the child image, to be more precise, s1_image.[/quote]
&lt;p&gt;That would mean that MCUboot is is the one with too little space.&lt;/p&gt;
&lt;p&gt;Have a look at this &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/applications/machine_learning/configuration/nrf5340dk_nrf5340_cpuapp/child_image/mcuboot/prj.conf"&gt;child_image/mcuboot.conf&lt;/a&gt; from the Machine Learning sample to see an example of how to reduce MCUboot flash size.&lt;/p&gt;
&lt;p&gt;Also see my explanation on &lt;a href="https://github.com/hellesvik-nordic/samples_for_nrf_connect_sdk/tree/main/bootloader_samples#how-to-configure-the-bootloader"&gt;How to configure the bootloader&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For more general tips, see our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/app_opt.html"&gt;Optimizing application&lt;/a&gt; docs.&lt;/p&gt;
&lt;p&gt;Does this help?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/403914?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2023 17:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:086ce6df-9545-47fe-8fa3-6eaf2d5a6102</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;First of all thank you for the answer.&lt;/p&gt;
&lt;p&gt;And regarding your question, the limitation is on the child image, to be more precise, s1_image.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The last days, I was trying to reduce the memory used but I did not success yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402617?ContentTypeID=1</link><pubDate>Fri, 30 Dec 2022 08:45:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dfd56dc-4fb7-4e41-87a3-cb3345cf06c8</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jfpastrana"]Therefore, If I understood well, Partition Manager is configuring automatically each partition, no? [/quote]
&lt;p&gt;That is correct.&lt;/p&gt;
[quote user="jfpastrana"]Then, the only way that I have now to solve this is issue is reducing the size or going to a static approach.&amp;nbsp;[/quote]
&lt;p&gt;There might be some Kconfig options you can use instead. It depends.&lt;/p&gt;
[quote user="jfpastrana"]What do you recommend?[/quote]
&lt;p&gt;First:&lt;br /&gt;Is the flash space limitation in the application or a child image?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402557?ContentTypeID=1</link><pubDate>Thu, 29 Dec 2022 15:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7624cdae-6d7e-4d99-aeaa-a483b7cd8ede</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello &lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I mistake Partition Manager with Secure Partition Manager, which is in deprecated status.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have included MCUBoot.&lt;/p&gt;
&lt;p&gt;The image which is failing during the linking stage is &amp;quot;tfm&amp;quot;. By the moment, I will follow your recommendations of reducing the code size as well as removing unnecessary dependencies.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Therefore, If I understood well, Partition Manager is configuring automatically each partition, no? Then, the only way that I have now to solve this is issue is reducing the size or going to a static approach.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What do you recommend?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;&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 configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402328?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 21:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:196b010d-984e-4c7b-bf6f-7123d8faf2d3</guid><dc:creator>Marshall</dc:creator><description>&lt;p&gt;That free space is for the FOTA Image to be stored.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;AT2 = Asset Tracker 2 (sorry)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you are not going to upgrade the boot loader (in the field), you can turn off the first stage bootloader in your prj.conf&lt;/p&gt;
&lt;p&gt;#we are never going to upgrade the bootloader in the field.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SECURE_BOOT&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BUILD_S1_VARIANT&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;I&amp;#39;m using the dynamic partition manager, so it all gets a bit opaque, as to how to disable the image second slot, (as I just moved mine to external flash), but it should be doable.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;perhaps this is a place to start.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_FOTA_DOWNLOAD&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402267?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 12:24:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99e83949-35ba-49a2-81ea-cbff7c7562ae</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>[quote user="jfpastrana"]As I understood, Partition Manager is deprecated, no?[/quote]
&lt;p&gt;Partition Manager is not deprecated.&lt;br /&gt;If you add MCUboot, partition manager will be enabled to include it as a child image.&lt;/p&gt;
[quote user="jfpastrana"]We are in a early stage, so, we do not need FOTA now as well as I did not start with the project optimisations, as I said, I only included some dependencies to Asset Tracker, I did not include any development yet. If I have to start with optimisations now.... it is not promising.[/quote]
&lt;p&gt;When using Partition Manager, the build will be split into &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.0/nrf/ug_multi_image.html"&gt;multiple images&lt;/a&gt;.&lt;br /&gt;The flash overflow can be either in the application or in a child image.&lt;br /&gt;Can you check which part of the build gets the error?&lt;/p&gt;
[quote user="jfpastrana"]Once I built the application, I see build/partitions.yml but I do know how can I configure it.[/quote]
&lt;p&gt;Do you mean that you do not know how?&lt;br /&gt;In that case, you do so by using pm_static.yml.&lt;/p&gt;
[quote user="jfpastrana"]By the moment we are using the nrf9160dk so we do not have a external flash.[/quote]
&lt;p&gt;If you want to test using external flash with thenRF9160DK, you can. &lt;br /&gt;But you need to reconfigure the DK first though.&lt;br /&gt;Let me know if you want instructions on how to do this.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402264?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 11:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d0dc7fd-6333-4720-bcc0-1a850a885ce5</guid><dc:creator>jfpastrana</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/marshall"&gt;Marshall&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/sigurd-hellesvik"&gt;Sigurd Hellesvik&lt;/a&gt;&amp;nbsp;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;By the moment we are using the nrf9160dk so we do not have a external flash. However, using the 1MB internal flash should be enough, if you have a look to the memory layout of the Asset Tracker, there is a lot of free space:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1672140474756v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;We are in a early stage, so, we do not need FOTA now as well as I did not start with the project optimisations, as I said, I only included some dependencies to Asset Tracker, I did not include any development yet. If I have to start with optimisations now.... it is not promising.&lt;/p&gt;
&lt;p&gt;What is AT2?&lt;/p&gt;
&lt;p&gt;As I understood, Partition Manager is deprecated, no? Asset Tracker uses the information of the Device Tree to allocate each partition, no? Once I built the application, I see build/partitions.yml but I do know how can I configure it.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402234?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 09:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bed3b0ca-3bbc-4559-8cee-355161ce0a81</guid><dc:creator>Sigurd Hellesvik</dc:creator><description>&lt;p&gt;Have a look at Marshalls suggestions, they are good.&lt;br /&gt;I also recommend optimizing flash usage before changing the partitioning.&lt;/p&gt;
&lt;p&gt;If you need to change the flash partitioning, you use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.2.0/nrf/scripts/partition_manager/partition_manager.html#static-configuration"&gt;static partitioning&lt;/a&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Have a look at &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/samples/matter/light_bulb/configuration/nrf52840dk_nrf52840/pm_static_dfu.yml"&gt;pm_static.yml for a sample&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Have a look at build/partitions.yml for your projects current partitioning.&lt;/li&gt;
&lt;li&gt;Create your own pm_static.yml&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Regards,&lt;br /&gt;Sigurd Hellesvik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to configure memory layout in Asset Tracker v2 app</title><link>https://devzone.nordicsemi.com/thread/402227?ContentTypeID=1</link><pubDate>Tue, 27 Dec 2022 09:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cb3930-d046-4fb6-911e-671bd1bf4c5e</guid><dc:creator>Marshall</dc:creator><description>&lt;p&gt;I had the same issues. In the end I went through the pain of external flash for the FOTA image, (It seems to be fixed in V2.2.0)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you have external flash? you could use that for the FOTA image to be stored in.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you need FOTA?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you turned off debug?&lt;/p&gt;
&lt;p&gt;Have you turned on optimisations?&lt;/p&gt;
&lt;p&gt;Can you get rid of bits of AT2 you don&amp;#39;t need?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t have the external flash, there is not much extra you can add to AT2 without running out of space.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>