<?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>NRF52 Radio CCM errors</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76071/nrf52-radio-ccm-errors</link><description>I&amp;#39;m working with a proprietary RF protocol on the nRF52832 rev2. I&amp;#39;m noticing that I sometimes receive bad data over the radio even though the CRC is correct (intermittently, ~1/min). I believe it is an issue somehow related to encryption, because when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Jun 2021 18:32:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76071/nrf52-radio-ccm-errors" /><item><title>RE: NRF52 Radio CCM errors</title><link>https://devzone.nordicsemi.com/thread/314283?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 18:32:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e15ca9-5c86-4281-a40d-b1a857ce4381</guid><dc:creator>freelon</dc:creator><description>&lt;p&gt;Hmm, ok I&amp;#39;ll try comparing our code to that. We do use the pre-programmed PPI channel 25 on rx, but not on tx.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Radio CCM errors</title><link>https://devzone.nordicsemi.com/thread/314157?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 09:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6caf9c7-1e88-49d7-bd90-e30a048a186f</guid><dc:creator>Sigurd</dc:creator><description>[quote user="freelon"]But essentially my issue is I get ccm failures with bigger payloads, but not smaller ones and I was wondering if this is a known issue?[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not aware of any issues here.&lt;/p&gt;
&lt;p&gt;I took a look at the Zephyr BLE LL, and &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/6d2b8c7b17aabf54c6120bbf79cf432add0956b1/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/radio.c#L1303"&gt;here&lt;/a&gt;, and it uses the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ppi.html#preprogrammed_channels"&gt;pre-programmed PPI channel&lt;/a&gt;&amp;nbsp;25, to trigger TASKS_CRYPT (triggers on RADIO-&amp;gt;EVENTS_ADDRESS). Maybe you can try something similar in your code, assuming it fits your use-case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Radio CCM errors</title><link>https://devzone.nordicsemi.com/thread/314019?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 17:38:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a10082a3-0a8e-4bde-bef6-475e04a13a4b</guid><dc:creator>freelon</dc:creator><description>&lt;p&gt;The code I was referring to is in the proprietary rf protocol I mentioned.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;But essentially my issue is I get ccm failures with bigger payloads, but not smaller ones and I was wondering if this is a known issue?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 Radio CCM errors</title><link>https://devzone.nordicsemi.com/thread/313909?ContentTypeID=1</link><pubDate>Mon, 07 Jun 2021 12:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cfcec45-39ba-4c0a-90aa-aea95c5bfc6a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I noticed that in the code, the CCM is configured with the PPI module starting the encryption after the&amp;nbsp;ENDKSGEN event is fired, with a note saying that using the shortcut results in failure with bigger payloads.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;I&amp;#39;m not sure what code and note you are referring to here.&lt;/p&gt;
&lt;p&gt;We have a&amp;nbsp;example that implements a simple encryption library based on the CCM module here, you might find that helpful:&lt;br /&gt;&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/nrf52-esb-ccm-example/tree/master"&gt;https://github.com/NordicPlayground/nrf52-esb-ccm-example/tree/master&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>