<?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>hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71690/hardware-cs-not-working-when-using-ble-with-nrf5340dk</link><description>Hello, 
 I&amp;#39;m using NCS 1.4.99 with a nRF5340DK and want to use the hardware CS of the SPI and also use BLE. 
 Here is a simple code that work on a nRF5340PDK but only work on a nRF5340DK when CONFIG_BT is not defined. 
 .</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Feb 2021 13:14:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71690/hardware-cs-not-working-when-using-ble-with-nrf5340dk" /><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/296030?ContentTypeID=1</link><pubDate>Wed, 24 Feb 2021 13:14:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c413999f-573d-4d54-8459-b7dae679cc64</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for pointing out the lacking documentation. I have forwarded it to the team so that it can be fixed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295861?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 14:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20b2294e-6e1c-488f-9742-a9ed6c9ec01a</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;Thanks for the information, I use the RTT instead of UART for the logging.&lt;br /&gt;I measured with a ohmmeter and saw the pins P0.10, P0.11, P1.0 and P1.1 were connected to the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5340_dk/UG/dk/signal_switches.html"&gt;Signal switches&lt;/a&gt; that further connect them to the virtual COM port.&lt;br /&gt;It would be helpful to add to the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5340_dk/UG/dk/vir_com_port.html"&gt;Virtual COM port page&lt;/a&gt; the information about the port for the network core.&lt;br /&gt;In the &lt;a href="https://infocenter.nordicsemi.com/topic/ug_nrf5340_dk/UG/dk/solder_bridge.html"&gt;Solder bridge configuration page&lt;/a&gt;, information about S27 to SB30 is also missing.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295837?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 13:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38e9993c-9a47-4778-99ef-336104f151b9</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Nicolas Brunner"]HCI RPMsg, for what function is this UART used ? Is there a documentation about it ?[/quote]
&lt;p&gt;It is used for logging. It is not explicitly documented in that example, but logging is enabled by default. You can disable it by setting CONFIG_LOG=n in hci_rpmsg&amp;#39;s prj.conf.&lt;/p&gt;
[quote user="Nicolas Brunner"]I saw that pins are configure to be used by the network core in the function remoteproc_mgr_config(). Why isn&amp;#39;t there a way to desactivate this function with prj.conf ?[/quote]
&lt;p&gt;Calling of&amp;nbsp;remoteproc_mgr_config() among other things is configured via&amp;nbsp;CONFIG_TRUSTED_EXECUTION_NONSECURE, but there is no way to disable configuration of just the UART pins via prj.conf out of the box. I agree that would make sense though, if you do not want UART logging from the network core.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295816?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 12:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:399d2274-868b-463e-b664-cdc128222e49</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;Thank you, instead I have reconfigured the P1.1 to be used by the application core.&lt;br /&gt;When using the HCI RPMsg, for what function is this UART used ? Is there a documentation about it ?&lt;br /&gt;I saw that pins are configure to be used by the network core in the function remoteproc_mgr_config(). Why isn&amp;#39;t there a way to desactivate this function with prj.conf ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295766?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 09:51:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86cc72e7-c1bd-449e-a0d1-41cc4ff3bb86</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The actual issue here is that &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpunet.dts#L93"&gt;P1.1 (33) is used by the network core&lt;/a&gt;. So the fix is to use another pin. I have tested with P1.3, and with that it works as expected with both secure and non-secure, using both west on the command line and SES.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295489?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 07:49:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7b2b061-11dc-43f7-b213-be02d9e63df4</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;Thanks, it&amp;#39;s what I did but I got the problems described in my previous message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295421?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 20:01:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac5552b6-ddf6-4767-b40a-ec254a33c598</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;To build for non-secure mode you select&amp;nbsp;nrf5340dk_nrf5340_cpuappns as the board instead of&amp;nbsp;nrf5340dk_nrf5340_cpuapp. But for this issue in general I do not yet understand what causes this nor do I have any other proposed fix at this point. I will look more into it, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/295060?ContentTypeID=1</link><pubDate>Thu, 18 Feb 2021 11:23:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18d27955-1f67-4acc-ae3b-3f1eaf205b4a</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;Thanks for this information but what do I need to do to run it in non-secure ?&lt;/p&gt;
&lt;p&gt;I have tried with SES to build it for non-secure but it crash when calling nrfx_spim_init().&lt;/p&gt;
&lt;p&gt;After that, I saw that SPM was not listing SPIM4 to the console, so i use SPIM3 because it was listed. Now my code get stuck in nrfx_spim_xfer() waiting for NRF_SPIM_EVENT_END that never come.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/294894?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 14:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6419aa5e-bdbe-41ae-b48a-c95ba40ad275</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested your code and I see that the CS pin toggles as expected when&amp;nbsp;&lt;code&gt;CONFIG_BT&lt;/code&gt; is set to &lt;code&gt;n&lt;/code&gt; but not when set to &lt;code&gt;y&lt;/code&gt;. I am not able to explain this right now though so I need to get back to you tomorrow.&lt;/p&gt;
&lt;p&gt;Edit: I just noticed that this issue only occurs when building for secure mode (nrf5340dk_nrf5340_cpuapp). Building for non-secure (nrf5340dk_nrf5340_cpuappns) CS works as expected.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware CS not working when using BLE with nRF5340DK</title><link>https://devzone.nordicsemi.com/thread/294761?ContentTypeID=1</link><pubDate>Wed, 17 Feb 2021 08:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10fb67f7-ba47-4d16-8964-16e04a46d136</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;1 more information:&lt;/p&gt;
&lt;p&gt;After running the code with BLE, the code without BLE only works after an hardware reset otherwise the CS is also not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>