<?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>Problem building project in nRF9160DK (error: static assertion failed: &amp;quot;The libmodem shmem configuration exceeds the range of memory readable by the Modem core&amp;quot;)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84042/problem-building-project-in-nrf9160dk-error-static-assertion-failed-the-libmodem-shmem-configuration-exceeds-the-range-of-memory-readable-by-the-modem-core</link><description>Hi. 
 We are working on a project which uses nrF9160DK and nRF5340DK, which works fine on this last one. The problem is that when I tried building on the 9160 using nRF Connect SDK (1.8.0), the following error appears: 
 
 FAILED: modules/nrf/lib/nrf_modem_lib</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 May 2022 11:22:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84042/problem-building-project-in-nrf9160dk-error-static-assertion-failed-the-libmodem-shmem-configuration-exceeds-the-range-of-memory-readable-by-the-modem-core" /><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/366189?ContentTypeID=1</link><pubDate>Wed, 04 May 2022 11:22:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:721096cf-7475-4dae-b0b0-117f091032dc</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Then you can add a pm_static.yml to the application folder where you specify the location of the modem lib shared memory.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/365483?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 19:11:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:560bb84d-3289-4711-89da-74a2b0e7e304</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Only pm.yml file is the one I indicated in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/84042/problem-building-project-in-nrf9160dk-error-static-assertion-failed-the-libmodem-shmem-configuration-exceeds-the-range-of-memory-readable-by-the-modem-core/356085#356085"&gt;reply&lt;/a&gt; before, which just specifies spm and spm_ram regions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/360948?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 08:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5c40578-de59-4d5d-b422-3990ff33f06b</guid><dc:creator>Hakon</dc:creator><description>[quote user="MarioDLH"]How should I proceed in order to modify that before building?[/quote]
&lt;p&gt;That is usually done with a pm_static.yml or pm.yml file? Are you sure you don&amp;#39;t have any of these in your application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/359336?ContentTypeID=1</link><pubDate>Tue, 22 Mar 2022 10:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b27cb66-f543-4662-b39f-94e98092fa1b</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;But I&amp;#39;m not including the modem lib in the project, and as far as I know partitions.yml is generated automatically when building using the SDK. How should I proceed in order to modify that before building?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/359183?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 14:47:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95c1d7ee-3850-4270-b2d4-6a6b63d70a0a</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;You need to place the modem lib shared memory region in the first half of the SRAM. This is specified in the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/nrf_modem/doc/architecture.html#shared-memory-configuration"&gt;modem lib documentation&lt;/a&gt;;&lt;/p&gt;
&lt;p&gt;&amp;quot;The shared memory area can be located anywhere within the first 128 kilobytes of RAM (lowest addresses)...&amp;quot;&lt;/p&gt;
&lt;p&gt;You are placing it in the second half which should not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/358033?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 15:50:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aff708a5-f862-4462-8b2d-4993735f16a8</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Here it is:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x20000
  end_address: 0x100000
  region: flash_primary
  size: 0xe0000
nrf_modem_lib_ctrl:
  address: 0x20021000
  end_address: 0x200214e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - spm_sram
    - start
  region: sram_primary
  size: 0x4e8
nrf_modem_lib_rx:
  address: 0x200234e8
  end_address: 0x200254e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_tx
  region: sram_primary
  size: 0x2000
nrf_modem_lib_sram:
  address: 0x20021000
  end_address: 0x200254e8
  orig_span: &amp;amp;id001
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x44e8
  span: *id001
nrf_modem_lib_tx:
  address: 0x200214e8
  end_address: 0x200234e8
  inside:
  - sram_nonsecure
  placement:
    after:
    - nrf_modem_lib_ctrl
  region: sram_primary
  size: 0x2000
otp:
  address: 0xff8108
  end_address: 0xff83fc
  region: otp
  size: 0x2f4
spm:
  address: 0x0
  end_address: 0x20000
  placement:
    before:
    - app
  region: flash_primary
  size: 0x20000
spm_sram:
  address: 0x20000000
  end_address: 0x20021000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x21000
sram_nonsecure:
  address: 0x20021000
  end_address: 0x20040000
  orig_span: &amp;amp;id002
  - sram_primary
  - nrf_modem_lib_ctrl
  - nrf_modem_lib_tx
  - nrf_modem_lib_rx
  region: sram_primary
  size: 0x1f000
  span: *id002
sram_primary:
  address: 0x200254e8
  end_address: 0x20040000
  region: sram_primary
  size: 0x1ab18
