<?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>nRF5340 shockburst software CRC calculation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89632/nrf5340-shockburst-software-crc-calculation</link><description>Dear nordic team, 
 we are successfully communicating our old nRF2401 shockburst design to a nRF5340 board; except for the CRC. 
 The challenge: the nRF2401 shockburst allowed payload lengths which are not multiples of bytes. Our payload length is 95</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jul 2022 15:11:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89632/nrf5340-shockburst-software-crc-calculation" /><item><title>RE: nRF5340 shockburst software CRC calculation</title><link>https://devzone.nordicsemi.com/thread/375609?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 15:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08b26af5-b0e2-4650-92eb-975199bd32fd</guid><dc:creator>ubat</dc:creator><description>&lt;p&gt;It&amp;#39;s working now, thanks to Kenneth. Using the SPI data order of the nRF2401 did the trick.&lt;/p&gt;
&lt;p&gt;For a bit-wise C implementation of the employed CRC one can e.g. use this one&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/27332600/crc-bit-order-confusion"&gt;c - CRC bit-order confusion - Stack Overflow&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 shockburst software CRC calculation</title><link>https://devzone.nordicsemi.com/thread/375551?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 11:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0521a4-c8e5-415a-bdf7-69c8c73d4fde</guid><dc:creator>ubat</dc:creator><description>&lt;p&gt;Thank you! So the nRF2401 SPI has got the same bit-order as on-air, that&amp;#39;s good to know! We do have a VHDL code for that, so i will go by that.&lt;/p&gt;
&lt;p&gt;Most CRC calculators go byte-wise, yup - using a bit-wise shift-register approach like in a FPGA here &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Uli&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 shockburst software CRC calculation</title><link>https://devzone.nordicsemi.com/thread/375503?ContentTypeID=1</link><pubDate>Tue, 05 Jul 2022 09:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd883461-f45b-4451-b410-a4a37902f5bd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Only the address and payload is calculated in this case yes. The order is the order the bits are sent on-air for both address and payload (the easiest may be to just connect a logic analyzer to the SPI pins of the nRF2401 to check the bit order, both the address and payload are clocked in for each transmission from the nRF2401). If you are using 95-bits for the payload, I assume this becomes difficult to calculate, at least&amp;nbsp;with various crc calculators online due to the non-byte aligned bitstream.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 shockburst software CRC calculation</title><link>https://devzone.nordicsemi.com/thread/375362?ContentTypeID=1</link><pubDate>Mon, 04 Jul 2022 14:21:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:193c0020-5d17-4c7d-9dee-1768603e75be</guid><dc:creator>ubat</dc:creator><description>&lt;p&gt;&lt;span&gt;Small corrigendum: &amp;quot;Our payload length is 95 &lt;em&gt;bit&lt;/em&gt;.&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>