<?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>Flash overflow?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109643/flash-overflow</link><description>Hello, 
 I&amp;#39;m trying to merge together a couple of sample projects to make a prototype (in particular, the LTE-BLE gateway, and AWS-IoT samples) - to run on the nRF 9160DK 
 When I try and compile, I get the following errors: 
 /opt/nordic/ncs/toolchains</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 May 2024 04:19:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109643/flash-overflow" /><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486765?ContentTypeID=1</link><pubDate>Fri, 31 May 2024 04:19:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86c72d40-1216-4bb4-a73a-4a81c01ad42f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;That should not be, SW10 is only debug multiplexer switch. It does not behave the same way like your at my end with that switch.&lt;/p&gt;
&lt;p&gt;What is the full version of the nrf9160DK you have? I am using PCA10090v1.1.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486715?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 14:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a0770ea-0a2c-4ff2-aa66-28fd74d3e8ef</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi Susheel - I had already tried this based on previous guidance in this thread&lt;/p&gt;
&lt;p&gt;I think I might have found the issue... if I have SW10 on my 9160DK set to nRF91, I get the failure. When I switch it over to nRF52, it seems to work!&lt;/p&gt;
&lt;p&gt;Why would this be? It doesn&amp;#39;t make sense to me&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486630?ContentTypeID=1</link><pubDate>Thu, 30 May 2024 10:46:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b5982ae-ef6e-4183-9993-b0d9349c2af2</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks that you and me both were only flashing only nRf91 core and not the other core.&lt;/p&gt;
&lt;p&gt;AS mentioned here in &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/samples/cellular/lte_ble_gateway/README.html#programming-the-sample"&gt;programming this sample&lt;/a&gt;, you need to change the switch and program &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.5.2/nrf/samples/bluetooth/hci_lpuart/README.html#bluetooth-hci-lpuart-sample"&gt;HCI LPUART&lt;/a&gt;&amp;nbsp;on nRF52 core to get a HCI response for the command. Right now it is timing out and creating a controlled hardfault exception.&lt;/p&gt;
&lt;p&gt;We both overlooked the opcode in the error message and did not see that this hardfault was a controlled exception. The BLE team have taken the feedback to improve the logs to give little more informative message so that our first instinct is not to panic looking at the hardfault and focus more on the opcode that caused it.&lt;/p&gt;
&lt;p&gt;Try flashing HCI LPUART code to nRF52 chip and you will see this problem goes away.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486396?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 11:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8693b436-f3fd-4305-b0c1-70117670bd59</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;One of my colleagues who is an expert in debugging this has offered to assist in this. He will try to reproduce and see if he can find more insights on why this is happening.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486301?ContentTypeID=1</link><pubDate>Wed, 29 May 2024 06:54:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0bc686-c5b2-42f4-b42d-5bf8c6375f7a</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi Susheel - thank you.&lt;/p&gt;
&lt;p&gt;I am still having this issue - so please continue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486020?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 12:25:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb4008f-f8e1-47a6-a899-58ad455b65c3</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;BTW, if you have progressed away from this error then please let me know, so that I do not spend time on an issue that you already fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/486019?ContentTypeID=1</link><pubDate>Mon, 27 May 2024 12:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67915d2d-fb0f-43f1-add0-13fdf47ec4d7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I can reproduce the error you mentioned.&lt;/p&gt;
&lt;p&gt;I see that the faulting address on mine is&amp;nbsp;0x0001f458.&lt;/p&gt;
&lt;p&gt;Doing and addr2line shows this&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;$ arm-none-eabi-addr2line -e E:\ncs\v2.6.0\nrf\samples\cellular\324344\build\zephyr\zephyr.elf -a 0x0001f458
0x0001f458
E:/ncs/v2.6.0/zephyr/subsys/bluetooth/host/hci_core.c:333 (discriminator 3)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This seems like a corrupt stack that means that the hardfault log info cannot be trusted.&lt;/p&gt;
&lt;p&gt;I am trying to enable Thread Analyzer to see if it gives any more info than basic hardfault. Will be back to you soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/482983?ContentTypeID=1</link><pubDate>Mon, 13 May 2024 09:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e843f46-452c-491c-87cc-c331562a1881</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi - please see attached&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260_5F00_with_5F00_ble_5F00_scan-2.zip"&gt;devzone.nordicsemi.com/.../aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260_5F00_with_5F00_ble_5F00_scan-2.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/482765?ContentTypeID=1</link><pubDate>Fri, 10 May 2024 10:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b056bf00-a84c-47f5-9f39-b1e5e6d2cbb7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please give me your project, so that I can test it at my end to see if I can get more debug data out?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/482456?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 09:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dea325e-459c-4764-bef0-ad276a7ac69c</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi - I included the four lines in pros.conf as instructed - but I don&amp;#39;t seem to be getting any of the messages - I assume I would see them in the serial monitor?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/482427?ContentTypeID=1</link><pubDate>Wed, 08 May 2024 07:17:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e19e1ae-680c-46b1-bb4a-f5a3bf3899e8</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I requested you to enable the thread &lt;a href="https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html"&gt;analyzer &lt;/a&gt;and monitor aswell, This should throw some logs onto the serial log terminal. Can you show me what the thread analyzer shows on each thread&amp;#39;s stack usage? It is possible that sometime the neighboring rogue thread can cause a stack corruption in a well behaved thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/482279?ContentTypeID=1</link><pubDate>Tue, 07 May 2024 12:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c950f8c-70af-45b5-b262-219b3eb64295</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi - sorry for the delay&lt;/p&gt;
&lt;p&gt;I tried again and made sure I clicked &amp;#39;save to file&amp;#39; - it tells me that it to&amp;nbsp;/build/zephyr/.config&lt;/p&gt;
&lt;p&gt;I can verify that this worked by inspection of that file, and because VS Code says &amp;#39;In build: 8192&amp;#39; if I try to add CONFIG_MAIN_STACK_SIZE manually to prj.conf&lt;/p&gt;
&lt;p&gt;I still get the exact same error when I run the code!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/481444?ContentTypeID=1</link><pubDate>Thu, 02 May 2024 07:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50b438f3-9990-4f55-9ba4-aaa68f35a1b0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Not sure if you have that much amount of RAM left to reserve for stack for main thread. I would normally &lt;strong&gt;increase&lt;/strong&gt; it by 1024 or 2048 bytes at a time. Set to probably 8096 and not to 32k. Did you click on the &lt;strong&gt;&amp;quot;save to file&amp;quot;&amp;nbsp;&lt;/strong&gt;button on the top right corner?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/481252?ContentTypeID=1</link><pubDate>Tue, 30 Apr 2024 10:44:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db690442-594b-469e-ad44-33ed30c6c3cb</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;That doesn&amp;#39;t seem to be working :-(&lt;/p&gt;
&lt;p&gt;Is this the right place to set this?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_04_2D00_30-at-11.42.43.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/481031?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 09:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10c1c6e3-32df-42bc-a259-4073b373704e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;This seems like a hardfault on stack over on main thread. Have you tried to increase the &lt;a href="https://docs.zephyrproject.org/2.7.0/reference/kconfig/CONFIG_MAIN_STACK_SIZE.html#config-main-stack-size"&gt;CONFIG_MAIN_STACK_SIZE&lt;/a&gt;&amp;nbsp;in your prj.conf?&lt;/p&gt;
&lt;p&gt;If you are using or &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Connect-for-VS-Code"&gt;nRF extension on Visual Studio code&amp;nbsp;&lt;/a&gt;&amp;nbsp;you can see the &lt;a href="https://nrfconnect.github.io/vscode-nrf-connect/reference/ui_kconfig.html"&gt;GUI for KConfig&lt;/a&gt;&amp;nbsp;and increase the value of the main stack to see if this issue gets solved.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, It is a good idea to enable the &lt;a href="https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html"&gt;Thread_Analyzer&lt;/a&gt;&amp;nbsp;while in development phase of your project to have.a good idea on the stack usage on threads you are using in your sofware delevelopment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/481006?ContentTypeID=1</link><pubDate>Mon, 29 Apr 2024 08:27:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b475d492-fd92-4c5b-b946-c1ef412d80c6</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi Susheel - thank you for the reply.&lt;/p&gt;
&lt;p&gt;Is this what you need to see?:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331
        command opcode 0x0c03 timeout with err -11
