<?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>extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/112327/extxip_smp_srv-fails-compiling-for-nrf5340dk-non-secure-target</link><description>Hello, 
 Working on Ubuntu 22.04 with nRF Connect SDK 2.6.1 for the target nrf5340dk_nrf5340_cpuapp_ns (= with TF-M). 
 My application image became too large. I want to split the app image over internal and external memory . I&amp;#39;m using extxip_smp_svr as</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 04 Aug 2024 15:00:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/112327/extxip_smp_srv-fails-compiling-for-nrf5340dk-non-secure-target" /><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/496891?ContentTypeID=1</link><pubDate>Sun, 04 Aug 2024 15:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b026dfcf-ee3c-482d-b9f2-78d595250862</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;/p&gt;
&lt;p&gt;I looked further into my issue.&lt;/p&gt;
&lt;p&gt;Added logging in the MCUBoot shows the bootloader fails in &lt;span style="font-family:courier new, courier;"&gt;boot_validate_slot()&lt;/span&gt; (and reports this in &lt;span style="font-family:courier new, courier;"&gt;context_boot_go()&lt;/span&gt;).&lt;br /&gt;&lt;br /&gt;The memory map with &lt;span style="font-family:courier new, courier;"&gt;west build -t partition_manager_report -d build&lt;/span&gt; looks fine (see earlier message).&lt;/p&gt;
&lt;p&gt;However looking into the &lt;span style="font-family:courier new, courier;"&gt;GENERATED_CP_APPLICATION_merged_domains.hex&lt;/span&gt; image with the programmer v4.4.0 the image header section seems missing (the section which should go into &lt;span style="font-family:courier new, courier;"&gt;0x10000: mcuboot_pad (0x200 - 512B)&lt;/span&gt;).&lt;/p&gt;
&lt;p&gt;The next section, after the MCUBoot loader section, starts at address 0x0001.0200 (which is: &lt;span style="font-family:courier new, courier;"&gt;0x10200: mcuboot_primary_app (0xdfe00 - 895kB)&lt;/span&gt; also named &lt;span style="font-family:courier new, courier;"&gt;0x10200: tfm (0xfe00 - 63kB)&lt;/span&gt;). There&amp;#39;s nothing flashed at &lt;span style="font-family:courier new, courier;"&gt;0x10000&lt;/span&gt; according to the image.&lt;/p&gt;
&lt;p&gt;I assume this is the reason that the bootloader does not find a bootable image? Do you see the same? Are your colleagues back from holiday season?&lt;br /&gt;&lt;br /&gt;PS for building the NS variant, I also added these lines to &lt;span style="font-family:courier new, courier;"&gt;prj.conf&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;CONFIG_BUILD_WITH_TFM=y&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;CONFIG_TFM_PROFILE_TYPE_MINIMAL=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:courier new, courier;"&gt;Thanks&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Kind regrards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495965?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2024 09:55:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08d68445-13c7-4bbc-b684-74734aa4b3ab</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve tried to reconcile the pm_static.yml (the one included in the sample) with the build/partiontion.yml (after compiling for non-secure). Here is that new version:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;###
### Ext. flash
###

# The app update image
mcuboot_secondary:
  address: 0x0
  device: MX25R64   # Is this better: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0xe0000
  placement:
    align:
      start: 0x4
  region: external_flash
  share_size:
  - mcuboot_primary
  size: 0xe0000    # TODO check size mcuboot_primary

# The network update image
mcuboot_secondary_1:
  address: 0xe0000
  device: MX25R64 # Is this better: DT_CHOSEN(nordic_pm_ext_flash)
  end_address: 0x120000
  region: external_flash
  size: 0x40000

# Since verything is aligned, do see the purpose of this EMPTY_1 partition
# EMPTY_1:
#   address: 0x114000
#   device: MX25R64
#   end_address: 0x120000
#   region: external_flash
#   size: 0xc000

mcuboot_primary_2:      # for app part running in ext. flash
  address: 0x120000
  device: MX25R64
  end_address: 0x160000
  region: external_flash
  size: 0x40000

