<?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>Setting up SPIS with Interrupts using Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118536/setting-up-spis-with-interrupts-using-zephyr</link><description>Howdy, 
 I am currently working on the nRF52840 chip and trying to convert my SPIS code from being in my main while loop into being interrupt driven. I am using Zephyr to do this, but having trouble figuring out how the interrupt should be attached. I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Feb 2025 16:31:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118536/setting-up-spis-with-interrupts-using-zephyr" /><item><title>RE: Setting up SPIS with Interrupts using Zephyr</title><link>https://devzone.nordicsemi.com/thread/521609?ContentTypeID=1</link><pubDate>Wed, 05 Feb 2025 16:31:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ecefc2-10c3-400d-970e-c3486b1d8254</guid><dc:creator>TheLoneRanger</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;this helped a lot. I discovered that in the config the system needs &amp;quot;&lt;span&gt;CONFIG_SPI_ASYNC&lt;/span&gt;&lt;span&gt;=y&amp;quot; for it to also run asynchronously. I also implemented a semaphore to handle the controlling of the system in the place of directly using the ISR for the SPI.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting up SPIS with Interrupts using Zephyr</title><link>https://devzone.nordicsemi.com/thread/521075?ContentTypeID=1</link><pubDate>Mon, 03 Feb 2025 10:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2f65905-2ae6-45a2-a633-6fda9d6963c5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Normally I refer to the zephyr test examples for a specific driver, for instance I can that the following use CONFIG_SPI_SLAVE=y (&lt;span&gt;also have an board overlay for the nRF52840):&lt;/span&gt;&lt;br /&gt;\nrf\tests\benchmarks\spi_endless\&lt;br /&gt;\zephyr\tests\drivers\spi\spi_controller_peripheral\&lt;br /&gt;\zephyr\tests\drivers\spi\spi_error_cases\&lt;/p&gt;
&lt;p&gt;I can also find a colleague shared a code example here while debugging an issue:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/110541/spis-buffer-cannot-receive-more-than-64-bytes/480602"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/110541/spis-buffer-cannot-receive-more-than-64-bytes/480602&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also find an example here:&lt;br /&gt;&lt;a href="https://github.com/too1/ncs-spi-master-slave-example/tree/master"&gt;https://github.com/too1/ncs-spi-master-slave-example/tree/master&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope that helps as example,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>