[00:00:10.267,791] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x00000002  r2/a3:  0x00000001
[00:00:10.267,791] &amp;lt;err&amp;gt; os: r3/a4:  0x0000014b r12/ip:  0x00000004 r14/lr:  0x00028e11
[00:00:10.267,822] &amp;lt;err&amp;gt; os:  xpsr:  0x41000000
[00:00:10.267,822] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00028e1c
[00:00:10.267,883] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[00:00:10.267,913] &amp;lt;err&amp;gt; os: Current thread: 0x20010ec0 (main)
[00:00:10.323,974] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/480864?ContentTypeID=1</link><pubDate>Fri, 26 Apr 2024 10:57:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3744bea-4455-446b-bce5-f1b2839207fb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It might help to get the current thread context that is calling the HCI functionality here.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you please enable the below in your prj.conf file, compile and rerun the firmware and give us the assert handler&amp;nbsp;and serial logs details here? That will help understand the context more.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_THREAD_ANALYZER=y
CONFIG_THREAD_NAME=y
CONFIG_THREAD_MONITOR=y
CONFIG_DEBUG_OPTIMIZATIONS=y
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/480250?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2024 14:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bb093aa-3eae-4816-bdc9-85a13f049805</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi Michal - have you had a chance to get up-to-speed with this one yet?&lt;/p&gt;
&lt;p&gt;Let me try and help by summarising&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I am working on a project based on the AWS_IoT sample
&lt;ul&gt;
&lt;li&gt;nRF9160 DK / nRF Connect SDK v2.6.0&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;I am trying to add BLE functionality to the sample
&lt;ul&gt;
&lt;li&gt;I just need to be able to scan for BLE advertisements&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;I am now able to add&amp;nbsp;the BLE via kconfig and compile the code&lt;/li&gt;
&lt;li&gt;If I try to actually perform a BLE function (i.e. a scan), I get the following error:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Ben&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/478880?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2024 07:48:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b4b3526-2af6-419c-b633-6d5a40d4639d</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello Ben,&lt;/p&gt;
&lt;p&gt;I took over the case since my colleague is currently unavailable, but it will take me a bit to understand the background and the issue.&lt;/p&gt;
&lt;p&gt;Sorry for the delays and thank you for your patience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/478107?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2024 14:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:906ae654-c251-4c0f-aafa-d108d680b70b</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi - do you get the same issue if you build/run this code?&lt;/p&gt;
&lt;p&gt;I know that the hci_lpuart is successfully running on the nRF52, as I can run other BLE apps (i.e. a project I&amp;#39;ve made based on LTE-BLE gateway sample)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/477358?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 14:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13e03480-ac77-489a-8c53-e48c9fbaccc4</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Hi - yes, I&amp;#39;ve built and flashed the hci_lpuart sample to the nRF52 - but I&amp;#39;m still getting the same issue:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK d96769faceca ***
[00:00:00.253,631] &amp;lt;inf&amp;gt; aws_iot_sample: The AWS IoT sample started, version: v1.0.0
Initialising BLE
ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331
        command opcode 0x0c03 timeout with err -11
[00:00:10.264,129] &amp;lt;err&amp;gt; os: r0/a1:  0x00000003  r1/a2:  0x00000000  r2/a3:  0x00000002
[00:00:10.264,160] &amp;lt;err&amp;gt; os: r3/a4:  0x2000d4a0 r12/ip:  0x00000010 r14/lr:  0x0001f625
[00:00:10.264,160] &amp;lt;err&amp;gt; os:  xpsr:  0x41000000
[00:00:10.264,160] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0001f630
[00:00:10.264,221] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 3: Kernel oops on CPU 0
[00:00:10.264,251] &amp;lt;err&amp;gt; os: Current thread: 0x20010b90 (unknown)
[00:00:10.320,587] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/477309?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2024 12:29:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db5413f0-f05e-47e6-a4b4-d5191bf1803a</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
[quote user="BenA"]&lt;p&gt;I can successfully build the project you shared. I tried adding simple BLE scanning, but I&amp;#39;m getting the following error:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331
&lt;p&gt;&amp;nbsp;I guess this is another configuration I need to set somewhere?&lt;/p&gt;[/quote]
&lt;p&gt;Have you flashed the HCI application onto the nRF52840 device on the DK? If not, that would be the problem. The design is that the nRF9160 will run only the BLE Host application, and the nRF52840 will run the BLE Controller application.&lt;/p&gt;
&lt;p&gt;Please refer to the documentation of &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/samples/cellular/lte_ble_gateway/README.html"&gt;the LTE BLE Gateway sample&lt;/a&gt;&amp;nbsp;for more information.&lt;/p&gt;
[quote user="BenA"]&lt;p&gt;On another note - I don&amp;#39;t quite understand how you&amp;#39;ve added the BLE to the config - as kconfig parameters such as&amp;nbsp;CONFIG_BT=y are in a separate .conf file.&lt;/p&gt;
&lt;p&gt;I added them to the main prj.conf for the purposes of this build - but am I missing something? How to I tell it to also read lte_ble_gateway.conf?&lt;/p&gt;[/quote]
&lt;p&gt;You guessed right. The&amp;nbsp;other .conf file can be included in the build.&lt;/p&gt;
&lt;p&gt;If you are building from the command line with &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;west&lt;/span&gt;, refer to this guide:&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/zephyr/develop/application/index.html#important-build-system-variables"&gt;Application Development — Zephyr Project documentation (nRF Connect SDK) (nordicsemi.com)&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are building with the nRF Connect for VS Code&amp;nbsp;Extension, you can specify additional .conf file to be included&amp;nbsp;in a build configuration:&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/pastedimage1712320033646v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;You might also want to know that the nRF Connect SDK also include a solution for &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.6.0/nrf/config_and_build/config_and_build_system.html#custom-build-types"&gt;different &amp;quot;build types&amp;quot;&lt;/a&gt;&amp;nbsp;that makes use of different .conf files. However, that&amp;#39;s not what I am using here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/477192?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2024 17:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f64a750-c1c0-4d11-ad18-3375e2782c34</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Thanks Hieu,&lt;/p&gt;
&lt;p&gt;I can successfully build the project you shared. I tried adding simple BLE scanning, but I&amp;#39;m getting the following error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ASSERTION FAIL [err == 0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/hci_core.c:331&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I guess this is another configuration I need to set somewhere?&lt;/p&gt;
&lt;p&gt;On another note - I don&amp;#39;t quite understand how you&amp;#39;ve added the BLE to the config - as kconfig parameters such as&amp;nbsp;CONFIG_BT=y are in a separate .conf file.&lt;/p&gt;
&lt;p&gt;I added them to the main prj.conf for the purposes of this build - but am I missing something? How to I tell it to also read lte_ble_gateway.conf?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260_5F00_with_5F00_ble_5F00_scan.zip"&gt;devzone.nordicsemi.com/.../aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260_5F00_with_5F00_ble_5F00_scan.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/476707?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 22:20:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1127e70f-2596-4767-8c29-0709071e76c4</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Ben,&lt;/p&gt;
&lt;p&gt;Sorry for the long wait. We have had the Easter holiday.&lt;/p&gt;
&lt;p&gt;From your build log, the failure happened during the application compilation,&amp;nbsp;but I can&amp;#39;t see any further what the problem could be.&lt;/p&gt;
&lt;p&gt;Here is my project. I&amp;nbsp;used nRF Connect SDK v2.6.0, but there shouldn&amp;#39;t be much difference. Please let me know if you need v2.5.2 specifically.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260.zip"&gt;devzone.nordicsemi.com/.../aws_5F00_iot_5F00_add_5F00_lte_5F00_ble_5F00_gateway_5F00_260.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flash overflow?</title><link>https://devzone.nordicsemi.com/thread/476484?ContentTypeID=1</link><pubDate>Tue, 02 Apr 2024 09:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:baedfb9e-a1f0-400e-b646-6dd897a22b3e</guid><dc:creator>BenA</dc:creator><description>&lt;p&gt;Here is the full build output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
 *  Executing task: nRF Connect: Generate config nrf9160dk_nrf9160_ns for /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo 

Building edge-plus-iot-demo
west build --build-dir /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo --pristine --board nrf9160dk_nrf9160_ns --no-sysbuild -- -DNCS_TOOLCHAIN_VERSION=NONE -DBOARD_ROOT=/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo

-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo
-- CMake version: 3.20.5
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/benaskem/Library/Caches/zephyr
-- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf9160dk_nrf9160_ns, Revision: 0.14.0
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns.dts
-- Found devicetree overlay: /opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Found devicetree overlay: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/boards/nrf9160dk_nrf9160_ns.overlay
-- Found devicetree overlay: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/boards/nrf9160dk_nrf9160_ns_0_14_0.overlay
-- Generated zephyr.dts: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/dts.cmake

warning: Experimental symbol TFM_EXPERIMENTAL is enabled.


warning: Experimental symbol NET_CONNECTION_MANAGER is enabled.

Parsing /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_ns_defconfig&amp;#39;
Merged configuration &amp;#39;/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/prj.conf&amp;#39;
Merged configuration &amp;#39;/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/boards/nrf9160dk_nrf9160_ns.conf&amp;#39;
Configuration saved to &amp;#39;/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/python@3.9/bin/python3.9 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 
Changed board to secure nrf9160dk_nrf9160 (NOT NS)

=== child image mcuboot -  begin ===
loading initial cache file /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/child_image_preload.cmake
Loading Zephyr default modules (Zephyr base).
-- Application: /opt/nordic/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.20.5
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/benaskem/Library/Caches/zephyr
-- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf9160dk_nrf9160, Revision: 0.14.0
-- Found host-tools: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk)
-- Found Dtc: /opt/nordic/ncs/toolchains/20d68df7e5/bin/dtc (found suitable version &amp;quot;1.6.1&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;) 
-- Found BOARD.dts: /opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160.dts
-- Found devicetree overlay: /opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_0_14_0.overlay
-- Found devicetree overlay: /opt/nordic/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/app.overlay
-- Generated zephyr.dts: /Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/include/generated/devicetree_generated.h
-- Including generated dts.cmake file: /Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/dts.cmake
Parsing /opt/nordic/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/Kconfig
Loaded configuration &amp;#39;/opt/nordic/ncs/v2.5.2/zephyr/boards/arm/nrf9160dk_nrf9160/nrf9160dk_nrf9160_defconfig&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.5.2/bootloader/mcuboot/boot/zephyr/prj.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.5.2/nrf/modules/mcuboot/tfm.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.5.2/nrf/modules/mcuboot/fih_low_enable.conf&amp;#39;
Merged configuration &amp;#39;/opt/nordic/ncs/v2.5.2/nrf/subsys/partition_manager/partition_manager_enabled.conf&amp;#39;
Merged configuration &amp;#39;/Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/misc/generated/extra_kconfig_options.conf&amp;#39;
Configuration saved to &amp;#39;/Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/.config&amp;#39;
Kconfig header saved to &amp;#39;/Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot/zephyr/include/generated/autoconf.h&amp;#39;
-- Found GnuLd: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd (found version &amp;quot;2.38&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
MCUBoot bootloader key file: /opt/nordic/ncs/v2.5.2/bootloader/mcuboot/root-ec-p256.pem
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/benaskem/Documents/nrF_Connect_SDK/git/edge-plus-iot-demo/build/mcuboot
=== child image mcuboot -  end ===

CMake Warning at /opt/nordic/ncs/v2.5.2/nrf/modules/mcuboot/CMakeLists.txt:320 (message):
  

          ---------------------------------------------------------
          --- WARNING: Using default MCUBoot key, it should not ---
          --- be used for production.                           ---
          ---------------------------------------------------------
          



CMake Warning at /opt/nordic/ncs/v2.5.2/zephyr/CMakeLists.txt:1958 (message):
  __ASSERT() statements are globally ENABLED


CMake Warning at /opt/nordic/ncs/v2.5.2/nrf/cmake/partition_manager.cmake:79 (message):
  

          ---------------------------------------------------------------------
          --- WARNING: Using a bootloader without pm_static.yml.            ---
          --- There are cases where a deployed product can consist of       ---
          --- multiple images, and only a subset of these images can be     ---
          --- upgraded through a firmware update mechanism. In such cases,  ---
          --- the upgradable images must have partitions that are static    ---
          --- and are matching the partition map used by the bootloader     ---
          --- programmed onto the device.                                   ---
          ---------------------------------------------------------------------
          

Call Stack (most recent call first):
  /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/kernel.cmake:247 (include)
  /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/zephyr_default.cmake:138 (include)
  /opt/nordic/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  /opt/nordic/ncs/v2.5.2/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


Dropping partition &amp;#39;nonsecure_storage&amp;#39; since it is empty.
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build
-- west build: building application
[1/449] Preparing syscall dependency handling

[1/182] Preparing syscall dependency handling

[11/182] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr), build: 4b5ef270413a
[182/182] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       31254 B        48 KB     63.59%
             RAM:       16368 B        88 KB     18.16%
        IDT_LIST:          0 GB         2 KB      0.00%