mcuboot_secondary_2:    # for the app part in ext. flash update
  address: 0x160000
  device: MX25R64
  end_address: 0x1a0000
  region: external_flash
  size: 0x40000

external_flash:
  address: 0x1a0000
  device: MX25R64
  end_address: 0x800000
  region: external_flash
  size: 0x660000


###
### Int. flash (primary)
###

# The bootloader
mcuboot:
  address: 0x0
  end_address: 0x10000
  placement:
    before:
    - mcuboot_primary
  region: flash_primary
  size: 0x10000

# Everything except the bootloader &amp;amp; settings storage space
mcuboot_primary:
  address: 0x10000
  end_address: 0xf0000
  orig_span: &amp;amp;id001
  - mcuboot_pad
  - tfm
  - app
  region: flash_primary
  size: 0xe0000
  span: *id001

tfm_secure:
  address: 0x10000
  end_address: 0x20000
  orig_span: &amp;amp;id007
  - mcuboot_pad
  - tfm
  region: flash_primary
  size: 0x10000
  span: *id007

mcuboot_pad:
  address: 0x10000
  end_address: 0x10200
  placement:
    align:
      start: 0x4000
    before:
    - mcuboot_primary_app
  region: flash_primary
  size: 0x200

mcuboot_primary_app:
  address: 0x10200
  end_address: 0xf0000
  orig_span: &amp;amp;id002
  - tfm
  - app
  region: flash_primary
  size: 0xdfe00
  span: *id002

tfm:
  address: 0x10200
  end_address: 0x20000
  inside:
  - mcuboot_primary_app
  placement:
    before:
    - app
  region: flash_primary
  size: 0xfe00
  
tfm_nonsecure:
  address: 0x20000
  end_address: 0xf0000
  orig_span: &amp;amp;id006
  - app
  region: flash_primary
  size: 0xd0000
  span: *id006

app:
  address: 0x20000
  end_address: 0xf0000   # in NCS doc ex. this does not complete uses all space (until 0xe4000)
  region: flash_primary
  size: 0xd0000

settings_storage:
  address: 0xf0000
  end_address: 0x100000
  region: flash_primary
  size: 0x10000


###
### OTP
###

otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc


###
### RAM flash
###

ram_flash:
  address: 0x40000
  end_address: 0x40000
  region: ram_flash
  size: 0x0

mcuboot_primary_1:    # for the network core update
  address: 0x0
  device: nordic_ram_flash_controller
  end_address: 0x40000
  region: ram_flash
  size: 0x40000


###
### SRAM
###

mcuboot_sram:
  address: 0x20000000
  end_address: 0x20080000
  orig_span: &amp;amp;id003
  - pcd_sram
  - tfm_sram
  - sram_primary
  - rpmsg_nrf53_sram
  region: sram_primary
  size: 0x80000
  span: *id003

sram_secure:
  address: 0x20000000
  end_address: 0x2000a000
  orig_span: &amp;amp;id005
  - pcd_sram
  - tfm_sram
  region: sram_primary
  size: 0xa000
  span: *id005
pcd_sram:
  address: 0x20000000
  end_address: 0x20002000
  placement:
    before:
    - tfm_sram
  region: sram_primary
  size: 0x2000
tfm_sram:
  address: 0x20002000
  end_address: 0x2000a000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x8000

sram_nonsecure:
  address: 0x2000a000
  end_address: 0x20080000
  orig_span: &amp;amp;id004
  - sram_primary
  - rpmsg_nrf53_sram
  region: sram_primary
  size: 0x76000
  span: *id004
sram_primary:
  address: 0x2000a000
  end_address: 0x20070000
  region: sram_primary
  size: 0x66000
