<?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>Want to know how to replace string literal in compiled hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94030/want-to-know-how-to-replace-string-literal-in-compiled-hex-file</link><description>I am mentoring two college capstone teams on UWB projects using the Qorvo DWM3001CDK boards. These boards have the nRF52833 embedded and use the Nordic BLE stack/ 
 neither team has managed to figure out how to compile the source yet and I want to get</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Nov 2022 16:56:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94030/want-to-know-how-to-replace-string-literal-in-compiled-hex-file" /><item><title>RE: Want to know how to replace string literal in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/396745?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 16:56:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89b3a75e-b4c1-40e2-9d45-c63ff0bebaa0</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The Device Name is not in the SoftDevice but typically in the Application, although if only a single hex file is available that will include the SoftDevice. The Device Name usage can be explained by looking here, for example:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;ble-advertising-a-beginners-tutorial&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If lucky the device name is held in user data in UICR and not in the hex file, similar to (say) a MAC address:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Some manufacturers define a MAC address within NRF_UICR
// The 6-byte BLE Radio MAC address is stored in the nRF52832 UICR at NRF_UICR_BASE+0x80 LSB first.
// address during programming. Important: if full memory protection is enabled, not allowing the UICR to be read via the SWD interface.
// UICR Register:
// NRF_UICR + 0x80 (0x10001080): MAC_Addr [0] (0xZZ)
// NRF_UICR + 0x81 (0x10001081): MAC_Addr [1] (0xYY)
// NRF_UICR + 0x82 (0x10001082): MAC_Addr [2] (0xXX)
// NRF_UICR + 0x83 (0x10001083): MAC_Addr [3] (0x93)
// NRF_UICR + 0x84 (0x10001084): MAC_Addr [4] (0x54)
// NRF_UICR + 0x85 (0x10001085): MAC_Addr [5] (0x94)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Searching the UICR region might locate the Device Name .. unlikely though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to know how to replace string literal in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/396633?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2022 12:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20aa17e2-8c4b-4051-b6e6-fcd49d438a28</guid><dc:creator>Sigurd</dc:creator><description>[quote user="robogo"]&amp;quot;What the method of string encoding by the compiler?&amp;quot;[/quote]
&lt;p&gt;I would guess that depends on the compiler. SES supports AFAIK, both GCC and SEGGER Compiler. I think it&amp;#39;s better to spend the time to get the source code and compile it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to know how to replace string literal in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/396479?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 17:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c6fcec0-8db3-479e-b80e-9e7654585f51</guid><dc:creator>robogo</dc:creator><description>&lt;p&gt;we are. since tjhe bluetooth module is nordic&amp;#39;s code, I told the student teams to contact both Qorvo and Segger to get the compiler going.&lt;/p&gt;
&lt;p&gt;Can you just answer the question, &amp;quot;What the method of string encoding by the compiler?&amp;quot;&lt;br /&gt;I thought Nordic would be best placed to ask.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Want to know how to replace string literal in compiled hex file</title><link>https://devzone.nordicsemi.com/thread/396473?ContentTypeID=1</link><pubDate>Fri, 18 Nov 2022 16:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cd58e21-dc98-4f98-ba2b-6a5144bcfb69</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We can not help reverse engineer&amp;nbsp;a hex file. Maybe you can ask for help on how to compile the source code at the same place you found the hex file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>