<?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>Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85655/error-in-west-compilation-in-zephyr-in-shell_uart-c</link><description>Hi, 
 
 I have removed UART from my custom board dts file as in my current application, I am not using UART for any transfer. 
 But due to this, I am unable to compile code as some internal logging/Device_DT is using UART. 
 I am getting the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 12:23:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85655/error-in-west-compilation-in-zephyr-in-shell_uart-c" /><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/360293?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 12:23:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41e26b33-1460-4676-b602-43791f46f4e6</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;This is a different issue than the one asked about in the original post, so please open a new ticket for this.&lt;/p&gt;
&lt;p&gt;Separating each distinct issue into their own tickets makes the forum much easier to read and search.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/360220?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 10:02:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0746e76b-4f96-4cc6-870e-af922a9e5a61</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, I have seen that and corrected that, now this crash is resolved.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In addition to that, fort he below shared prj.conf file, can you explain to me the use of some config parameters, if they are not useful to my application I will remove them to reduce application size:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#

# To use GPIO Pins
CONFIG_GPIO=y

#Enable RTC
CONFIG_COUNTER=y
CONFIG_SYSTEM_CLOCK_NO_WAIT=y

#Enable Logging
CONFIG_LOG=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y
CONFIG_SHELL_BACKEND_RTT=y
CONFIG_LOG_PRINTK=y

# Enable MTD Sleepy End Device
CONFIG_OPENTHREAD_MTD=y
CONFIG_OPENTHREAD_MTD_SED=y
CONFIG_OPENTHREAD_POLL_PERIOD=30000
CONFIG_RAM_POWER_DOWN_LIBRARY=y
CONFIG_PM_DEVICE=y

# This variant requires increased system workqueue stack size
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536

#enable ADC for analog sensors
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y

#enable Flash
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

#Enable sensors
CONFIG_I2C=y
CONFIG_SENSOR=y


#enable SHTC3
CONFIG_SHTCX=y

# Enable CoAP utils and CoAP protocol
CONFIG_COAP_UTILS=y
CONFIG_OPENTHREAD_COAP=y

# Configure sample logging setting
CONFIG_COAP_CLIENT_LOG_LEVEL_DBG=y
CONFIG_COAP_CLIENT_UTILS_LOG_LEVEL_DBG=y
CONFIG_COAP_UTILS_LOG_LEVEL_DBG=y

# Network shell
CONFIG_SHELL=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=416

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_L2_OPENTHREAD=y

# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y

# Network sockets
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4

# Same network Master Key for client and server
CONFIG_OPENTHREAD_NETWORKKEY=&amp;quot;fb:9d:04:b4:bc:8d:7a:24:ee:e4:d1:fd:a2:fd:ed:0b&amp;quot;
CONFIG_OPENTHREAD_PANID=64413


CONFIG_OPENTHREAD_MANUAL_START=n
CONFIG_OPENTHREAD_JOINER=y
CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
CONFIG_OPENTHREAD_JOINER_PSKD=&amp;quot;J01NTHREAD&amp;quot;
CONFIG_SHELL_STACK_SIZE=3168

CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=n
CONFIG_ASSERT_NO_MSG_INFO=n
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_FPU=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Above are all prj.conf:&lt;/p&gt;
&lt;p&gt;In the above file, I have mentioned the above configuration for why I have added them.&lt;/p&gt;
&lt;p&gt;Can you explain to me the below configuration and which of them can be removed:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;

# This variant requires increased system workqueue stack size
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536


# Configure sample logging setting
#can I remove below logging settings:
CONFIG_COAP_CLIENT_LOG_LEVEL_DBG=y
CONFIG_COAP_CLIENT_UTILS_LOG_LEVEL_DBG=y
CONFIG_COAP_UTILS_LOG_LEVEL_DBG=y

# Network shell
#are all these configs essential
CONFIG_SHELL=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=416

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_L2_OPENTHREAD=y

# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y

# Network sockets
#what does network socket means here?, can I remove them?
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4


CONFIG_OPENTHREAD_MANUAL_START=n
CONFIG_OPENTHREAD_JOINER=y
CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
CONFIG_OPENTHREAD_JOINER_PSKD=&amp;quot;J01NTHREAD&amp;quot;
CONFIG_SHELL_STACK_SIZE=3168


