<?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>BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116059/ble-no-compatible-with-spi</link><description>Hi, in our project we use nRF5340 to control some externanal peripherals as flash mem through SPI and also we need BLE comunication. 
 The case is if whe allow the config for the BLE the sistems fall down. 
 
 And if set the BLE config in &amp;quot;n&amp;quot; works fine</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 Nov 2024 13:59:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116059/ble-no-compatible-with-spi" /><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/510124?ContentTypeID=1</link><pubDate>Tue, 12 Nov 2024 13:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:767f068a-2159-434c-96d4-c380c9e0f96b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am glad to hear that it worked out in the end!&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509946?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 15:20:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4a97e42-ac01-4034-a3d1-8b12e59b8411</guid><dc:creator>SBou</dc:creator><description>&lt;p&gt;Hello Edvin, after check and add all of points you list finally the SPI comunication works fine with the BLE active.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screenshot-2024_2D00_11_2D00_11-154325.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Many thanks by your support and your time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509825?ContentTypeID=1</link><pubDate>Mon, 11 Nov 2024 09:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc6c17f0-6cb5-44dd-a791-06e3afe1b1d6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What board are you building for? And what pin are you using for your MOSI?&lt;/p&gt;
&lt;p&gt;I see an nrf5340dk_nrf5340_cpuapp.overlay, but I was not able to build the project in NCS v2.5.0 for the nrf5340dk_nrf5340_cpuapp:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\nordic\SDKs\ncs\my_projects\2.5.0\cust\WallyMainBoard&amp;gt;west build -b nrf5340dk_nrf5340_cpuapp -d _build
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard
-- CMake version: 3.20.5
-- Using NCS Toolchain 2.5.20231017.848171396279 for building. (C:/nordic/SDKs/ncs/toolchains/c57af46cb7/cmake)
CMake Deprecation Warning at C:/nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/FindDeprecated.cmake:121 (message):
  &amp;#39;PYTHON_PREFER&amp;#39; variable is deprecated.  Please use Python3_EXECUTABLE
  instead.