rpmsg_nrf53_sram:
  address: 0x20070000
  end_address: 0x20080000
  placement:
    before:
    - end
  region: sram_primary
  size: 0x10000

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The linker_arm_extxip.ld is not changed as the offset in ext. flash did not change. The resulting memory report:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;  external_flash (0x800000 - 8192kB): 
+-------------------------------------------------+
| 0x0: mcuboot_secondary (0xe0000 - 896kB)        |
| 0xe0000: mcuboot_secondary_1 (0x40000 - 256kB)  |
| 0x120000: mcuboot_primary_2 (0x40000 - 256kB)   |
| 0x160000: mcuboot_secondary_2 (0x40000 - 256kB) |
| 0x1a0000: external_flash (0x660000 - 6528kB)    |
+-------------------------------------------------+

  flash_primary (0x100000 - 1024kB): 
+--------------------------------------------------+
| 0x0: mcuboot (0x10000 - 64kB)                    |
+---0x10000: mcuboot_primary (0xe0000 - 896kB)-----+
+---0x10000: tfm_secure (0x10000 - 64kB)-----------+
| 0x10000: mcuboot_pad (0x200 - 512B)              |
+---0x10200: mcuboot_primary_app (0xdfe00 - 895kB)-+
| 0x10200: tfm (0xfe00 - 63kB)                     |
+---0x20000: tfm_nonsecure (0xd0000 - 832kB)-------+
| 0x20000: app (0xd0000 - 832kB)                   |
+--------------------------------------------------+
| 0xf0000: settings_storage (0x10000 - 64kB)       |
+--------------------------------------------------+

  otp (0x2fc - 764B): 
+------------------------------+
| 0xff8100: otp (0x2fc - 764B) |
+------------------------------+

  ram_flash (0x40000 - 256kB): 
+------------------------------------------+
| 0x0: mcuboot_primary_1 (0x40000 - 256kB) |
| 0x40000: ram_flash (0x0 - 0B)            |
+------------------------------------------+

  sram_primary (0x80000 - 512kB): 
+------------------------------------------------+
+---0x20000000: mcuboot_sram (0x80000 - 512kB)---+
+---0x20000000: sram_secure (0xa000 - 40kB)------+
| 0x20000000: pcd_sram (0x2000 - 8kB)            |
| 0x20002000: tfm_sram (0x8000 - 32kB)           |
+---0x2000a000: sram_nonsecure (0x76000 - 472kB)-+
| 0x2000a000: sram_primary (0x66000 - 408kB)     |
| 0x20070000: rpmsg_nrf53_sram (0x10000 - 64kB)  |
+------------------------------------------------+

 CPUNET flash_primary (0x40000 - 256kB): 
+--------------------------------------------+
+---0x1000000: b0n_container (0x8800 - 34kB)-+
| 0x1000000: b0n (0x8580 - 33kB)             |
| 0x1008580: provision (0x280 - 640B)        |
+---0x1008800: app (0x37800 - 222kB)---------+
| 0x1008800: hci_ipc (0x37800 - 222kB)       |
+--------------------------------------------+

 CPUNET sram_primary (0x10000 - 64kB): 
