<?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>SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35356/spim-not-calling-specified-evt-handler-upon-completion</link><description>Howdy, 
 I am using NRF5 SDK v15.0.0 on an nRF52810 custom PCB and am having a problem where the specified event handler is not being called upon completion of an SPIM transfer. Using a scope I can see that the transfer is occuring, but then the code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jun 2020 18:26:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35356/spim-not-calling-specified-evt-handler-upon-completion" /><item><title>RE: SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/thread/255098?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2020 18:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb23999d-760c-4b91-853c-a099a5a11afd</guid><dc:creator>jjifa</dc:creator><description>&lt;p&gt;&lt;span&gt;I am suffering from the spim problem of nRF52811.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;Does this bug show the same symptoms on the nRF52811 chip?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/thread/136026?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 03:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f99c9696-c396-4390-ac27-c79d0ddcf9c4</guid><dc:creator>F Iannce</dc:creator><description>&lt;p&gt;Ok.&amp;nbsp; I got bit by the SDK bug where nrfx_irqs_nrf52810.h defined SPIM1 as the IRQ instead of SPIM0 (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810/135175#135175"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35145/crashing-during-the-spi-transfer-on-nrf52810/135175#135175&lt;/a&gt;).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I did NOT need to set NRFX_SPI_ENABLE to 1 (I think this is only valid for the non-nRF52810 variants which have multiple SPI interfaces).&amp;nbsp; Fixing the&amp;nbsp;SDK bug, my code worked as originally written.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/thread/136018?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 23:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61924e8c-07d2-4f56-a479-7a2080dfc4c1</guid><dc:creator>F Iannce</dc:creator><description>&lt;p&gt;Setting NRFX_SPI_ENABLE to 1 didn&amp;#39;t work.&amp;nbsp; Still stuck with the default handler...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/thread/136017?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 22:50:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5c2771f-9c2f-4f5c-8ca1-9a7978615631</guid><dc:creator>F Iannce</dc:creator><description>&lt;p&gt;NRFX_PRS_ENABLED is set to 0.&amp;nbsp; I assume that I do not need PRS to use both TWIM0 and SPIM0?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;SPI_ENABLED opens up a whole can of worms.&amp;nbsp; I suspect that this is actually for the legacy drivers, although I am trying to use the NRFX drivers as recommended (even though there are absolutely no examples that use the NRFX interface (they all use the nrf_drv interface which makes using NRFX given the terse documentation extremely difficult)).&amp;nbsp; SPI_ENABLED goes through apply_old_config.h which I think tries to do some translations to back to legacy drivers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It does look like I may have to set NRFX_SPI_ENABLE to 1 in order for the IRQs to be compiled into the project.&amp;nbsp; The problem is that when I do so, it includes nrf_spi.h (via nrfx_spi.c) which includes a lot of NRF_SPI_* #defines that are present in the include files for the NRF52832 variants, but not those for the NRF52810 which only includes the NRF_SPIM_* form.&amp;nbsp; In short, the nrf52.h files include both NRF_SPI_* and NRF_SPIM_* #defines whereas the nrf52810.h files only have the NRF_SPIM_* forms.&amp;nbsp; nrfx_spi.c requires the NRF_SPI_* form, so my code won&amp;#39;t compile yet.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Right now I am going through and adding the missing definitions found in the nrf52 files into the associated nrf52810 files.&amp;nbsp; I do not know if this is appropriate, but I guess I&amp;#39;ll find out when done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SPIM not Calling Specified EVT Handler Upon Completion</title><link>https://devzone.nordicsemi.com/thread/135928?ContentTypeID=1</link><pubDate>Wed, 13 Jun 2018 12:36:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087cd3c2-5605-47a0-a56a-4f62c21c4d7b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I suspect that you&amp;#39;re going into the default_handler due to the interrupt vector not being compiled in.&lt;/p&gt;
&lt;p&gt;Do you have sdk_config.h::SPI_ENABLED defined to &amp;#39;1&amp;#39;?&lt;/p&gt;
&lt;p&gt;It could also be that the peripheral sharing module nrfx_prs is enabled in your sdk_config.h (NRFX_PRS_ENABLED), but not included in the project. If this is the case, then set&amp;nbsp;NRFX_PRS_ENABLED 0.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;H&amp;aring;kon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>