Call Stack (most recent call first):
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/python.cmake:16 (find_package)
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Found Python3: C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/python.exe (found suitable version &amp;quot;3.8.2&amp;quot;, minimum required is &amp;quot;3.8&amp;quot;) found components: Interpreter
-- Cache files will be written to: C:/nordic/SDKs/ncs/v2.5.0/zephyr/.cache
-- Zephyr version: 3.4.99 (C:/nordic/SDKs/ncs/v2.5.0/zephyr)
-- Found west (found suitable version &amp;quot;1.1.0&amp;quot;, minimum required is &amp;quot;0.14.0&amp;quot;)
-- Board: nrf5340dk_nrf5340_cpuapp
-- Found host-tools: zephyr 0.16.1 (C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found toolchain: zephyr 0.16.1 (C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/zephyr-sdk)
-- Found Dtc: C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/dtc.exe (found suitable version &amp;quot;1.4.7&amp;quot;, minimum required is &amp;quot;1.4.6&amp;quot;)
-- Found BOARD.dts: C:/nordic/SDKs/ncs/v2.5.0/zephyr/boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts
-- Found devicetree overlay: C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/nrf5340dk_nrf5340_cpuapp.overlay
devicetree error: &amp;#39;pinctrl-0&amp;#39; is marked as required in &amp;#39;properties:&amp;#39; in C:/nordic/SDKs/ncs/v2.5.0/zephyr/dts/bindings\spi\nordic,nrf-spim.yaml, but does not appear in &amp;lt;Node /soc/peripheral@50000000/spi@c000 in &amp;#39;C:/nordic/SDKs/ncs/v2.5.0/zephyr/misc/empty_file.c&amp;#39;&amp;gt;
-- In: C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/_build/zephyr, command: C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/python.exe;C:/nordic/SDKs/ncs/v2.5.0/zephyr/scripts/dts/gen_defines.py;--dts;C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/_build/zephyr/zephyr.dts.pre;--dtc-flags;&amp;#39;-Wno-unique_unit_address_if_enabled&amp;#39;;--bindings-dirs;C:/nordic/SDKs/ncs/v2.5.0/nrf/dts/bindings;C:/nordic/SDKs/ncs/v2.5.0/zephyr/dts/bindings;--header-out;C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/_build/zephyr/include/generated/devicetree_generated.h.new;--dts-out;C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/_build/zephyr/zephyr.dts.new;--edt-pickle-out;C:/nordic/SDKs/ncs/my_projects/2.5.0/cust/WallyMainBoard/_build/zephyr/edt.pickle;--vendor-prefixes;C:/nordic/SDKs/ncs/v2.5.0/nrf/dts/bindings/vendor-prefixes.txt;--vendor-prefixes;C:/nordic/SDKs/ncs/v2.5.0/zephyr/dts/bindings/vendor-prefixes.txt
CMake Error at C:/nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/dts.cmake:279 (message):
  gen_defines.py failed with return code: 1
Call Stack (most recent call first):
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/cmake/modules/zephyr_default.cmake:129 (include)
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
  C:/nordic/SDKs/ncs/v2.5.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
←[91mFATAL ERROR: command exited with status 1: &amp;#39;C:\nordic\SDKs\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE&amp;#39; -DWEST_PYTHON=C:/nordic/SDKs/ncs/toolchains/c57af46cb7/opt/bin/python.exe &amp;#39;-BC:\nordic\SDKs\ncs\my_projects\2.5.0\cust\WallyMainBoard\_build&amp;#39; -GNinja -DBOARD=nrf5340dk_nrf5340_cpuapp &amp;#39;-SC:\nordic\SDKs\ncs\my_projects\2.5.0\cust\WallyMainBoard&amp;#39;
←[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But I was able to build for the nrf7002dk_nrf5340_cpuapp (but be aware that the nrf5340dk_nrf5340_cpuapp.overlay is not included when building for the nrf7002dk_nrf5340_cpuapp).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Anyway, now assuming that you are building for the nrf7002dk_nrf5340_cpuapp, and it looks like you are trying to use MOSI pin P1.05, and it fails when enabling bluetooth, this is likely because the network core is enabled, and then, the pin P1.05 is used by the network core&amp;#39;s UART (if you look on the back of the DK, it is listed as an RTS pin (flow control in UART).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Actually, you will run into a similar issue if you were to build for the nRF5340dk_nrf5340_cpuapp if you try to add the 7002 Evaluation Kit, so there is an overlay file that disables the GPIO forwarding to the network core for this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/boards/shields/nrf7002ek/boards/nrf5340dk_nrf5340_cpuapp.overlay"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.5.0/boards/shields/nrf7002ek/boards/nrf5340dk_nrf5340_cpuapp.overlay&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Try to create your own overlay file called nrf7002dk_nrf5340_cpuapp.overlay, and include the last part of that overlay file into it:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;amp;gpio_fwd {
	status = &amp;quot;disabled&amp;quot;;
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will disable the pin forwarding that is initially set up in v2.5.0\nrf\boards\arm\nrf7002dk_nrf5340\nrf5340_cpuapp_common.dts on line 92:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	gpio_fwd: nrf-gpio-forwarder {
		compatible = &amp;quot;nordic,nrf-gpio-forwarder&amp;quot;;
		status = &amp;quot;okay&amp;quot;;
		uart {
			gpios = &amp;lt;&amp;amp;gpio1 1 0&amp;gt;, &amp;lt;&amp;amp;gpio1 0 0&amp;gt;, &amp;lt;&amp;amp;gpio1 5 0&amp;gt;, &amp;lt;&amp;amp;gpio1 4 0&amp;gt;;
		};
	};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Since you disable the UART gpios on the network core, you can also disable the logging on the network core, by adding a folder called &amp;quot;child_image&amp;quot;, and inside that, add a file called hci_rpmsg.conf. This will be added to your network core&amp;#39;s configuration. In it, add:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LOG=n
CONFIG_SERIAL=n
CONFIG_BOOT_BANNER=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Give that a go, and let me know if it doesn&amp;#39;t work.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509460?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 13:09:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7253f1cc-ce46-4a78-b96c-1ff18e51ef80</guid><dc:creator>SBou</dc:creator><description>&lt;p&gt;Hi Edvin, this the project&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/WallyMainBoard_5F00_DevZone.zip"&gt;devzone.nordicsemi.com/.../WallyMainBoard_5F00_DevZone.zip&lt;/a&gt;&amp;nbsp;we use the v2.5.0 SDK and this build config:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/ConfigCapture.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Here is a video with the debugging:&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://we.tl/t-FEHxqbYwmf"&gt;https://we.tl/t-FEHxqbYwmf&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509392?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 09:26:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc413a0a-7ca7-48f1-943c-c74d03554e5c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I have an external flash breakout board. Is it possible to upload your application, and I can test it on my end? Also, what SDK version are you using?&lt;/p&gt;
&lt;p&gt;Did you try to analyze the SPI communication using a logic analyzer? Does the traffic look different when BLE is enabled?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509381?ContentTypeID=1</link><pubDate>Thu, 07 Nov 2024 08:49:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73a48475-14c3-4fab-8290-45cd7d07df32</guid><dc:creator>SBou</dc:creator><description>&lt;p&gt;To add more info when CONFIG_BLE=y the signal&amp;nbsp;&lt;span&gt;&amp;nbsp;the CLK works but&lt;/span&gt;&amp;nbsp;MOSI doesn&amp;#39;t send nothing.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/9bd9b52f_2D00_2ade_2D00_42ca_2D00_8553_2D00_62bfcecb2c67.JPEG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730968369013v1.jpeg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If I set CONFIG_BLE=n I can see in MOSI the command to read status register on the flash mem.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/d190aa20_2D00_0f6f_2D00_49fa_2D00_a9a5_2D00_3bc2c0e7aa1a.JPEG" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730969098668v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509288?ContentTypeID=1</link><pubDate>Wed, 06 Nov 2024 15:03:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eaf6c99-0fe8-44b3-a5a3-11fd47991eab</guid><dc:creator>SBou</dc:creator><description>&lt;p&gt;Hi Edvin.&lt;/p&gt;
&lt;p&gt;Whith the&amp;nbsp;&lt;span&gt;CONFIG_BT&lt;/span&gt;&lt;span&gt;=y when I try to program the page on the flash memory the system still waiting the bit write enable latch (WEL) and this bit doesn&amp;#39;t change never.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know why happens this only when the&amp;nbsp;&lt;span&gt;CONFIG_BT is set on &amp;quot;y&amp;quot; and is initialized the BLE.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1730903736374v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To add more info the flash mem is conected on these pins:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/* SPI definition */
//! SPI MOSI PORT
#define HARDWARE_INIT_SPI_MOSI_PORT_NUMBER      1
//! SPI MOSI pin
#define HARDWARE_INIT_SPI_MOSI_PIN_NUMBER       5
//! SPI MISO PORT
#define HARDWARE_INIT_SPI_MISO_PORT_NUMBER      1
//! SPI MISO pin
#define HARDWARE_INIT_SPI_MISO_PIN_NUMBER       8
//! SPI SCLK PORT
#define HARDWARE_INIT_SPI_SCLK_PORT_NUMBER      1
//! SPI SCLK pin
#define HARDWARE_INIT_SPI_SCLK_PIN_NUMBER       6
//! SPI CS PORT
#define HARDWARE_INIT_SPI_CS_PORT_NUMBER        1
//! SPI CS pin
#define HARDWARE_INIT_SPI_CS_PIN_NUMBER         9&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE no compatible with SPI</title><link>https://devzone.nordicsemi.com/thread/509144?ContentTypeID=1</link><pubDate>Tue, 05 Nov 2024 14:53:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3f91d02-f943-417a-ad11-738ae513be38</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;So when it does not work, what happens? Do you see any error messages? Are the callbacks not triggering? Do you receive garbage data instead of &amp;quot;HelloWorld&amp;quot;?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>