<?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 with Audio Example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102306/spi-with-audio-example</link><description>Hi, 
 I would like to add SPI receiving functionality to nrf5340_audio application. I have been looking for some examples of SPI slave in general, but I am a bit confuzed which API should be used: nrfx_spi (nordic specifc) or zephyr generic API? I see</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Sep 2023 05:27:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102306/spi-with-audio-example" /><item><title>RE: SPI with Audio Example</title><link>https://devzone.nordicsemi.com/thread/444612?ContentTypeID=1</link><pubDate>Wed, 06 Sep 2023 05:27:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c02dcabc-93a1-49d9-883b-5661aaa5b45c</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I had to change name from .config to config.txt. I wonder if there is a simple tutorial how to add spi, i2c and so on to the nrf connect sdk application? It really shouldn&amp;#39;t be that complex. With nrf5 sdk it would take me 2 minutes.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Michal&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5633.config.txt"&gt;devzone.nordicsemi.com/.../5633.config.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with Audio Example</title><link>https://devzone.nordicsemi.com/thread/442055?ContentTypeID=1</link><pubDate>Fri, 18 Aug 2023 10:44:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5d25dee-7e1a-48a2-a9bb-d89eb091143c</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Could I see the file at &amp;lt;build&amp;gt;/zephyr/.config ?&lt;/p&gt;
&lt;p&gt;To add a devicetree overlay, add a file with the same name as your board and file ending .overlay to your project folder. &lt;br /&gt;example: nrf5340_audio_dk_nrf5340_cpuapp.overlay&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with Audio Example</title><link>https://devzone.nordicsemi.com/thread/440619?ContentTypeID=1</link><pubDate>Thu, 10 Aug 2023 06:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee7557a5-e0a6-4bfe-99d2-6adfe3d8e8c0</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am getting compile errors, that&amp;#39;s why I am wondering how to properly include SPI. Here is a full error log:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;In file included from c:\gnuarmemb\arm-none-eabi\include\sys\_types.h:159,
                 from c:\gnuarmemb\arm-none-eabi\include\sys\reent.h:15,
                 from c:\gnuarmemb\arm-none-eabi\include\sys\errno.h:11,
                 from c:\gnuarmemb\arm-none-eabi\include\errno.h:9,
                 from C:/le-audio-speaker/v2.3.0/zephyr/include/zephyr/drivers/gpio.h:18,
                 from C:/le-audio-speaker/v2.3.0/zephyr/include/zephyr/drivers/spi.h:26,
                 from C:/le-audio-speaker/v2.3.0/zephyr/drivers/spi/spi_nrfx_spi.c:7:
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:70:36: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;
   70 |     NRF_SPI_EVENT_READY = offsetof(NRF_SPI_Type, EVENTS_READY) ///&amp;lt; TXD byte sent and RXD byte received.
      |                                    ^~~~~~~~~~~~
