<?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>BLE packet endianess in S140 is not updated</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74215/ble-packet-endianess-in-s140-is-not-updated</link><description>Hi, 
 I try to change the endianess of transmitted data from Little Endian to Big Endian. 
 So for example when I want to transmit a value uint32_t valueTx = 0xAABBCCDD 
 the received value on smartphone to be 0xAABBCCDD and not 0xDDCCBBAA 
 To do that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Apr 2021 11:13:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74215/ble-packet-endianess-in-s140-is-not-updated" /><item><title>RE: BLE packet endianess in S140 is not updated</title><link>https://devzone.nordicsemi.com/thread/306066?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 11:13:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc46b44f-80b2-40d5-aa56-15c0c3b12487</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Bytes of the payload are transmitted in the order they reside in memory and you cannot change that. That is the byte order is always little endian (LSByte first), while bit order depends on PCNF1?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;NRF_RADIO-&amp;gt;PCNF1 = RADIO_PCNF1_ENDIAN_Big &amp;lt;&amp;lt; RADIO_PCNF1_ENDIAN_Pos;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But when I run the code the endianess is still the same (little).&lt;/p&gt;[/quote]
&lt;p&gt;The PCNF1 configuration will only change the endianness of the bit order and not the byteorder.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>