#use of belwo configurations in openthread
CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=n
CONFIG_ASSERT_NO_MSG_INFO=n
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_FPU=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/360219?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 09:55:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5dc755-58a1-4845-87f3-db05be8be34d</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;The failing assert seems to be this one in MessagePool::Free :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;void MessagePool::Free(Message *aMessage)
{
    OT_ASSERT(aMessage-&amp;gt;Next() == nullptr &amp;amp;&amp;amp; aMessage-&amp;gt;Prev() == nullptr);

    FreeBuffers(static_cast&amp;lt;Buffer *&amp;gt;(aMessage));
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Do you make any calls to this function in your code? If so you should check those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/360137?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 05:27:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5240e68c-a9b5-4498-81bc-cf3e4e9926f1</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have made above changes in conf.&lt;/p&gt;
&lt;p&gt;Now I am getting following message at crash:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/net/lib/openthread/platform/misc.c:36
	OpenThread ASSERT @ WEST_TOPDIR/modules/lib/openthread/src/core/common/message.cpp:111
[00:03:31.695,953] &amp;lt;err&amp;gt; os: r0/a1:  0x00000004  r1/a2:  0x00000024  r2/a3:  0x20002160
[00:03:31.695,953] &amp;lt;err&amp;gt; os: r3/a4:  0x00000016 r12/ip:  0x00000000 r14/lr:  0x0002d887
[00:03:31.695,983] &amp;lt;err&amp;gt; os:  xpsr:  0x61000000
[00:03:31.695,983] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:03:31.696,044] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:03:31.696,075] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:03:31.696,105] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:03:31.696,105] &amp;lt;err&amp;gt; os: fpscr:  0x00000000
[00:03:31.696,136] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0005162a
[00:03:31.696,136] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:03:31.696,166] &amp;lt;err&amp;gt; os: Current thread: 0x20002f40 (sysworkq)
[00:03:32.447,692] &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: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/359978?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 11:25:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cb54682-f787-4f63-8794-2910cc8c3197</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;In your prj.conf you have: CONFIG_ASSERT_NO_COND_INFO=y and CONFIG_ASSERT_NO_MSG_INFO=y.&lt;/p&gt;
&lt;p&gt;Set these to n and see if you get more info from the assert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/359973?ContentTypeID=1</link><pubDate>Fri, 25 Mar 2022 10:53:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96b53b4c-f3a4-4792-89ad-43097805ad0f</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I get the following crash error in my code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/net/lib/openthread/platform/misc.c:36
[00:01:01.697,052] &amp;lt;err&amp;gt; os: r0/a1:  0x00000004  r1/a2:  0x00000024  r2/a3:  0x20002160
[00:01:01.697,052] &amp;lt;err&amp;gt; os: r3/a4:  0x00000015 r12/ip:  0x00000000 r14/lr:  0x0002c113
[00:01:01.697,052] &amp;lt;err&amp;gt; os:  xpsr:  0x61000000
[00:01:01.697,082] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:01:01.697,082] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:01:01.697,113] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:01:01.697,143] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:01:01.697,143] &amp;lt;err&amp;gt; os: fpscr:  0x00000000
[00:01:01.697,174] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0004feb6
[00:01:01.697,204] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:01:01.697,204] &amp;lt;err&amp;gt; os: Current thread: 0x20002f40 (sysworkq)
[00:01:02.526,641] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and when I run&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-addr2line -e zephyr/zephyr.elf&amp;#160; 0x0004feb6
&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;I get following output:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/Users/bhumika/Project/Zipnet_Zephyr/zephyr/lib/os/assert.c:46&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;So basically I get a k_panic(); in my code, but what exactly causes this K_panic() I have no idea.&lt;br /&gt;&lt;br /&gt;Also &amp;quot;ASSERTION FAIL @ WEST_TOPDIR/zephyr/subsys/net/lib/openthread/platform/misc.c:36&amp;quot;, at this location I have following code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;void otPlatAssertFail(const char *aFilename, int aLineNumber)
{
	__ASSERT(false, &amp;quot;OpenThread ASSERT @ %s:%d&amp;quot;, aFilename, aLineNumber);
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;
&lt;p&gt;Can you help me fix this assertion error?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/358664?ContentTypeID=1</link><pubDate>Thu, 17 Mar 2022 13:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e582fa-c3cd-4bcc-bc34-23174b612767</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Try adding CONFIG_SHELL_BACKEND_RTT=y. You can also try CONFIG_LOG_PRINTK=y&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, it would be great if you could tell me where in your code that it fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/358094?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 04:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c2a8ac9-aee6-4a1c-a5bb-8a4bc907c963</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;I have in prj.conf file all CONFIG related to the following functionality:&lt;/p&gt;
&lt;p&gt;1. ADC&lt;/p&gt;
&lt;p&gt;2. Flash read and write&lt;/p&gt;
&lt;p&gt;3. I2C sensor read&lt;/p&gt;
&lt;p&gt;4. RTC&lt;/p&gt;
&lt;p&gt;5. Openthread node in SED mode&lt;/p&gt;
&lt;p&gt;6. Openthread joiner enabled and node not pre-commissioned&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is my prj.conf file:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor
#
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
#
CONFIG_GPIO=y

#Enable Logging
CONFIG_LOG=y
CONFIG_NEWLIB_LIBC_FLOAT_PRINTF=y

#Enable RTC
CONFIG_COUNTER=y
CONFIG_SYSTEM_CLOCK_NO_WAIT=y

#enable ADC for analog sensors
CONFIG_HEAP_MEM_POOL_SIZE=1024
CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y


# Enable MTD Sleepy End Device
CONFIG_OPENTHREAD_MTD=y
CONFIG_OPENTHREAD_MTD_SED=y
CONFIG_OPENTHREAD_POLL_PERIOD=30000
CONFIG_RAM_POWER_DOWN_LIBRARY=y
CONFIG_PM_DEVICE=y

# This variant requires increased system workqueue stack size
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=1536

#Enable sensors
CONFIG_I2C=y
CONFIG_SENSOR=y

#enable SHTC3
CONFIG_SHTCX=y

# Enable CoAP utils and CoAP protocol
CONFIG_COAP_UTILS=y
CONFIG_OPENTHREAD_COAP=y

#enable Flash read and write
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_REBOOT=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y


# Configure sample logging setting
CONFIG_COAP_CLIENT_LOG_LEVEL_DBG=y
CONFIG_COAP_CLIENT_UTILS_LOG_LEVEL_DBG=y
CONFIG_COAP_UTILS_LOG_LEVEL_DBG=y

# Network shell
CONFIG_SHELL=y
CONFIG_OPENTHREAD_SHELL=y
CONFIG_SHELL_ARGC_MAX=26
CONFIG_SHELL_CMD_BUFF_SIZE=416

# Generic networking options
CONFIG_NETWORKING=y
CONFIG_NET_L2_OPENTHREAD=y

# Enable OpenThread features set
CONFIG_OPENTHREAD_NORDIC_LIBRARY_MASTER=y

# Network sockets
CONFIG_NET_SOCKETS=y
CONFIG_NET_SOCKETS_POSIX_NAMES=y
CONFIG_NET_SOCKETS_POLL_MAX=4

# Same network Master Key for client and server
CONFIG_OPENTHREAD_NETWORKKEY=&amp;quot;fb:9d:04:b4:bc:8d:7a:24:ee:e4:d1:fd:a2:fd:ed:0b&amp;quot;
CONFIG_OPENTHREAD_PANID=64413


CONFIG_OPENTHREAD_MANUAL_START=n
CONFIG_OPENTHREAD_JOINER=y
CONFIG_OPENTHREAD_JOINER_AUTOSTART=y
CONFIG_OPENTHREAD_JOINER_PSKD=&amp;quot;J01NTHREAD&amp;quot;
CONFIG_SHELL_STACK_SIZE=3168

CONFIG_OPENTHREAD_L2_LOG_LEVEL_INF=y
CONFIG_ASSERT=y
CONFIG_ASSERT_NO_COND_INFO=y
CONFIG_ASSERT_NO_MSG_INFO=y
CONFIG_MBEDTLS_SHA1_C=n
CONFIG_FPU=y
CONFIG_OPENTHREAD_DEBUG=y
CONFIG_OPENTHREAD_L2_DEBUG=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If there are any such CONFIG that is not essential kindly let me know.&lt;/p&gt;
&lt;p&gt;As far as logging is considered, I want my logs only on JLink RTT platform and no where else.&lt;/p&gt;
&lt;p&gt;want to disable UART shell in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357997?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 14:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b851887f-2ec7-4772-88a9-e8206d02d6f7</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Could you post your prj.conf file here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357810?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 06:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee080eef-d425-4e60-a255-560127518234</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I am not planning to make any printf() calls, if there are any, I want those to be printed on JLink RTT logs.&lt;/p&gt;
&lt;p&gt;So yes, this is my question, how can I enable only RTT logs, with overflow enabled with a buffer of 512 only.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;All other printf() calls can be replaced with RTT logs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357662?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 12:59:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1585cb78-2435-4a2a-b944-e6f7e7f65552</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Checking if the problem is due to having shell enabled with no backend enabled.&lt;/p&gt;
&lt;p&gt;CONFIG_SHELL=n would try to disable shell.&lt;/p&gt;
&lt;p&gt;CONFIG_SHELL_BACKEND_DUMMY=y would instead keep shell enabled, but give it a dummy backend, so it won&amp;#39;t run into issues due to lacking a backend.&lt;/p&gt;
&lt;p&gt;It would be useful to know if your code contains any printf() calls, and if so where would you like those to be printed?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357649?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 12:24:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6d85ad-8bef-4714-ac74-8b7a991f5394</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;can you also explain to me the role of these configs in prj.conf?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357638?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 12:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ff75dd1-13a2-439e-a333-49d37e8642c4</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;You can try adding CONFIG_SHELL=n or CONFIG_SHELL_BACKEND_DUMMY=y&lt;/p&gt;
&lt;p&gt;Only one of them at a time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357534?ContentTypeID=1</link><pubDate>Fri, 11 Mar 2022 07:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58b0c2e0-70b5-494b-a47e-5e1c5ef14c16</guid><dc:creator>Bhumika</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have done this and added this config in prj.conf.&lt;/p&gt;
&lt;p&gt;Now my application is getting built, but I am facing a runtime crash in the application.&lt;/p&gt;
&lt;p&gt;Following is the crash message:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:32.095,489] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****
[00:00:32.101,257] &amp;lt;err&amp;gt; os:   Data Access Violation
[00:00:32.107,177] &amp;lt;err&amp;gt; os:   MMFAR Address: 0x20011260
[00:00:32.113,494] &amp;lt;err&amp;gt; os: r0/a1:  0x0004e5ab  r1/a2:  0x00061914  r2/a3:  0x00066c1a
[00:00:32.122,650] &amp;lt;err&amp;gt; os: r3/a4:  0x20011308 r12/ip:  0x00000020 r14/lr:  0x0000a37d
[00:00:32.131,774] &amp;lt;err&amp;gt; os:  xpsr:  0x21000000
[00:00:32.137,268] &amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:00:32.148,284] &amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0x00000000  s[ 7]:  0x00000000
[00:00:32.159,271] &amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000000  s[10]:  0x00000000  s[11]:  0x00000000
[00:00:32.170,257] &amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000
[00:00:32.181,274] &amp;lt;err&amp;gt; os: fpscr:  0xaaaaaaaa
[00:00:32.186,767] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x000091f0
[00:00:32.195,068] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 2: Stack overflow on CPU 0
[00:00:32.203,399] &amp;lt;err&amp;gt; os: Current thread: 0x20001c00 (unknown)
[00:00:32.220,550] &amp;lt;err&amp;gt; fatal_error: Resetting system&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;When I checked the error file using the following command:&lt;/p&gt;
&lt;p&gt;➜ build git:(master) ✗ arm-none-eabi-addr2line -e zephyr/zephyr.elf 0x000091f0&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;zephyr/lib/os/cbprintf_complete.c:1339&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;So it is giving an error in this file, can you help me in resolving this crash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in west compilation in zephyr in shell_uart.c</title><link>https://devzone.nordicsemi.com/thread/357493?ContentTypeID=1</link><pubDate>Thu, 10 Mar 2022 16:16:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cda3aecc-c09b-4f1f-801a-528bc2ba9a81</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try adding CONFIG_SHELL_BACKEND_SERIAL=n to your prj.conf file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>