In file included from C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/drivers/include/nrfx_spi.h:38,
                 from C:/le-audio-speaker/v2.3.0/zephyr/drivers/spi/spi_nrfx_spi.c:11:
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:76:30: error: &amp;#39;SPI_INTENSET_READY_Msk&amp;#39; undeclared here (not in a function); did you mean &amp;#39;QSPI_INTENSET_READY_Msk&amp;#39;?
   76 |     NRF_SPI_INT_READY_MASK = SPI_INTENSET_READY_Msk, ///&amp;lt; Interrupt on READY event.
      |                              ^~~~~~~~~~~~~~~~~~~~~~
      |                              QSPI_INTENSET_READY_Msk
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:83:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_K125&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_K125&amp;#39;?
   83 |     NRF_SPI_FREQ_125K = SPI_FREQUENCY_FREQUENCY_K125,   ///&amp;lt; 125 kbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_K125
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:84:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_K250&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_K250&amp;#39;?
   84 |     NRF_SPI_FREQ_250K = SPI_FREQUENCY_FREQUENCY_K250,   ///&amp;lt; 250 kbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_K250
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:85:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_K500&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_K500&amp;#39;?
   85 |     NRF_SPI_FREQ_500K = SPI_FREQUENCY_FREQUENCY_K500,   ///&amp;lt; 500 kbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_K500
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:86:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_M1&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_M1&amp;#39;?
   86 |     NRF_SPI_FREQ_1M   = SPI_FREQUENCY_FREQUENCY_M1,     ///&amp;lt; 1 Mbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_M1
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:87:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_M2&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_M2&amp;#39;?
   87 |     NRF_SPI_FREQ_2M   = SPI_FREQUENCY_FREQUENCY_M2,     ///&amp;lt; 2 Mbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_M2
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:88:25: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_M4&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_M4&amp;#39;?
   88 |     NRF_SPI_FREQ_4M   = SPI_FREQUENCY_FREQUENCY_M4,     ///&amp;lt; 4 Mbps.
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                         SPIM_FREQUENCY_FREQUENCY_M4
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:91:30: error: &amp;#39;SPI_FREQUENCY_FREQUENCY_M8&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_FREQUENCY_FREQUENCY_M8&amp;#39;?
   91 |     NRF_SPI_FREQ_8M   = (int)SPI_FREQUENCY_FREQUENCY_M8 ///&amp;lt; 8 Mbps.
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                              SPIM_FREQUENCY_FREQUENCY_M8
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:106:35: error: &amp;#39;SPI_CONFIG_ORDER_MsbFirst&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_CONFIG_ORDER_MsbFirst&amp;#39;?
  106 |     NRF_SPI_BIT_ORDER_MSB_FIRST = SPI_CONFIG_ORDER_MsbFirst, ///&amp;lt; Most significant bit shifted out first.
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   SPIM_CONFIG_ORDER_MsbFirst
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:107:35: error: &amp;#39;SPI_CONFIG_ORDER_LsbFirst&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SPIM_CONFIG_ORDER_LsbFirst&amp;#39;?
  107 |     NRF_SPI_BIT_ORDER_LSB_FIRST = SPI_CONFIG_ORDER_LsbFirst  ///&amp;lt; Least significant bit shifted out first.
      |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                   SPIM_CONFIG_ORDER_LsbFirst
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:117:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  117 | NRF_STATIC_INLINE void nrf_spi_event_clear(NRF_SPI_Type *  p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:129:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  129 | NRF_STATIC_INLINE bool nrf_spi_event_check(NRF_SPI_Type const * p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:140:54: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  140 | NRF_STATIC_INLINE uint32_t nrf_spi_event_address_get(NRF_SPI_Type const * p_reg,
      |                                                      ^~~~~~~~~~~~
      |                                                      NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:149:43: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  149 | NRF_STATIC_INLINE void nrf_spi_int_enable(NRF_SPI_Type * p_reg,
      |                                           ^~~~~~~~~~~~
      |                                           NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:158:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  158 | NRF_STATIC_INLINE void nrf_spi_int_disable(NRF_SPI_Type * p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:169:53: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  169 | NRF_STATIC_INLINE uint32_t nrf_spi_int_enable_check(NRF_SPI_Type const * p_reg, uint32_t mask);
      |                                                     ^~~~~~~~~~~~
      |                                                     NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:176:39: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  176 | NRF_STATIC_INLINE void nrf_spi_enable(NRF_SPI_Type * p_reg);
      |                                       ^~~~~~~~~~~~
      |                                       NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:183:40: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  183 | NRF_STATIC_INLINE void nrf_spi_disable(NRF_SPI_Type * p_reg);
      |                                        ^~~~~~~~~~~~
      |                                        NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:196:41: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  196 | NRF_STATIC_INLINE void nrf_spi_pins_set(NRF_SPI_Type * p_reg,
      |                                         ^~~~~~~~~~~~
      |                                         NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:208:48: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  208 | NRF_STATIC_INLINE uint32_t nrf_spi_sck_pin_get(NRF_SPI_Type const * p_reg);
      |                                                ^~~~~~~~~~~~
      |                                                NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:217:49: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  217 | NRF_STATIC_INLINE uint32_t nrf_spi_mosi_pin_get(NRF_SPI_Type const * p_reg);
      |                                                 ^~~~~~~~~~~~
      |                                                 NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:226:49: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  226 | NRF_STATIC_INLINE uint32_t nrf_spi_miso_pin_get(NRF_SPI_Type const * p_reg);
      |                                                 ^~~~~~~~~~~~
      |                                                 NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:234:40: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  234 | NRF_STATIC_INLINE void nrf_spi_txd_set(NRF_SPI_Type * p_reg, uint8_t data);
      |                                        ^~~~~~~~~~~~
      |                                        NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:243:43: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  243 | NRF_STATIC_INLINE uint8_t nrf_spi_rxd_get(NRF_SPI_Type const * p_reg);
      |                                           ^~~~~~~~~~~~
      |                                           NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:251:46: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  251 | NRF_STATIC_INLINE void nrf_spi_frequency_set(NRF_SPI_Type *      p_reg,
      |                                              ^~~~~~~~~~~~
      |                                              NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:261:42: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  261 | NRF_STATIC_INLINE void nrf_spi_configure(NRF_SPI_Type *      p_reg,
      |                                          ^~~~~~~~~~~~
      |                                          NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:268:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  268 | NRF_STATIC_INLINE void nrf_spi_event_clear(NRF_SPI_Type *  p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:275:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  275 | NRF_STATIC_INLINE bool nrf_spi_event_check(NRF_SPI_Type const * p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:281:54: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  281 | NRF_STATIC_INLINE uint32_t nrf_spi_event_address_get(NRF_SPI_Type const * p_reg,
      |                                                      ^~~~~~~~~~~~
      |                                                      NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:287:43: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  287 | NRF_STATIC_INLINE void nrf_spi_int_enable(NRF_SPI_Type * p_reg,
      |                                           ^~~~~~~~~~~~
      |                                           NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:293:44: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  293 | NRF_STATIC_INLINE void nrf_spi_int_disable(NRF_SPI_Type * p_reg,
      |                                            ^~~~~~~~~~~~
      |                                            NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:299:53: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  299 | NRF_STATIC_INLINE uint32_t nrf_spi_int_enable_check(NRF_SPI_Type const * p_reg, uint32_t mask)
      |                                                     ^~~~~~~~~~~~
      |                                                     NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:304:39: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  304 | NRF_STATIC_INLINE void nrf_spi_enable(NRF_SPI_Type * p_reg)
      |                                       ^~~~~~~~~~~~
      |                                       NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:309:40: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  309 | NRF_STATIC_INLINE void nrf_spi_disable(NRF_SPI_Type * p_reg)
      |                                        ^~~~~~~~~~~~
      |                                        NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:314:41: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  314 | NRF_STATIC_INLINE void nrf_spi_pins_set(NRF_SPI_Type * p_reg,
      |                                         ^~~~~~~~~~~~
      |                                         NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:338:48: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  338 | NRF_STATIC_INLINE uint32_t nrf_spi_sck_pin_get(NRF_SPI_Type const * p_reg)
      |                                                ^~~~~~~~~~~~
      |                                                NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:347:49: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  347 | NRF_STATIC_INLINE uint32_t nrf_spi_mosi_pin_get(NRF_SPI_Type const * p_reg)
      |                                                 ^~~~~~~~~~~~
      |                                                 NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:356:49: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  356 | NRF_STATIC_INLINE uint32_t nrf_spi_miso_pin_get(NRF_SPI_Type const * p_reg)
      |                                                 ^~~~~~~~~~~~
      |                                                 NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:365:40: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  365 | NRF_STATIC_INLINE void nrf_spi_txd_set(NRF_SPI_Type * p_reg, uint8_t data)
      |                                        ^~~~~~~~~~~~
      |                                        NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:370:43: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  370 | NRF_STATIC_INLINE uint8_t nrf_spi_rxd_get(NRF_SPI_Type const * p_reg)
      |                                           ^~~~~~~~~~~~
      |                                           NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:375:46: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  375 | NRF_STATIC_INLINE void nrf_spi_frequency_set(NRF_SPI_Type *      p_reg,
      |                                              ^~~~~~~~~~~~
      |                                              NRF_QSPI_Type
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/hal/nrf_spi.h:381:42: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;; did you mean &amp;#39;NRF_QSPI_Type&amp;#39;?
  381 | NRF_STATIC_INLINE void nrf_spi_configure(NRF_SPI_Type *      p_reg,
      |                                          ^~~~~~~~~~~~
      |                                          NRF_QSPI_Type
In file included from C:/le-audio-speaker/v2.3.0/zephyr/drivers/spi/spi_nrfx_spi.c:11:
C:/le-audio-speaker/v2.3.0/modules/hal/nordic/nrfx/drivers/include/nrfx_spi.h:55:5: error: unknown type name &amp;#39;NRF_SPI_Type&amp;#39;
   55 |     NRF_SPI_Type * p_reg;        ///&amp;lt; Pointer to a structure with SPI registers.
      |     ^~~~~~~~~~~~
C:/le-audio-speaker/v2.3.0/zephyr/drivers/spi/spi_nrfx_spi.c:323:12: warning: &amp;#39;spi_nrfx_init&amp;#39; defined but not used [-Wunused-function]
  323 | static int spi_nrfx_init(const struct device *dev)
      |            ^~~~~~~~~~~~~
C:/le-audio-speaker/v2.3.0/zephyr/drivers/spi/spi_nrfx_spi.c:270:36: warning: &amp;#39;spi_nrfx_driver_api&amp;#39; defined but not used [-Wunused-const-variable=]
  270 | static const struct spi_driver_api spi_nrfx_driver_api = {
      |                                    ^~~~~~~~~~~~~~~~~~~
[20/243] Building C object zephyr/drivers/flash/CMakeFiles/drivers__flash.dir/soc_flash_nrf.c.obj
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: &amp;#39;C:\Program Files\CMake\bin\cmake.EXE&amp;#39; --build &amp;#39;C:\le-audio-speaker\v2.3.0\nrf\applications\nrf5340_audio\build\dev_gateway\build_release&amp;#39;
Traceback (most recent call last):
  File &amp;quot;C:\le-audio-speaker\v2.3.0\nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py&amp;quot;, line 406, in &amp;lt;module&amp;gt;
    __main()
  File &amp;quot;C:\le-audio-speaker\v2.3.0\nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py&amp;quot;, line 389, in __main
    __build_module(build_cfg, options)
  File &amp;quot;C:\le-audio-speaker\v2.3.0\nrf\applications\nrf5340_audio\tools\buildprog\buildprog.py&amp;quot;, line 149, in __build_module
    raise Exception(&amp;quot;cmake error: &amp;quot; + str(ret_val))
Exception: cmake error: 1&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t set up Nrf Connect SDK support in Visual Studio for some reasons,&amp;nbsp;how do I manually add devicetree overlay ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPI with Audio Example</title><link>https://devzone.nordicsemi.com/thread/439501?ContentTypeID=1</link><pubDate>Wed, 02 Aug 2023 12:39:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45cb59b3-20ee-4d98-b544-5b6fdfea1aab</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Michal,&lt;br /&gt;&lt;br /&gt;Thank you for your patience with this.&lt;/p&gt;
[quote user=""]I have been looking for some examples of SPI slave in general, but I am a bit confuzed which API should be used: nrfx_spi (nordic specifc) or zephyr generic API? I see i2s is using nordic specific API. So far I have added&amp;nbsp;[/quote]
&lt;p&gt;You can use the generic Zephyr API, which will route to the NRFX API behind the scenes, since the SPI peripheral is nrfx compatible (as described in its devicetree)&lt;/p&gt;
[quote user=""]to my KConfig.defaults, but I am still getting some errors, when I try to set up SPIS communication.[/quote]
&lt;p&gt;Could you elaborate on which errors you are getting? Is this compile time errors, or runtime?&lt;/p&gt;
[quote user=""]What are proper steps to include SPI in nrf5340_audio application ?[/quote]
&lt;p&gt;The general approach is to add it to your device tree overlay file, and then enable and configure the necessary kconfig options (such as in your prj.conf file).&lt;br /&gt;You can use the &amp;#39;Devicetree&amp;#39;&amp;nbsp;&lt;em&gt;action&lt;/em&gt; in Visual Studio code to more easily make the necessary changes to your existing application&amp;#39;s device tree.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>