[13/449] Generating include/generated/version.h
-- Zephyr version: 3.4.99 (/opt/nordic/ncs/v2.5.2/zephyr), build: 4b5ef270413a
[14/449] Generating ../../tfm/CMakeCache.txt
CMake Warning at cmake/version.cmake:22 (message):
  Actual TF-M version is not available from Git repository.  Settled to
  v1.8.0
Call Stack (most recent call first):
  CMakeLists.txt:22 (include)


-- Found Git: /opt/nordic/ncs/toolchains/20d68df7e5/bin/git (found version &amp;quot;2.37.3&amp;quot;) 
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/python@3.9/bin/python3.9 (found version &amp;quot;3.9.6&amp;quot;) found components: Interpreter 
CMake Deprecation Warning at /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  &amp;#39;PYTHON_PREFER&amp;#39; variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/python.cmake:16 (find_package)
  /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/user_cache.cmake:30 (include)
  /opt/nordic/ncs/v2.5.2/zephyr/cmake/modules/extensions.cmake:5 (include)
  /opt/nordic/ncs/v2.5.2/nrf/subsys/nrf_security/tfm/CMakeLists.txt:36 (include)


-- Found Python3: /opt/nordic/ncs/toolchains/20d68df7e5/opt/python@3.9/bin/python3.9 (found suitable version &amp;quot;3.9.6&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter 
-- Cache files will be written to: /Users/benaskem/Library/Caches/zephyr
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/tfm
[205/209] Linking C executable bin/tfm_s.axf
Memory region         Used Size  Region Size  %age Used
           FLASH:      129932 B     261632 B     49.66%
             RAM:       52788 B        88 KB     58.58%
[24/449] Performing install step for &amp;#39;tfm&amp;#39;
-- Install configuration: &amp;quot;MinSizeRel&amp;quot;
[109/449] Building C object CMakeFiles/app.dir/src/ble.c.obj
In file included from ../src/ble.c:2:
../src/edge.h:52:25: warning: &amp;#39;key_handle&amp;#39; defined but not used [-Wunused-variable]
   52 | static psa_key_handle_t key_handle;
      |                         ^~~~~~~~~~
../src/edge.h:50:16: warning: &amp;#39;m_decrypted_text&amp;#39; defined but not used [-Wunused-variable]
   50 | static uint8_t m_decrypted_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE];
      |                ^~~~~~~~~~~~~~~~
