<?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 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113481/nrf5340-custom-board-not-running-after-enabling-bluetooth-config_bt</link><description>Hello, 
 As mentioned we have a custom board and we are now enabling bluetooth. Given that we are using the nRF5340 we have a custom CPUNET board defined (we just took the nrf5340dk_cpunet_defconfig , nrf5340dk_cpunet_pinctrl.dtsi , and nrf5340dk_cpunet</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2024 10:12:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113481/nrf5340-custom-board-not-running-after-enabling-bluetooth-config_bt" /><item><title>RE: nrf5340 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/thread/496384?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 10:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:791fb089-44d8-4dc2-b18a-1df8523c82ef</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please attach your project here so that I could see if it is missing anything to include the net files. I think the child image is pulled from the board configuration mentioned in&amp;nbsp;zephyr\boards\nordic\nrf5340dk\Kconfig-&amp;gt;DOMAIN_CPUNET_BOARD which inturn pulls&amp;nbsp;zephyr\boards\nordic\nrf5340dk\Kconfig.defconfig-&amp;gt;BT_HCI_BUS_TYPE&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/thread/496331?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 06:39:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3420865-31ae-412e-bc50-e05e3ad0a736</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;Is there a&amp;nbsp;proper sample that incorporates the net and app core? I can&amp;#39;t seem to find one and the dev academy course only briefly covers this. Note that our custom board is already based off of&amp;nbsp;/zephyr/boards/arm/nrf5340dk_nrf5340/ files&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/thread/496178?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 10:47:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80b657ef-2fad-4310-b97b-1dbf9661c7c4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;It looks that way that the network core is not configured at all.&lt;/p&gt;
&lt;p&gt;It should be best to take a sample as template and copy the nRF53 board folder and make changes to it to reflect to your custom board. Seems like something is missing in your configuration that says that you need a child image&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/thread/496156?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 09:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36215c14-f8ee-423d-9015-dd4a68b206c1</guid><dc:creator>responsible_duck</dc:creator><description>&lt;p&gt;When I try to Debug with JLink it shows this in gdb-server:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Starting target CPU...
...Target halted (DBGRQ, PC = 0xEFFFFFFE)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Debug console shows:&lt;/p&gt;
&lt;div id="list_id_4_20" class="monaco-list-row" data-index="20" data-last-element="false" data-parity="even"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;
&lt;div class="output expression value-and-source"&gt;&lt;span class="value warn"&gt;&lt;span&gt;&lt;span class=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div id="list_id_4_23" class="monaco-list-row" data-index="23" data-last-element="false" data-parity="odd"&gt;
&lt;div class="monaco-tl-row"&gt;
&lt;div class="monaco-tl-contents output"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;Thread
2 received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Remote target]
0xeffffffe in ?? ()&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is just with CONFIG_BT=y and&amp;nbsp;&lt;span&gt;CONFIG_BOARD_ENABLE_CPUNET&lt;/span&gt;&lt;span&gt;=y.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am seeing this log when building, No install step for hci_ipc_subimage:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;[460/471] Linking C static library app/libapp.a
[462/471] No install step for &amp;#39;hci_ipc_subimage&amp;#39;
[463/471] Completed &amp;#39;hci_ipc_subimage&amp;#39;
[464/471] Linking C executable zephyr/zephyr_pre0.elf
[465/471] Generating linker.cmd
[466/471] Generating isr_tables.c, isr_tables_vt.ld, isr_tables_swi.ld
[467/471] Building C object zephyr/CMakeFiles/zephyr_final.dir/misc/empty_file.c.obj
[468/471] Building C object zephyr/CMakeFiles/zephyr_final.dir/isr_tables.c.obj
[469/471] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:      415204 B       944 KB     42.95%
             RAM:      307932 B       448 KB     67.12%
        IDT_LIST:          0 GB        32 KB      0.00%
[470/471] Generating zephyr/merged.hex
[471/471] Generating zephyr/merged_domains.hex
 *  Terminal will be reused by tasks, press any key to close it. &lt;/pre&gt;&lt;/span&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Does that mean its not actually installing anything on the network core and that is why its not responding? I also don&amp;#39;t see anything network core related in the Memory Report. I suspect something is wrong with how the network core or hci_ipc subimage is configured, although we tried to maintain everything close to the nrf5340 DK default configurations...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf5340 custom board not running after enabling Bluetooth (CONFIG_BT)</title><link>https://devzone.nordicsemi.com/thread/496117?ContentTypeID=1</link><pubDate>Tue, 30 Jul 2024 05:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c1e83a8-bf17-4c65-8c8b-9e25da7f8e5c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Ever,&lt;/p&gt;
[quote user=""]&lt;p&gt;Our project builds and flashes however as soon as the app starts the device seems unresponsive. It can be&amp;nbsp;connected to in Serial Terminal but we&amp;nbsp;are unable to run any shell commands or even turn on the device&amp;#39;s LED within &lt;code&gt;main()&lt;/code&gt;. This usually happens when we run out of RAM but we are currently at 86% usage so there seems to be enough margin...&lt;/p&gt;
&lt;p&gt;Any thoughts on what might be going on? &lt;/p&gt;[/quote]
&lt;p&gt;I would first try to run the application in the debugger for a while and halt/pause the debugger to understand the context of the current execution in your application. It might give us some hints if the application is running properly on the application core or if it has asserted. Unable to get any logs can be a different issue with the device tree but we can come to that later.&lt;/p&gt;
&lt;p&gt;Have you tried running the compiled binary with your custom board device tree on the nRF53DK in the debugger? Just a quick look at your device files does not obviously show that binary for your custom board should not run on nRF53DK. The reason I am asking to do this is because it is easy to run the debugger on the DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>