<?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>SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84421/spi-async-comms-between-2-nrf52dk-boards-using-zephir-nrf-connect-sdk-v1-8-0</link><description>I have to implement async communication between two nRF52832 chips. I am using two nRF52dk boards and nRF Connect SDK v1.8.0. 
 Following this case: 
 https://devzone.nordicsemi.com/f/nordic-q-a/69034/nrf52840-spi-slave-configuration-event_handler 
 Based</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Feb 2022 10:31:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84421/spi-async-comms-between-2-nrf52dk-boards-using-zephir-nrf-connect-sdk-v1-8-0" /><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/352012?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:31:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fa973ad-88f9-461b-9ada-694c7a571edf</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Sorry this took some time, I needed to do some digging on my end. You are right, the CONFIG_SPI_1=y was no longer required as of NCS v1.7.0, so it makes sense that v1.8.0&amp;nbsp;returned this error. I also took the time to test this on my end. Using the SPI_TEST and SPIS_TEST example projects from my colleague Sigurd&amp;#39;s Github repo &lt;a href="https://github.com/sigurdnev/ncs-playground/tree/master/samples"&gt;available here&lt;/a&gt;. By making&amp;nbsp;some small changes to the prj.conf files and setting the pins to available ones on my DK I was able to get two nRF52840 DKs running an SPI test as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;SPIS prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
# CONFIG_BOARD_ENABLE_CPUNET=y
CONFIG_SPI=y
CONFIG_MAIN_STACK_SIZE=4096
# CONFIG_SPI_1=y
CONFIG_SPI_SLAVE=y
# CONFIG_SPI_1_OP_MODES=1
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;SPI prj.conf:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#
# Copyright (c) 2020 Nordic Semiconductor ASA
#
# SPDX-License-Identifier: LicenseRef-BSD-5-Clause-Nordic
#
# CONFIG_BOARD_ENABLE_CPUNET=n
CONFIG_SPI=y
CONFIG_MAIN_STACK_SIZE=4096
# CONFIG_SPI_0=y
# UART, SPIM, and I2C are shared peripherals on nrf9160
# therefore we choose SPI3
# CONFIG_SPI_1=y
CONFIG_SPI_NRFX=y
# CONFIG_DEPRECATED_ZEPHYR_INT_TYPES=y
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/352002?ContentTypeID=1</link><pubDate>Wed, 09 Feb 2022 10:12:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc337cba-40da-458b-98e5-9bdf044952d6</guid><dc:creator>Ignacio</dc:creator><description>&lt;p&gt;Any update? Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/351699?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 08:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b9a252c-ebc3-4027-95f1-e3c55aa3ccc1</guid><dc:creator>Ignacio</dc:creator><description>&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1644310078352v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The error only happens after adding&amp;nbsp; CONFIG_SPI_1=y to prj.conf file. This is a ceteris paribus test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/351681?ContentTypeID=1</link><pubDate>Tue, 08 Feb 2022 07:29:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df042e90-715f-4ac6-aa6d-ef7e29e35ca1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Have you added this config in the Kconfig file or the prj.conf file? The CMake error seems to come from&amp;nbsp;&lt;strong&gt;C:/v1.8.0/v1.8.0/zephyr/cmake/kconfig.cmake:270&lt;/strong&gt;. What is located at this line?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/351553?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 13:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d52fb1b-589f-44bf-bc41-88ae611de8bb</guid><dc:creator>Ignacio</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for your help. Adding that line to the prj.conf file will cause the CMake script to fail:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="bat"&gt;
  
  CMake Error at C:/v1.8.0/v1.8.0/zephyr/cmake/kconfig.cmake:270 (message):
    command failed with return code: 1
  Call Stack (most recent call first):
    C:/v1.8.0/v1.8.0/zephyr/cmake/app/boilerplate.cmake:546 (include)
    C:/v1.8.0/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:24 (include)
    C:/v1.8.0/v1.8.0/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:40 (include_boilerplate)
    CMakeLists.txt:27 (find_package)
  
  
  
  error: cmake failed
  create_nordic_project.py failed (1)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I could not find that option listed in the Kconfig documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index-all.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index-all.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you check that line?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI async comms between 2 nRF52dk boards using zephir (nRF Connect SDK v1.8.0)</title><link>https://devzone.nordicsemi.com/thread/351538?ContentTypeID=1</link><pubDate>Mon, 07 Feb 2022 12:53:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4696d165-4801-47ea-9336-aac46c6c1b62</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;It looks like you haven&amp;#39;t enabled the SPI 1 instance in your prj.conf. Please set &lt;strong&gt;CONFIG_SPI_1=y&amp;nbsp;&lt;/strong&gt;to enable this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>