<?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>nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93179/nrf5340-beacon-example-with-rpc</link><description>Beacon example ( zephyr/samples/bluetooth/beacon ) 
 Issuing the following: 
 
 I get images running on APP and NET core, beacon can be catched by nrfconnect. 
 But if I want the whole BT stack run on NET core with RPC interface: 
 
 Compile succeeds</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 Oct 2022 10:34:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93179/nrf5340-beacon-example-with-rpc" /><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392577?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 10:34:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13ac062d-954f-4bde-803a-2c5de3d4a248</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;Can you try to follow my suggestion I made previously:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you try to follow the description for peripheral UART first to check that it works as expected, then next is the HIDS mouse, ref example build description:&lt;/span&gt;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In the link you can find for instance that you need to add a&amp;nbsp;&lt;span&gt;samples/bluetooth/peripheral_hids_mouse/child_image/rpc_host.conf for the hids mouse example, if you are working on the beacon, you likely need to add the&amp;nbsp;/child_image/rpc_host.conf to the beacon project instead.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kenneth&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392516?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 06:18:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eed6f822-0feb-4b29-bdcc-ba8399da92ae</guid><dc:creator>Tamas Selmeci</dc:creator><description>&lt;p&gt;I don&amp;#39;t know how to set the APP and NET configuration separately. A few posts above I&amp;#39;ve shown my prj.conf. Please tell me how to edit APP and NET configs separately in case of a multi image build, like this!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392360?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 11:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12eff0a6-8773-4f96-a128-8834fb3a06ce</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;&amp;lt;err&amp;gt; BT_RPC: Missmatched CONFIG_BT_SETTINGS_CCC_LAZY_LOADING: net=1, app=0&lt;br /&gt;&amp;lt;err&amp;gt; BT_RPC: Missmatched CONFIG_BT_SETTINGS: net=1, app=0&lt;/p&gt;
&lt;p&gt;The error indicate a mismatch between appcore and netcore, have you tried to setting them to the same value between the two cores? E.g. =y in both cores.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392287?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 06:56:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ceccc20-5ba2-46b3-aa8b-91fb8ce00cbc</guid><dc:creator>Tamas Selmeci</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/93179/nrf5340-beacon-example-with-rpc/392225"]Which ones are left?[/quote]
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:00.427,947] &amp;lt;err&amp;gt; BT_RPC: Missmatched CONFIG_BT_SETTINGS_CCC_LAZY_LOADING: net=1, app=0
[00:00:00.427,978] &amp;lt;err&amp;gt; BT_RPC: Missmatched CONFIG_BT_SETTINGS: net=1, app=0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;My edited prj.conf looks like this (other dependencies could be resolved with it):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_BT=y
CONFIG_BT_DEBUG_LOG=y
CONFIG_BT_DEVICE_NAME=&amp;quot;Test beacon&amp;quot;

CONFIG_BT_RPC=y
CONFIG_BT_RPC_STACK=y
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_SMP=y
CONFIG_BT_ECC=y
CONFIG_BT_MAX_PAIRED=1
CONFIG_BT_SETTINGS=y
CONFIG_BT_SETTINGS_CCC_LAZY_LOADING=y
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_DEVICE_NAME=&amp;quot;Nordic_UART_Service&amp;quot;
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Tracing back the point of failure with addr2line: it points to bt_rpc_common.c::err_handler(...) function, which is used in nrf_rpc_init(err_handler).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392283?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2022 06:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d21b59e9-be42-43c9-9492-a1011e6a360b</guid><dc:creator>Tamas Selmeci</dc:creator><description>[quote userid="2111" url="~/f/nordic-q-a/93179/nrf5340-beacon-example-with-rpc/392225"]Can you try to follow the description for peripheral UART first to check that it works as expected, then next is the HIDS mouse, ref example build description:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build&lt;/a&gt;[/quote]
&lt;p&gt;Thanks, these examples really work on either config.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 beacon example with RPC</title><link>https://devzone.nordicsemi.com/thread/392225?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2022 15:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf36175c-bc91-455a-9b0e-bfaaeab9e3a1</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try to follow the description for peripheral UART first to check that it works as expected, then next is the HIDS mouse, ref example build description:&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/rpc_host/README.html#example-build&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]And not all of the above errors can be fixed by adding the appropriate config options to prj.conf.[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which ones are left? To get more information about the assert I suggest to add the following:&lt;/p&gt;
&lt;p&gt;# Debugging configuration&lt;br /&gt;CONFIG_THREAD_NAME=y&lt;br /&gt;CONFIG_THREAD_ANALYZER=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_AUTO=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_RUN_UNLOCKED=y&lt;br /&gt;CONFIG_THREAD_ANALYZER_USE_PRINTK=y&lt;/p&gt;
&lt;p&gt;# Add asserts&lt;br /&gt;CONFIG_ASSERT=y&lt;br /&gt;CONFIG_ASSERT_VERBOSE=y&lt;br /&gt;CONFIG_ASSERT_NO_COND_INFO=n&lt;br /&gt;CONFIG_ASSERT_NO_MSG_INFO=n&lt;br /&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;br /&gt;CONFIG_THREAD_NAME=y&lt;/p&gt;
&lt;p&gt;You can also try to run something like this in your build folder (open command line from toolchain manager):&amp;nbsp;&lt;/p&gt;
&lt;p&gt;C:\ncs\toolchains\v2.1.0\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-addr2line.exe -e .\zephyr\zephyr.elf 0x000048aa (provided the fault is still at the same address as your original dump)&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>