sram_secure:
  address: 0x20000000
  end_address: 0x20021000
  orig_span: &amp;amp;id003
  - spm_sram
  region: sram_primary
  size: 0x21000
  span: *id003
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/357960?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 13:24:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dfdd5729-cffe-4d60-868e-d0dc674e4322</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Can you also send the one for the nrf9160 build?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/356841?ContentTypeID=1</link><pubDate>Tue, 08 Mar 2022 10:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf3ec631-ace3-4c92-99fc-068c9ba67be9</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Here is the content of the file in the nrf5340 build folder:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app:
  address: 0x20000
  end_address: 0x100000
  region: flash_primary
  size: 0xe0000
otp:
  address: 0xff8100
  end_address: 0xff83fc
  region: otp
  size: 0x2fc
spm:
  address: 0x0
  end_address: 0x20000
  placement:
    before:
    - app
  region: flash_primary
  size: 0x20000
spm_sram:
  address: 0x20000000
  end_address: 0x20021000
  inside:
  - sram_secure
  placement:
    after:
    - start
  region: sram_primary
  size: 0x21000
sram_nonsecure:
  address: 0x20021000
  end_address: 0x20080000
  orig_span: &amp;amp;id001
  - sram_primary
  region: sram_primary
  size: 0x5f000
  span: *id001
sram_primary:
  address: 0x20021000
  end_address: 0x20080000
  region: sram_primary
  size: 0x5f000
sram_secure:
  address: 0x20000000
  end_address: 0x20021000
  orig_span: &amp;amp;id002
  - spm_sram
  region: sram_primary
  size: 0x21000
  span: *id002
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/356344?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2022 14:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c893cdce-bb31-40c0-b287-6d269b723b68</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;This one seems to be for spm. Can you post the partitions.yml file located in the build folder?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/356085?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 14:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e92ef7eb-a748-48b2-87eb-bd38731316c4</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;If you are referring to pm.yml, it&amp;#39;s &lt;a href="https://github.com/decentralizedsecurity/bls-hsm/blob/main/secure_module/zephyr/spm/pm.yml"&gt;this one&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/356077?ContentTypeID=1</link><pubDate>Thu, 03 Mar 2022 13:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c27fad45-95ba-43a1-84ce-1575eb31d6f9</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Can you post the partitions.yml or pm_static.yml?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/354873?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 16:55:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12e335b3-9075-4fab-8a1f-dffb16318302</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Because that&amp;#39;s how it is indicated in the&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;guide&lt;/a&gt;&amp;nbsp;I followed in order to have part of the project in the secure side. Also, as I said, it works fine building for non-secure with nRF5340. The missing libraries are probably from&amp;nbsp;&lt;a href="https://github.com/supranational/blst/tree/master"&gt;blst repository&lt;/a&gt;. There are instructions on our readme to build them, but I can clarify the process if it is still needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/354865?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 15:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb1ae9e0-d648-4e48-9f80-72bdaee666dc</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Why are you building with CONFIG_SPM=y if you are building for non-secure? Also, I&amp;#39;m not able to build your code as I seem to be missing some 3rd party libraries.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/353685?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 16:04:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3962bdee-4ddc-418f-973f-37b1672d303a</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;For non-secure, as I do with nRF5340.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/353621?ContentTypeID=1</link><pubDate>Thu, 17 Feb 2022 13:11:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:508ad47a-627c-4bd2-90f9-ae3347ee009d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Do you build for secure or non-secure board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/353435?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 16:02:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac2b47cc-7961-412b-a3c9-24f0aeae0d6c</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t look like you are including the modem lib in the application at all, so it&amp;#39;s strange that you get the assert in the modem lib.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/351873?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 15:20:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35147540-b661-4eca-b801-4bd0924dac9c</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Sure, all the dependencies are uploaded on this &lt;a href="https://github.com/decentralizedsecurity/bls-hsm/tree/main/cli"&gt;Github repo&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/351780?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 12:08:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:595625ed-098d-42b6-8c3c-132a2af5560f</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Can you include your project here with prj.conf and source files, so I can have a look?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/350409?ContentTypeID=1</link><pubDate>Mon, 31 Jan 2022 12:12:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4489782b-8967-4a15-a394-c5b676fb463d</guid><dc:creator>MarioDLH</dc:creator><description>&lt;p&gt;Samples work fine. The problem is with our application, which is based on the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/shell/index.html"&gt;shell sample&lt;/a&gt;&amp;nbsp;and was modified following this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;guide&lt;/a&gt;&amp;nbsp;in order to run certain parts of the code on the secure side. This also can be built without problems in nRF5340 board, but not on the nRF9160.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem building project in nRF9160DK (error: static assertion failed: "The libmodem shmem configuration exceeds the range of memory readable by the Modem core")</title><link>https://devzone.nordicsemi.com/thread/350333?ContentTypeID=1</link><pubDate>Sun, 30 Jan 2022 16:31:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0cf8dc2-52b8-448e-b320-0c90cdcfeb76</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;which application are you trying to build? Is it an SDK sample or custom application? Does every sample fail to build in the same manner?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>