<?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>a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45791/a-way-to-read-the-flash-memory-over-uart-without-uploading-a-firmware-to-the-target-chip-nrf52</link><description>nRF52832 / SDK V15 
 
 Hello, 
 Is there is way to read the nRF52 flash memory (any location if possible) over UART without uploading a program in the flash memory for that? (because there might be already a firmware there 
 we don&amp;#39;t want to alter) 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Apr 2019 14:35:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45791/a-way-to-read-the-flash-memory-over-uart-without-uploading-a-firmware-to-the-target-chip-nrf52" /><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180597?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 14:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee3d73a6-2ea0-4681-bd4c-b5b92329c363</guid><dc:creator>JohnM</dc:creator><description>&lt;p&gt;ok, I didn&amp;#39;t know about this pynrfproj! I think that&amp;#39;s what I&amp;#39;m looking for.&lt;/p&gt;
&lt;p&gt;Yes it&amp;#39;s for educational.&lt;/p&gt;
&lt;p&gt;Case closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180592?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 13:27:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a96974f5-64ed-46be-9dd2-62a48fbcd6e6</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;I still don&amp;#39;t understand what&amp;#39;s your goal with this. If you just want to display the contents on flash somewhere, I&amp;#39;d advise you to just use JLinkExe, use the savebin command and open the bin file in Sublime Text using the HexViewer plugin.&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re just doing stuff for educational purposes then the pynrfjprog library is fairly easy to use. I&amp;#39;ve used it in the past to automate flashing of entire panels, writing serial numbers to UICR, etc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180591?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 13:02:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11a67bb1-55f2-4120-9873-b64422429246</guid><dc:creator>JohnM</dc:creator><description>&lt;p&gt;ok! so I drop UART and I&amp;#39;ve just found a Jlink lib in Python: pylink.&lt;/p&gt;
&lt;p&gt;So I&amp;#39;ll experiment with this library, there must be a function to read a memory location in this lib.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180589?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 11:32:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2a9b09b-5f0a-4e80-b1af-47c8907811d7</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;nrfjprog&amp;nbsp;works through JLink though, i.e. it uses SWD, not UART.&lt;/p&gt;
&lt;p&gt;Which Python UART library are you talking about? I searched the repositories of Nordic and didn&amp;#39;t find anything about UART. Do you mean nrfutil by any chance? Or the Python wrapper for nrfjprog? Those are the only two relevant repos I found in GitHub. Or are you talking about something in the SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180588?ContentTypeID=1</link><pubDate>Sat, 06 Apr 2019 11:04:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b074a2d8-f33d-4731-96ef-ca63aa5ba2cc</guid><dc:creator>JohnM</dc:creator><description>&lt;p&gt;Well my idea is just to experiment with the Python UART library.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So, if you say that I&amp;#39;m obliged to upload a little FW in the Flash, it mean nrfjprog (or nRF Connect) does it as well. But how can it manage to put it in an unused flash area in order not to corrupt the FW already present in the target chip?&lt;/p&gt;
&lt;p&gt;my guess: nrfproj calculates the flash application size, the actual size of the existing FW and then puts its little FW at the end of the area, am I right?&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180522?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 13:37:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ce11f7f-e391-4df7-9b99-94ff13e232a9</guid><dc:creator>awneil</dc:creator><description>[quote userid="15909" url="~/f/nordic-q-a/45791/a-way-to-read-the-flash-memory-over-uart-without-uploading-a-firmware-to-the-target-chip-nrf52/180520"]What exactly are you trying to accomplish? What kind of requirements do you have[/quote]
&lt;p&gt;Exactly!&lt;/p&gt;
&lt;p&gt;What is the &lt;strong&gt;goal&lt;/strong&gt;:&amp;nbsp;&lt;a href="http://www.catb.org/esr/faqs/smart-questions.html#goal"&gt;http://www.catb.org/esr/faqs/smart-questions.html#goal&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180520?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 13:30:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2492ffba-08be-405c-bc01-f593cce7de8f</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;What exactly are you trying to accomplish? What kind of requirements do you have?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180442?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 08:34:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b7a596-c0db-4382-bbbc-496364f61d4b</guid><dc:creator>awneil</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/45791/a-way-to-read-the-flash-memory-over-uart-without-uploading-a-firmware-to-the-target-chip-nrf52/180431"]You can use nrfjprog to read flash area/data through SWD[/quote]
&lt;p&gt;In fact you can use &lt;em&gt;&lt;strong&gt;any&lt;/strong&gt; &lt;/em&gt;debugger or other utility that can read through SWD!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180431?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 08:03:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ae41fba-7887-415a-85be-47a54b18932e</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no way to get anything from flash over UART without uploading a application that reads the data and sends it over UART. You can use nrfjprog to read flash area/data through SWD interface, as long as the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/uicr.html#register.APPROTECT"&gt;APPROTECT&lt;/a&gt;&amp;nbsp;register have not been set.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: a way to read the flash memory over UART without uploading a firmware to the target chip? (nrf52)</title><link>https://devzone.nordicsemi.com/thread/180382?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 17:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44fd99e9-3653-4036-8630-ec98cd558fe1</guid><dc:creator>awneil</dc:creator><description>[quote userid="67176" url="~/f/nordic-q-a/45791/a-way-to-read-the-flash-memory-over-uart-without-uploading-a-firmware-to-the-target-chip-nrf52"]upload and run a small sketch in the RAM [/quote]
&lt;p&gt;You could do that - but then you&amp;#39;d have to have firmware in the chip to facilitate it!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>