<?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>Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21238/bricked-sparkfun-nrf52832</link><description>I have the nRF52DK board and I am using that to reprogram the Sparkfun breakout. However, initially, I was using the Sparkfun Beefy UART device to flash the nRF52832 to begin my SPI project using BLE. 
 What happened: Firstly, I did something dumb. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Apr 2017 02:10:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21238/bricked-sparkfun-nrf52832" /><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83095?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 02:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4dab6a5-1153-4774-b8ce-4a4d422e4ad0</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;The device suffered from some trauma that caused Pin27, the pin used for RX for a UART DFU, to remain high or 3.3V. I was able to use a modified Blinky program to toggle an LED on this pin to witness that the LED always remained lit. On a &amp;quot;good&amp;quot; device, the LED flashed properly.&lt;/p&gt;
&lt;p&gt;Thus, although I can flash the device with the NRF52_DK using nrfjprog, anything dependent on P26 such as the nrfutil program using UART the device is impaired.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83106?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 16:00:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18708953-2b59-42e6-a5d8-815c64949f4f</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;Thanks for the input. The insistence on the UART is the setup I had just settled on. I use MacOS and I was able to get a script to compile any SDK example and flash it to the device using the nrfutil program. I am new to this type of activity, so I was elated that things were going so well.&lt;/p&gt;
&lt;p&gt;What is fantastic about this experience is I have a much deeper understanding than what the UART method would have brought. This is important as when I move onto my own circuit board using the nRF52832, I will need to program it somehow and this is where I shall be blessed to have had this experience.&lt;/p&gt;
&lt;p&gt;I anticipate I shall come to understand the system better to be able to explain with certainty why the board is exhibiting the behaviour it is.&lt;/p&gt;
&lt;p&gt;Until then, thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83105?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 08:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbd37ef4-eec1-438d-b50d-48170214dc4c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;This looks promising! I still doubt that you would &amp;quot;damage&amp;quot; some GPIO port and it&amp;#39;s now impossible to use UART on it. I would also be very careful to attempt writing whole FICR and UICR regions, there are only few registers which are user (app) specific, rest should be managed by the chip without interference. Is there any small chance that Sparkfun loads some diversified data so FW works only if it matches S/N of the chip (8-byte string in FICR region)? Isn&amp;#39;t there somewhere source code to Sparkfun bootloader (or entire pre-loaded FW)?&lt;/p&gt;
&lt;p&gt;Another point is that Nordic tools are multiplatform but I&amp;#39;ve always used Windows tools (nRFgo Studio and NRFJPROG from NRFTOOLS package) to recover/erase and flash nRF5x chips. Alternatives like NRFUTIL and OpenOCD/pyOCD are known to behave slightly differently...&lt;/p&gt;
&lt;p&gt;Another one: why insisting on proprietary UART bootloader if you can use SWD programming?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83104?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 04:04:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e62fb85a-0ef1-48eb-b0eb-d21ced4c61aa</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;Looks like the device can not be programmed using the UART Sparkfun Beefy 3 FTDI Basic Breakout. However, I can program it using the J-link programmer on the nRF52 DK. This makes me consider I did affect the hardware negatively perhaps just the UART device.&lt;/p&gt;
&lt;p&gt;Thanks for all your help. It pointed me in the right direction.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83103?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 03:38:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88e89e68-7da0-4919-bcfc-ec6a9a0d6c8d</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;Almost there. Using your keen suggestion pertaining to the nRF52832 Product Specification I made copies of the code, FICR and UICR memory regions and wrote them to the affected device. Presently, the blue light is flashing as I was wanting, but, alas, the nrfutil can not flash through the UART device. I get the same error. I have verified that the nrfutil can flash a good device. So I am going to try making copies of the data ram and peripheral memory regions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83102?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 02:32:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:178b0a7a-763e-481c-bbe2-b249332a9ea5</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;I did some analysis of the nrfutil program and have determined that the utility will wait and timeout just after sending the init packet. Furthermore, the Beefy UART programmer has rx/tx leds and the tx LED (tx from the device) never illuminates. This makes me suspicious that the hardware has gotten affected by my mistake, but I am not aware of a test that I can perform to qualify or disqualify the hardware.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83101?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 02:26:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:400340c1-ca9a-4106-a946-d5a072382f58</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;Ah, what I am expecting it to do: The &amp;quot;good&amp;quot; board will enter a bootloader mode when a button sequence is followed. This presents the blue LED to flash in a specific pattern called the timebomb pattern. However, this does not happen on the malfunctioning board. Also, I tried to flash the device with the nrfutil and a known application that works, but I get the &amp;#39;Failed to upgrade target&amp;#39; error. So, I am trying to get the board to a state that it was with a functioning bootloader.&lt;/p&gt;
&lt;p&gt;I am using J-Link Commander to flash and specifically, the savebin and loadbin commands.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83100?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 01:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46a9c986-720f-42d2-8cea-7e736cd68ad4</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;But actually you are right, there might be some UICR register values needed as well (if FW running on Sparkfun board uses it for storing some bootloader information or similar). You can dump UICR as well (at address 0x10001000, 0x210 bytes should be enough but maybe it will give you up to 4kB of data) and analyze it by using nRF52832 Product Specification (to filter &amp;quot;default&amp;quot; values from something what Sparkfun FW uses). I would assume that if certain FW needs some values in UICR it would have default values hardcoded and writes it to particular UICR registers if it detects them &amp;quot;empty&amp;quot; during boot sequence but developers of FW you are using might see it differently...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83099?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 01:03:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d14bff6-14fc-463f-8840-bc738da8012f</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Yes, WFE is wait for event, standard command in main loop of BLE app which runs on top of Nordic stack (aka Soft Device).&lt;/p&gt;
&lt;p&gt;If you &amp;quot;dump&amp;quot; full memory of 512kB into HEX and flash it to another nRF52 device (which has the same PCB layout and BOM) then it should work the same after reset. So this is strange... What exactly you run on the boards (FW) and what do you expect from it (aka what do you mean by &amp;quot;works well&amp;quot; vs. &amp;quot;is bricked&amp;quot;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83098?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 00:45:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:feea9f5a-f4d9-4e76-8944-40cd511d0526</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;So, I just tried the step command &amp;#39;s&amp;#39; and it device may be stuck in a loop.&lt;/p&gt;
&lt;p&gt;s&lt;/p&gt;
&lt;p&gt;0001B07A: FD E7    B    #-0x06&lt;/p&gt;
&lt;p&gt;s&lt;/p&gt;
&lt;p&gt;0001B078: 20 BF    WFE&lt;/p&gt;
&lt;p&gt;repeat...&lt;/p&gt;
&lt;p&gt;Looks like a branch command, but not sure what WFE is. (Wait for event?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83097?ContentTypeID=1</link><pubDate>Sun, 09 Apr 2017 00:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99f2e3aa-bc59-403a-a37e-0134986225c9</guid><dc:creator>cswanson420</dc:creator><description>&lt;p&gt;Yes, this is the article that lead me to programming the breakout board with the nRF52 DK.&lt;/p&gt;
&lt;p&gt;I am not clear on the layout of the MBR or the starting sequence of the nRF52832 device. I have the supporting documentation from the SDK, but that seems to rely on a deeper level of understanding regarding such things as UICR.BOOT_ADR. I must be missing these things.&lt;/p&gt;
&lt;p&gt;I can see from J-Link Commander that the system seems to stop when PC = 0x0001B07A. I can reset, go and halt from the J-Link Commander so the system is responsive. I only made a 512KB file from the good device and flashed this to the malfunctioning device. Should I make a larger file? Also, am I wrong in thinking that copying the entire flash memory from a good device will not &amp;quot;restore&amp;quot; a malfunctioning device?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bricked Sparkfun nRF52832?</title><link>https://devzone.nordicsemi.com/thread/83096?ContentTypeID=1</link><pubDate>Sat, 08 Apr 2017 23:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d78e0bf7-86bb-482a-8f7e-fa92c25668fa</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Hi, have you checked similar questions on the forum, e.g. &lt;a href="https://devzone.nordicsemi.com/question/123381/swd-jtag-to-a-sparkfun-nrf52832/"&gt;this&lt;/a&gt; one? It&amp;#39;s almost impossible to completely &amp;quot;brick&amp;quot; nRF5x chips, they should always be able to &amp;quot;recover&amp;quot; through Nordic tools like nRFgo Studio or nrfjprog with JTAG/SWD programmer (e.g. any Nordic nRF5x DK with SEGGER J-Link on board).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>