<?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>Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15471/bootloader-programming-issue-the-flash-is-not-erased</link><description>Hi everyone,
I am using the nRF51822, I have an issue of programming the bootloader.
It is said that the flash is not erased. But I just did an erase all before programming.
Is there anyone who encountered the same issue?
Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2016 10:40:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15471/bootloader-programming-issue-the-flash-is-not-erased" /><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59096?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 10:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fec5d3b-c8e5-4d8f-b0db-5580ca5ada9a</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Yes, P0.21 should behave as an ordinary GPIO pin if the PSELRESET registers are not set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59097?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 09:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:813f8f4c-77ab-41e4-a1a0-20642a3a7fe2</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;@bjorn-spockeli this may be true for the time when application is running but my experiments suggest that P0.21 should be left disconnected during interaction with J-Link, esp. during flashing. Otherwise various unexpected things happen. As I understand the documentation P0.21 should be ordinary GPIO unless PSELRESET registers are set. Please advise is that a correct interpretation. Maybe documentation should be clarified in that matter?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59098?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2016 08:35:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84211638-10bc-498b-a107-558a2442eac1</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@keton : Yes, the PSELRESET[0] and PSELRESET[1] are set to 0xFFFFFFFF upon reset, i.e. no pin will have the nRESET function. However, please note that P0.21 is the only pin that can be used as the reset pin  on the NRF52.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59095?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2016 09:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fff640c-cde7-4686-9682-24a49f3a6a72</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;It appears that my board layout may be a problem. We&amp;#39;ve planned on using p0.21 as normal gpio and it turns out that cutting the trace leading to this pin allows us to program the nRF52. Please correct me if I&amp;#39;m wrong but default state of the chip after erase should be that reset on pin is disabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59094?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2016 11:16:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f4b17f2-dfe0-460a-bf88-d5223e63ca6e</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;If the device was running the demo code, then I doubt that its a faulty chip. Could you read out the flash after erasing the chip using the follwing command in nrfjprog&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrfjprog --memrd 0x0000 --n 262144 &amp;gt; flash_dump.txt
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and then attach the flash_dump.txt to your question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader programming issue  The flash is not erased</title><link>https://devzone.nordicsemi.com/thread/59093?ContentTypeID=1</link><pubDate>Wed, 03 Aug 2016 14:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:659bde2a-f9c8-400f-afc0-29e937b0ee52</guid><dc:creator>Keton</dc:creator><description>&lt;p&gt;I&amp;#39;m having the same issue on one of my Rigado BMD300 based boards. It came preprogrammed with bootloader and demo code which ran ok. After erasing nothing can be programmed into it despite multiple  erase all and recover commands that run without error. Other chips from the same batch program just fine so this may be a faulty chip.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>