<?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>--memwr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109582/--memwr</link><description>Hello, 
 Can you please tell me the allowed formats of &amp;lt;val&amp;gt; in the command below. Until now I only used the Hex format, can I use decimal values? 
 --memwr &amp;lt;addr&amp;gt; --val &amp;lt;val&amp;gt; [--verify] 
 
 Thank you. 
 Kind regards 
 Mohamed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Apr 2024 08:15:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109582/--memwr" /><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/477726?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2024 08:15:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5578e50-9e4f-4e76-ad09-b028e88cc172</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Good Morning Hieu,&lt;/p&gt;
&lt;p&gt;Understood.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/477655?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 17:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f52aaf44-405b-4267-9ee1-4b3759021d0d</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t state anywhere whether negative value should be&amp;nbsp;accepted or not. However, I find it reasonable that negative values don&amp;#39;t work. The reason is because we are working with memory binaries, where everything is unsigned.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/477635?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 14:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef8f5de1-4dd6-4b9e-a96d-d22ca41e5c78</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;It looks like memwr does not accept negative decimal values, should it?. See error below.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfjprog --recover&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Recovering device. This operation might take 30s.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Writing image to disable ap protect.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Erasing user code and UICR flash areas.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;nrfjprog --memwr 0x10001084 --val -100 --verify&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Parsing parameters.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ERROR: Argument provided has a wrong value. Memory access not aligned, value&lt;/em&gt;&lt;br /&gt;&lt;em&gt;ERROR: outside of range or similar.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;NOTE: For additional output, try running again with logging enabled (--log).&lt;/em&gt;&lt;br /&gt;&lt;em&gt;NOTE: Any generated log error messages will be displayed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/476093?ContentTypeID=1</link><pubDate>Wed, 27 Mar 2024 10:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f2060b-8397-4760-9b48-04a54cdcf26e</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/476005?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 17:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e8ba480-f8e5-474d-9961-2ba9f3177c19</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;That is right, the read always return a hex value. If everything is clear, please close the ticket at your convenience.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/476001?ContentTypeID=1</link><pubDate>Tue, 26 Mar 2024 16:27:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f21be0d-5eba-49bc-8f8f-b0597e71fdc4</guid><dc:creator>Learner</dc:creator><description>&lt;p&gt;Hi Hieu,&lt;/p&gt;
&lt;p&gt;Thank you. I tried decimal values and it worked for me too. I noticed the read always returns a Hex value.&lt;/p&gt;
&lt;p&gt;Kind regards&lt;/p&gt;
&lt;p&gt;Mohamed&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: --memwr</title><link>https://devzone.nordicsemi.com/thread/475678?ContentTypeID=1</link><pubDate>Mon, 25 Mar 2024 14:07:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9701af69-5462-4c4e-ae0e-b063638426d6</guid><dc:creator>Hieu</dc:creator><description>&lt;p&gt;Hi Mohamed,&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;try to run it and it appears decimal value is supported.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\&amp;gt;nrfjprog -e
Erasing user available code and UICR flash areas.
Applying system reset.

C:\&amp;gt;nrfjprog --memwr 0x00000008 --val 16
Parsing parameters.
Writing.

C:\&amp;gt;nrfjprog --memrd 0x00000008
0x00000008: 00000010                              |....|&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Hieu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>