<?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>Switch between Bluetooth mesh and constant carrier on a nRF5340</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97299/switch-between-bluetooth-mesh-and-constant-carrier-on-a-nrf5340</link><description>Hello 
 I found this topic 
 https://devzone.nordicsemi.com/f/nordic-q-a/94486/switch-between-bluetooth-mesh-and-constant-carrier 
 because I have the exact same question but for the nRF5340 which will be different than for other Nordic chips... Sigurd</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Mar 2023 16:05:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97299/switch-between-bluetooth-mesh-and-constant-carrier-on-a-nrf5340" /><item><title>RE: Switch between Bluetooth mesh and constant carrier on a nRF5340</title><link>https://devzone.nordicsemi.com/thread/413611?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 16:05:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89fd49c9-160b-44be-978f-924f9b63d34f</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We don&amp;#39;t have any official support or example for combining radio test FW and application FW.&lt;/p&gt;
&lt;p&gt;But MPSL can be made to use dynamic interrupts, so that you can disable/enable it, and&amp;nbsp;combine the radio FW in the &lt;span&gt;hci_rpsmg child image(network core image) /&amp;nbsp;&lt;/span&gt;MPSL image.&lt;/p&gt;
&lt;p&gt;I think one solution could be to&amp;nbsp;add the radio test FW to the hci_rpsmg child image(network core image). Let&amp;#39;s say&amp;nbsp;the&amp;nbsp;&lt;span&gt;chip can enter this radio test mode by pulling a test pin.&amp;nbsp;&lt;/span&gt;Then start of main(), you can&amp;nbsp;check if this pin is high/low, and depending on the pin state, either boot the normal application, or the radio test application.&lt;/p&gt;
&lt;p&gt;In the child image, you would need to set:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_MPSL_DYNAMIC_INTERRUPTS=y

CONFIG_DYNAMIC_INTERRUPTS=y

CONFIG_DYNAMIC_DIRECT_INTERRUPTS=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;By default MPSL is initialized pre-kernel, so you would also need to call&amp;nbsp;mpsl_lib_uninit() before&amp;nbsp;calling your&amp;nbsp;radio_test_init(). When you want to switch mode, change the pin state, and reset the chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switch between Bluetooth mesh and constant carrier on a nRF5340</title><link>https://devzone.nordicsemi.com/thread/413384?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2023 15:31:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a5166d-bab9-4abc-97cf-d9b568ee6374</guid><dc:creator>ThierryH</dc:creator><description>&lt;p&gt;In our production test firmware, I did make 2 separate firmware.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You&amp;#39;ll find a radioTest.c file which contains the part for the carrier test from our production test firmware...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/radioTest.c"&gt;devzone.nordicsemi.com/.../radioTest.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switch between Bluetooth mesh and constant carrier on a nRF5340</title><link>https://devzone.nordicsemi.com/thread/413258?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 13:08:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb556dbb-7759-480d-ae1d-b3314af5df98</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are&amp;nbsp;you using the &lt;a href="https://github.com/nrfconnect/sdk-nrf/tree/main/samples/bluetooth/direct_test_mode"&gt;direct_test_mode sample&lt;/a&gt; for your carrier test, or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>