<?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>Unable to assign an SPI End Event to a DPPI channel on nRF5340dk</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70761/unable-to-assign-an-spi-end-event-to-a-dppi-channel-on-nrf5340dk</link><description>Hi, everyone, 
 I&amp;#39;m trying to assign an SPI End Event to a DPPI channel on nRF5340dk to trigger a counter automatically. However, the value of the counter never increases. 
 If I assign the count task of the counter to a GPIOTE in event, the counter value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Jan 2021 17:37:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70761/unable-to-assign-an-spi-end-event-to-a-dppi-channel-on-nrf5340dk" /><item><title>RE: Unable to assign an SPI End Event to a DPPI channel on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/290819?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 17:37:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ffe2dce-d038-4112-95f6-075e597f1405</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think that the problem is that you have used&amp;nbsp;nrfx_spim_end_event_get(&amp;amp;spi) for the second argument, and not the event itself (&lt;span&gt;NRF_SPIM_EVENT_END&lt;/span&gt;). &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v2.4.0/drivers/src/nrfx_spim.c#L728-L732"&gt;nrfx_spim_end_event_get&lt;/a&gt;&lt;span&gt;() will return the address of the event (including the SPIM instance base address), while the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v2.4.0/hal/nrf_spim.h#L657-L663"&gt;nrf_spim_publish_set&lt;/a&gt;() expects only the event offset from the base address, the base address of the instance will be added inside this function as well.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;Jørgen&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to assign an SPI End Event to a DPPI channel on nRF5340dk</title><link>https://devzone.nordicsemi.com/thread/290642?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2021 05:57:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2431e0e4-b356-4f32-930d-7f2486ed1c6d</guid><dc:creator>Jason Lei</dc:creator><description>&lt;p&gt;I replaced the&amp;nbsp;nrf_spim_publish_set() code with a direct register operation:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;NRF_SPIM4-&amp;gt;PUBLISH_END = 0x80000001;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And it worked.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think there&amp;#39;s something wrong with the&amp;nbsp;&lt;span&gt;nrf_spim_publish_set() function.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>