../src/edge.h:49:16: warning: &amp;#39;m_encrypted_text&amp;#39; defined but not used [-Wunused-variable]
   49 | static uint8_t m_encrypted_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE];
      |                ^~~~~~~~~~~~~~~~
../src/edge.h:45:16: warning: &amp;#39;m_plain_text&amp;#39; defined but not used [-Wunused-variable]
   45 | static uint8_t m_plain_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE] = {
      |                ^~~~~~~~~~~~
[116/449] Building C object CMakeFiles/app.dir/src/main.c.obj
In file included from ../src/main.c:13:
../src/edge.h:52:25: warning: &amp;#39;key_handle&amp;#39; defined but not used [-Wunused-variable]
   52 | static psa_key_handle_t key_handle;
      |                         ^~~~~~~~~~
../src/edge.h:50:16: warning: &amp;#39;m_decrypted_text&amp;#39; defined but not used [-Wunused-variable]
   50 | static uint8_t m_decrypted_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE];
      |                ^~~~~~~~~~~~~~~~
../src/edge.h:49:16: warning: &amp;#39;m_encrypted_text&amp;#39; defined but not used [-Wunused-variable]
   49 | static uint8_t m_encrypted_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE];
      |                ^~~~~~~~~~~~~~~~
../src/edge.h:45:16: warning: &amp;#39;m_plain_text&amp;#39; defined but not used [-Wunused-variable]
   45 | static uint8_t m_plain_text[NRF_CRYPTO_EXAMPLE_AES_MAX_TEXT_SIZE] = {
      |                ^~~~~~~~~~~~
[435/449] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map 
: &amp;amp;&amp;amp; ccache /opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc  -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf  -fuse-ld=bfd  -T  zephyr/linker_zephyr_pre0.cmd  -Wl,-Map=/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr/zephyr_pre0.map  -Wl,--whole-archive  app/libapp.a  zephyr/libzephyr.a  zephyr/arch/common/libarch__common.a  zephyr/arch/arch/arm/core/aarch32/libarch__arm__core__aarch32.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/libarch__arm__core__aarch32__cortex_m.a  zephyr/arch/arch/arm/core/aarch32/cortex_m/cmse/libarch__arm__core__aarch32__cortex_m__cmse.a  zephyr/arch/arch/arm/core/aarch32/mpu/libarch__arm__core__aarch32__mpu.a  zephyr/lib/libc/picolibc/liblib__libc__picolibc.a  zephyr/lib/libc/common/liblib__libc__common.a  zephyr/soc/soc/arm/common/cortex_m/libsoc__arm__common__cortex_m.a  zephyr/boards/arm/nrf9160dk_nrf9160/libboards__arm__nrf9160dk_nrf9160.a  zephyr/subsys/random/libsubsys__random.a  zephyr/subsys/bluetooth/common/libsubsys__bluetooth__common.a  zephyr/subsys/bluetooth/host/libsubsys__bluetooth__host.a  zephyr/subsys/dfu/boot/libsubsys__dfu__boot.a  zephyr/subsys/net/libsubsys__net.a  zephyr/subsys/net/l2/offloaded_netdev/libsubsys__net__l2__offloaded_netdev.a  zephyr/subsys/net/ip/libsubsys__net__ip.a  zephyr/subsys/net/lib/mqtt/libsubsys__net__lib__mqtt.a  zephyr/subsys/net/lib/http/libsubsys__net__lib__http.a  zephyr/subsys/net/conn_mgr/libsubsys__net__conn_mgr.a  zephyr/drivers/bluetooth/libdrivers__bluetooth.a  zephyr/drivers/clock_control/libdrivers__clock_control.a  zephyr/drivers/console/libdrivers__console.a  zephyr/drivers/entropy/libdrivers__entropy.a  zephyr/drivers/flash/libdrivers__flash.a  zephyr/drivers/gpio/libdrivers__gpio.a  zephyr/drivers/hwinfo/libdrivers__hwinfo.a  zephyr/drivers/pinctrl/libdrivers__pinctrl.a  zephyr/drivers/serial/libdrivers__serial.a  zephyr/drivers/timer/libdrivers__timer.a  modules/nrf/lib/nrf_modem_lib/lib..__nrf__lib__nrf_modem_lib.a  modules/nrf/lib/dk_buttons_and_leds/lib..__nrf__lib__dk_buttons_and_leds.a  modules/nrf/lib/at_monitor/lib..__nrf__lib__at_monitor.a  modules/nrf/lib/at_host/lib..__nrf__lib__at_host.a  modules/nrf/lib/at_cmd_parser/lib..__nrf__lib__at_cmd_parser.a  modules/nrf/lib/lte_link_control/lib..__nrf__lib__lte_link_control.a  modules/nrf/lib/modem_info/lib..__nrf__lib__modem_info.a  modules/nrf/lib/pdn/lib..__nrf__lib__pdn.a  modules/nrf/lib/fatal_error/lib..__nrf__lib__fatal_error.a  modules/nrf/lib/hw_id/lib..__nrf__lib__hw_id.a  modules/nrf/lib/modem_antenna/lib..__nrf__lib__modem_antenna.a  modules/nrf/subsys/nrf_security/src/zephyr/libmbedtls_zephyr.a  modules/nrf/subsys/net/lib/nrf_cloud/lib..__nrf__subsys__net__lib__nrf_cloud.a  modules/nrf/subsys/net/lib/download_client/lib..__nrf__subsys__net__lib__download_client.a  modules/nrf/subsys/net/lib/fota_download/lib..__nrf__subsys__net__lib__fota_download.a  modules/nrf/subsys/net/lib/aws_jobs/lib..__nrf__subsys__net__lib__aws_jobs.a  modules/nrf/subsys/net/lib/aws_fota/lib..__nrf__subsys__net__lib__aws_fota.a  modules/nrf/subsys/net/lib/aws_iot/lib..__nrf__subsys__net__lib__aws_iot.a  modules/nrf/subsys/dfu/dfu_target/lib..__nrf__subsys__dfu__dfu_target.a  modules/nrf/subsys/fw_info/lib..__nrf__subsys__fw_info.a  modules/nrf/modules/tfm/zephyr/libtfm_api_nrf.a  modules/mcuboot/boot/bootutil/zephyr/libmcuboot_util.a  modules/trusted-firmware-m/libtfm_api.a  modules/cjson/libcjson.a  modules/hal_nordic/nrfx/libmodules__hal_nordic__nrfx.a  /opt/nordic/ncs/v2.5.2/nrfxlib/nrf_modem/lib/nRF9160/soft-float/libmodem.a  -Wl,--no-whole-archive  zephyr/kernel/libkernel.a  zephyr/CMakeFiles/offsets.dir/./arch/arm/core/offsets/offsets.c.obj  -L&amp;quot;/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/thumb/v8-m.main/nofp&amp;quot;  -L/Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr  -lgcc  zephyr/arch/common/libisr_tables.a  tfm/secure_fw/s_veneers.o  -Wl,--gc-sections  -Wl,--build-id=none  -Wl,--sort-common=descending  -Wl,--sort-section=alignment  -Wl,-u,_OffsetAbsSyms  -Wl,-u,_ConfigAbsSyms  -nostdlib  -static  -Wl,-X  -Wl,-N  -Wl,--orphan-handling=warn  -Wl,-no-pie  -DPICOLIBC_INTEGER_PRINTF_SCANF  modules/nrf/subsys/nrf_security/src/libmbedtls.a  modules/nrf/subsys/nrf_security/src/libmbedx509.a  modules/nrf/subsys/nrf_security/src/libmbedcrypto.a  /opt/nordic/ncs/v2.5.2/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/soft-float/liboberon_mbedtls_3.0.13.a  modules/nrf/subsys/nrf_security/src/libmbedcrypto_base.a  -mcpu=cortex-m33  -mthumb  -mabi=aapcs  -mfp16-format=ieee  /opt/nordic/ncs/v2.5.2/nrfxlib/crypto/nrf_oberon/lib/cortex-m33/soft-float/liboberon_3.0.13.a  --specs=picolibc.specs  -lc  -lgcc &amp;amp;&amp;amp; cd /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build/zephyr &amp;amp;&amp;amp; /opt/nordic/ncs/toolchains/20d68df7e5/Cellar/cmake/3.20.5/bin/cmake -E true
/opt/nordic/ncs/toolchains/20d68df7e5/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 `text&amp;#39; will not fit in region `FLASH&amp;#39;
/opt/nordic/ncs/toolchains/20d68df7e5/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: region `FLASH&amp;#39; overflowed by 119504 bytes
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /opt/nordic/ncs/toolchains/20d68df7e5/bin/cmake --build /Users/benaskem/Documents/nRF_Connect_SDK/git/edge-plus-iot-demo/build

 *  The terminal process terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>