<?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>How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13305/how-do-i-avoid-halting-the-cpu-when-reading-writing-ram-from-debugger</link><description>I want to read and write RAM (target=nRF51822) from a custom C application while the CPU is running.
Now, I can do this using the nrfjprog.dll and I get the expected values out. Only problem is that the CPU is halted and I can&amp;#39;t seem to start it going</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Apr 2016 09:53:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13305/how-do-i-avoid-halting-the-cpu-when-reading-writing-ram-from-debugger" /><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50722?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 09:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3527c58-acc4-4ac4-bef3-4bf313a64672</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have looked into the log file and it seems that something is wrong here. I have forwarded this to the developer responsible for this tool. I will update you when I have some information from him.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50721?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 09:18:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b112d765-23ea-4336-9e94-5f8bfb7f743f</guid><dc:creator>Claus Andersen</dc:creator><description>&lt;p&gt;The linked archive contains:
source for a test program
binaries ready to run
log showing the behavior (line 138 should say false instead of true)&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/78w7w54hqnufeqx/nrfjprog%20test.7z?dl=0"&gt;www.dropbox.com/.../nrfjprog test.7z&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;PS should I be able to attach a file directly to the message? I can only insert links.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50726?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 08:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0a805c-2a31-420a-a651-620c220b26d0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please attach your script here. I will try it on my desk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50725?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 08:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:572db208-f2d9-4630-8c63-9dfc71c4a01e</guid><dc:creator>Claus Andersen</dc:creator><description>&lt;p&gt;I have a loop where I read from RAM, test if the CPU is halted and in case it is call go. Occasionally this loop succeeds a few times but then go stops having any effect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50724?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 08:01:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb5ee4e3-3003-4c9f-9e71-074bd22986f6</guid><dc:creator>Claus Andersen</dc:creator><description>&lt;p&gt;I&amp;#39;m using version 8.4.0 according to the release notes.
The files are taken from the install directory at C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50723?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 07:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52b8735e-71f9-482a-b807-ee88db704ea7</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi ca,
which version of nrfjprog dll are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50720?ContentTypeID=1</link><pubDate>Wed, 20 Apr 2016 03:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b724893-3328-4d98-9c54-c8d041c75174</guid><dc:creator>Claus Andersen</dc:creator><description>&lt;p&gt;Yes I have tried the things you suggest but they do not start the CPU again.
Calling for instance the NRFJPROG_go function I get a SUCCESS error code back but the CPU does not start running again and the function NRFJPROG_is_halted tells me that the CPU is in fact still halted. I get the same result when using the nrfjprog.exe.&lt;/p&gt;
&lt;p&gt;The CPU does not NEED to be halted to read the memory. This can bee seen when using the JLink Commander as I said. So this must be a decision made by the developers of the nrfjprogdll. Would it be possible to have an extra version of NRFJPROG_read that did not halt the CPU?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50719?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 11:35:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e78f59c-64ff-4e02-94a5-cc51e4697d51</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;update: I have updated news from the developer responsible for nrfjprog tools. They do halt the CPU and keeps it halted after the mem read/write operation is complete. The user have to then call &amp;quot;GO&amp;quot; for dll or --run from the command line tool and then it should work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I avoid halting the CPU when reading/writing RAM from debugger?</title><link>https://devzone.nordicsemi.com/thread/50718?ContentTypeID=1</link><pubDate>Tue, 19 Apr 2016 11:23:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364f0548-f1f3-495f-8061-b37fe08c92f9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi CA,&lt;/p&gt;
&lt;p&gt;The nrfjprog might halt the CPU when it is attempting to read memory addresses.&lt;/p&gt;
&lt;p&gt;Did you try below?&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog --run&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>