<?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>Custom board crashes calling bt_enable</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122080/custom-board-crashes-calling-bt_enable</link><description>Hello I have a custom board with the following dts My zephyr app crashes in bt_enable() Note that uart0 TX pin 8 is used by gps_vrtc_en but uart0 is not defined. Same crash if I have it explicitly disabled 
 Unfortunately no logs are available on this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Jun 2025 03:50:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122080/custom-board-crashes-calling-bt_enable" /><item><title>RE: Custom board crashes calling bt_enable</title><link>https://devzone.nordicsemi.com/thread/538526?ContentTypeID=1</link><pubDate>Sun, 08 Jun 2025 03:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da7ab08b-6fe2-4519-b89e-58fae7c410be</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;Traced the crash to nvs_mount wher it erases free sectors&lt;/p&gt;
&lt;p&gt;Turns out on this board all flash outside the application area is write protected by the bootloader. When I moved the nvs parttion inside the app area&amp;nbsp; crashing stopped.&lt;br /&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;The nvs partition is&amp;nbsp;after the app but inside CONFIG_FLASH_LOAD_SIZE which I also had to specify&lt;br /&gt;Previously it was outside.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board crashes calling bt_enable</title><link>https://devzone.nordicsemi.com/thread/538431?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 13:17:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8303d90-df55-421e-8c7d-c9efd9208ec1</guid><dc:creator>AndyM</dc:creator><description>&lt;p&gt;uart0 is disabled in dts. I get no build errors.&amp;nbsp; The firmware runs just fine on the board until I enter a shell command that calls bt_enable . Then the board reboots. I call bt_enable() from k_work ,not shell context. It is called long after the board boots and other functionality works without problems. Anything in my .config or dts that looks suspicious?&lt;br /&gt;Since I can&amp;#39;t connect rtt I tried to redirect log traffic to the shell which uses cdc_acm_uart. I got nothing there.&lt;br /&gt;My current config uses Nordic Bluetooth stack but I did try Zephyr - no improvement&lt;br /&gt;Anything in my .config looks suspicious?&lt;br /&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board crashes calling bt_enable</title><link>https://devzone.nordicsemi.com/thread/538375?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 08:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52990932-d02c-4b0b-babd-12c8f8c4881c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;&lt;span&gt;If you are not using UART0, make sure it is either not defined or explicitly disabled in the DTS, and that no part of your configuration (including overlays, Kconfig, or the Bluetooth stack) expects it to be present. If you do define UART0, ensure its pins do not conflict with other GPIO assignments.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can disbale the UART0 in the devicetree ovrlay file&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;uart0 {
    status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom board crashes calling bt_enable</title><link>https://devzone.nordicsemi.com/thread/538360?ContentTypeID=1</link><pubDate>Fri, 06 Jun 2025 08:02:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eadd8b49-2524-4358-860e-130357fda509</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Do you have external LFXO on your custom board?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>