+-------------------------------------------+
| 0x21000000: sram_primary (0x10000 - 64kB) |
+-------------------------------------------+&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Unfortunately I still end up with the mcuboot error:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***
I: MCUBOOT main!
I: Starting bootloader ...
I: Image index: 0, Swap type: none
I: Image index: 1, Swap type: none
I: Image index: 2, Swap type: none
E: Unable to find bootable image
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could you have a look what might be wrongly configured? Thank you.&lt;br /&gt;&lt;br /&gt;For bothe the secure and non-secure variants, I have a question on the app image that goes on the external flash. Is this the qspi_flash.hex? When I open this with the desktop programmer, it only shows 9232 bytes while the pm_static.yml seems to reserve 256k. Is there something wrong? (the programmer is showing the correct address 0x1012.0200)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495872?ContentTypeID=1</link><pubDate>Sat, 27 Jul 2024 10:10:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:306f2e9a-47f2-41c9-b895-0d01e763d5a9</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;&lt;br /&gt;Sorry for coming back late ...&lt;br /&gt;&lt;br /&gt;You are right, there is the original &lt;span style="font-family:courier new, courier;"&gt;pm_static.yml&lt;/span&gt; that is reused for the &amp;quot;ns&amp;quot; target.&lt;br /&gt;If I move that aside, and thereby fall-back on the generated &lt;span style="font-family:courier new, courier;"&gt;build/partition.yml&lt;/span&gt;, the build fails (I guess you&amp;#39;re seeing this as well).&lt;br /&gt;At first eye-sight there are considerable differences between the resulting &lt;span style="font-family:courier new, courier;"&gt;build/partition.yml&lt;/span&gt; and that original &lt;span style="font-family:courier new, courier;"&gt;pm_static.yml&lt;/span&gt; for the &amp;quot;ns&amp;quot; target case.&lt;br /&gt;Until now, I&amp;#39;ve not changed this &lt;span style="font-family:courier new, courier;"&gt;pm_static.yml&lt;/span&gt; (e.g. removed the RAM section). I only added &lt;span style="font-family:courier new, courier;"&gt;CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y&lt;/span&gt; to &lt;span style="font-family:courier new, courier;"&gt;boards/nrf5340dk_nrf5340_cpuapp_ns.conf&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;1. I try to see if I can make sense out of these two files and reconcile these.&lt;br /&gt;&lt;br /&gt;2. I would assume that the generated &lt;span style="font-family:courier new, courier;"&gt;build/partition.yml&lt;/span&gt; should not make the build fail. Might this be an issue internal to the NCS and require an internal ticket?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495682?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2024 15:42:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63d07381-3b06-4f39-8284-bb49936c0bfb</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;Are you still using pm_static.yml with removed RAM section or all generated?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495296?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 19:15:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0829451d-5e92-47e4-94c1-1befb1f416af</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;No. I am looking into it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495290?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 18:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:100a5eba-8da7-4978-8c85-244ccd49d8e3</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;&lt;br /&gt;Should I open a new ticket with a question regarding the &amp;quot;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;Unable to find bootable image&lt;/span&gt;&amp;quot;?&lt;br /&gt;&lt;br /&gt;Thank you. Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/495281?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2024 16:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ca5fbb8-b58d-4353-8b92-674b978306ff</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Good to hear that.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/494926?ContentTypeID=1</link><pubDate>Sat, 20 Jul 2024 11:51:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:893cbf59-cf25-4bad-bdce-1c7f9df1f8ac</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;&lt;br /&gt;I got one step further making compilation now succeed. I added to boards/nrf5340dk_nrf5340_cpuapp_ns.conf:&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;CONFIG_MCUBOOT_USE_ALL_AVAILABLE_RAM=y&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;br /&gt;However after flashing, I see an error message from the MCUBOOT:&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Starting bootloader&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 0, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 1, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 2, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;E: Unable to find bootable image&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As a reference, when compiling without TF-M, I see the following:&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Starting bootloader&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 0, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 1, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Image index: 2, Swap type: none&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;I: Bootloader chainload address offset: 0x10000&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;*** Booting nRF Connect SDK v3.5.99-ncs1-1 ***&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;uart:~$ [00:00:00.017,639] &amp;lt;inf&amp;gt; smp_sample: build time: Jul 20 2024 13:43:51&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,449] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,449] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF53x (0x0003)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,479] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 54.58864 Build 1214809870&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,066] &amp;lt;inf&amp;gt; bt_hci_core: Identity: E2:F6:D5:70:CD:18 (random)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,097] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x218f, manufacturer 0x0059&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,127] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0x218f&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.033,020] &amp;lt;inf&amp;gt; smp_bt_sample: Advertising successfully started&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.017,639] &amp;lt;inf&amp;gt; smp_sample: build time: Jul 20 2024 13:43:51&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,449] &amp;lt;inf&amp;gt; bt_hci_core: HW Platform: Nordic Semiconductor (0x0002)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,449] &amp;lt;inf&amp;gt; bt_hci_core: HW Variant: nRF53x (0x0003)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.029,479] &amp;lt;inf&amp;gt; bt_hci_core: Firmware: Standard Bluetooth controller (0x00) Version 54.58864 Build 1214809870&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,066] &amp;lt;inf&amp;gt; bt_hci_core: Identity: E2:F6:D5:70:CD:18 (random)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,097] &amp;lt;inf&amp;gt; bt_hci_core: HCI: version 5.4 (0x0d) revision 0x218f, manufacturer 0x0059&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;[00:00:00.031,127] &amp;lt;inf&amp;gt; bt_hci_core: LMP: version 5.4 (0x0d) subver 0x218f&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;"&gt;&lt;span style="font-size:75%;"&gt;[00:00:00.033,020] &amp;lt;inf&amp;gt; smp_bt_sample: Advertising successfully started&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;francis&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/492726?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2024 13:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7078365-7a75-4ebb-bc47-de29f18e0d10</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;We are currently understaffed due to the summer vacation period, so delayed replies must be expected. I am sorry about any inconvenience this might cause.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/492577?ContentTypeID=1</link><pubDate>Sun, 07 Jul 2024 14:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:245ead9a-1b89-476e-bdc5-2e79b13b9cfc</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;Did you or a colleague have time to further investigate this issue? Thank you!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/490921?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2024 14:30:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbfb5954-b0c9-42cb-9e6b-8afa11d5ca7d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Let me check with the team and back to you when I collect enough information.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/490110?ContentTypeID=1</link><pubDate>Sun, 23 Jun 2024 10:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f126745-e2c0-4681-be41-b06b2ed13b3f</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;/p&gt;
&lt;p&gt;I have found a possible cause but dont know a workaround. Maybe you know or can ask an engineer?&lt;br /&gt;The prj.conf is kept as is. Only the &lt;span style="font-family:courier new, courier;font-size:75%;"&gt;boards/nrf5340dk_nrf5340_cpuapp.conf&lt;/span&gt; and &lt;span style="font-family:courier new, courier;font-size:75%;"&gt;boards/nrf5340dk_nrf5340_cpuapp.overlay&lt;/span&gt; were duplicated in order to create a non-secure (with TF-M) target (as described above).&lt;br /&gt;&lt;br /&gt;There is a difference in the generated linker script when building for secure compared and non-secure which explains the overflow (here&amp;#39;s the diff):&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;diff build/mcuboot/zephyr/linker_zephyr_pre0.cmd build_1/mcuboot/zephyr/linker_zephyr_pre0.cmd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;2c2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;lt; _region_min_align = 32;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;gt; _region_min_align = 4;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;6c6&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM (wx) : ORIGIN = 0x20002000, LENGTH = &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;0x6e000&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RAM (wx) : ORIGIN = 0x20002000, LENGTH = &lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;0x8000&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;234c234&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;lt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __kernel_ram_end = 0x20002000 + 0x6e000;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;---&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __kernel_ram_end = 0x20002000 + 0x8000;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Build_1, for the nrf5340dk_nrf5340_cpuapp&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;_ns&lt;/strong&gt;&lt;/span&gt; has a much smaller RAM size. Further from the map file (build_1/mcuboot/zephyr/zephyr_pre0.map) the overflowing with 277336 bytes can be explained:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt; 0x0000000020002000 _image_ram_start = .&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;... [ removed lines related to .bss and .noinit ] ...&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt; 0x000000002004db58 _image_ram_end = .&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt; 0x000000000004bb58 _image_ram_size = (_image_ram_end - _image_ram_start)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;Substracting from this, the RAM size foreseen by the linker script (0x8000):&lt;br /&gt;&lt;span style="font-family:courier new, courier;font-size:75%;"&gt;277336d = 0x46658 = 0x4bb58 - 0x8000&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;(Might it be related to the flash simulator?)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Apart from the wrong size, I&amp;#39;m also worried about the &lt;strong&gt;&lt;span style="font-family:courier new, courier;"&gt;_region_min_align&lt;/span&gt;&lt;/strong&gt; difference. When compiling for non-secure it is set to only &amp;quot;4&amp;quot;. While the default Nordic sample has set this to 32. Can you find some clarification for this difference as well?&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/div&gt;
&lt;div&gt;francis&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/490054?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 21:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:404bfaae-5df2-4f49-a748-346e9322755d</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello Amanda,&lt;br /&gt;&lt;br /&gt;Thank you. I will reduce a buffer and check if the size of the overflow changed later this weekend.&lt;br /&gt;&lt;br /&gt;Meanwhile, do you mean that the technique for splitting is not supported when using non-secure target (TF-M)? Such restriction is not explicitly mentioned in the Requirements though.&lt;br /&gt;&lt;br /&gt;I took a diff between the secure and non-secure build&amp;#39;s &amp;quot;ninja partition_manager_report&amp;quot;. But that does not show anything obviously wrong (just the expected extra 8k regions related to secure RAM):&lt;br /&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/pastedimage1719003722626v1.png" alt=" " /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/490048?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 19:59:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fecdf2cb-a8a4-406e-a0cc-7189ac600a6c</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suggest that you start by looking at&amp;nbsp;&lt;/span&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/test_and_optimize/optimizing/memory.html"&gt;Memory optimization&lt;/a&gt;&lt;span&gt;&amp;nbsp;and try to reduce some buffers to see if the error reports a smaller overflow. Please be aware that t&lt;/span&gt;he&amp;nbsp;&lt;span&gt;nrf5340dk_nrf5340_cpuapp_ns is not listed in the&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.6.1/page/nrf/samples/nrf5340/extxip_smp_svr/README.html"&gt;Requirements&lt;/a&gt;&amp;nbsp;of the&amp;nbsp;&lt;/span&gt;SMP Server with external XIP sample&lt;span&gt;. That means it might not be supported.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: extxip_smp_srv fails compiling for nrf5340dk non-secure target</title><link>https://devzone.nordicsemi.com/thread/489915?ContentTypeID=1</link><pubDate>Fri, 21 Jun 2024 10:14:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ded2c80-b860-4ab1-9af0-171ed76c5738</guid><dc:creator>franchan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I could solve the error described above by copying the files:&lt;br /&gt;- boards/nrf5340dk_nrf5340_cpuapp.overlay&lt;br /&gt;- boards/nrf5340dk_nrf5340_cpuapp.conf&lt;/p&gt;
&lt;p&gt;as &lt;br /&gt;- boards/nrf5340dk_nrf5340_cpuapp_ns.overlay&lt;br /&gt;- boards/nrf5340dk_nrf5340_cpuapp_ns.conf&lt;br /&gt;&lt;br /&gt;During linking I now run into this error:&lt;br /&gt;/home/dev/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: zephyr/zephyr_pre0.elf section `bss&amp;#39; will not fit in region `RAM&amp;#39;&lt;br /&gt;/home/dev/ncs/toolchains/2be090971e/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `RAM&amp;#39; overflowed by 277336 bytes&lt;br /&gt;collect2: error: ld returned 1 exit status&lt;br /&gt;ninja: build stopped: subcommand failed.&lt;br /&gt;&lt;br /&gt;Is this due to the static pm_static.yml? Any suggestion on how to fix this?&lt;br /&gt;Do _ns targets (TF-M) really need this amount (270k) of additional RAM (or is this a code segment overwriting the RAM segment by a large amount)?&lt;/p&gt;
&lt;p&gt;- I&amp;#39;ve tried to move the entries from build/partitions.yml (there are new entries related to tfm) into the pm_static.yml. But the error is still the same; the RAM is still overflowed by the same amount of bytes (277336).&lt;/p&gt;
&lt;p&gt;- I&amp;#39;ve checked the bss segment in the zephyr_pre0.elf; only 2831h&lt;/p&gt;
&lt;p&gt;&amp;nbsp; [Nr] Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Off&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp;&amp;nbsp; ES Flg Lk Inf Al&lt;br /&gt;&amp;nbsp; [32] bss&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NOBITS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 200029e8 021a38 002831 00&amp;nbsp; WA&amp;nbsp; 0&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 8&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you!&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;francis&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>