<?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>NRF_ECB peripheral does not always generate ENDECB event?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53468/nrf_ecb-peripheral-does-not-always-generate-endecb-event</link><description>Hi, 
 We use the ECB peripheral to encrypt and decrypt data with a proprietary driver implementation (which is not that different from the one in the SDK). It is working fine most of the time, but on rare occasions it appears to hang while waiting for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2019 08:30:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53468/nrf_ecb-peripheral-does-not-always-generate-endecb-event" /><item><title>RE: NRF_ECB peripheral does not always generate ENDECB event?</title><link>https://devzone.nordicsemi.com/thread/217687?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2019 08:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eaee8aa-a3d8-45f6-86b9-38312b0aecd6</guid><dc:creator>faberd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your response. Turned out we were suffering from a memory corruption bug, that caused this behavior. So it is no longer an issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF_ECB peripheral does not always generate ENDECB event?</title><link>https://devzone.nordicsemi.com/thread/216063?ContentTypeID=1</link><pubDate>Tue, 22 Oct 2019 07:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5150743c-ce6a-4147-9fee-f41f4590ce66</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This should not happen, and I have not found any previous reports of this. The expected behavior is that ENDECB is always (and only) generated after the START task was triggered and block encryption has successfully been run to the end without being interrupted or corrupted. If not,&amp;nbsp;ERRORECB should be generated. (Always one or the other).&lt;/p&gt;
&lt;p&gt;I am not aware of any other way of handling this since you write that you don&amp;#39;t get the&amp;nbsp;ERRORECB vent in this case (which should not happen). But you should get events every time. Could it be that you lose it in your firmware somehow? Missing consecutive interrupts, or putting the event in a queue with some issues or something similar?&lt;/p&gt;
&lt;p&gt;Do you have some code and a procedure that reproduces this on the DK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>