<?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>Halt and Catch Fire (code killing nRF52840)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72116/halt-and-catch-fire-code-killing-nrf52840</link><description>I appear to have some very simple code that when loaded into a nRF52840 kills it, such that I cannot recover it, possibly hardware failure. I would appreciate any suggestions! 
 I am using a Panasonic PAN1780 KIT evaluation board (similar to nRF52840DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Mar 2021 15:01:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72116/halt-and-catch-fire-code-killing-nrf52840" /><item><title>RE: Halt and Catch Fire (code killing nRF52840)</title><link>https://devzone.nordicsemi.com/thread/296923?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 15:01:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26be782c-a16a-4cde-8a26-6d6b592645f8</guid><dc:creator>Pascal_PIEU</dc:creator><description>&lt;p&gt;Hi&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/benmack"&gt;benmack&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;good to see your problems seemed solved!&lt;/p&gt;
&lt;p&gt;Have you tried updating Segger drivers manually on the first PC and try it again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Halt and Catch Fire (code killing nRF52840)</title><link>https://devzone.nordicsemi.com/thread/296829?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 12:16:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6881592-a9d3-429f-ab31-f1a01b6d5134</guid><dc:creator>benmack</dc:creator><description>&lt;p&gt;A brief update - I &lt;strong&gt;think&lt;/strong&gt; I&amp;#39;ve solved my problem&lt;/p&gt;
&lt;p&gt;Early days, I want to do lots of testing, but seems to be related to my PC or USB ports. Tried programming target from my laptop and it is now working fine... doh!&lt;/p&gt;
&lt;p&gt;Very very strange, as it seemed to be entirely reproducible and seemed to be a result of a very specific sequence of project updates. And of course some misleading error messages about target voltage...&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll post more here once I&amp;#39;ve done more testing, just wanted to let you know ASAP so I&amp;#39;m not wasting peoples time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Halt and Catch Fire (code killing nRF52840)</title><link>https://devzone.nordicsemi.com/thread/296820?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 11:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a4f903-2da5-43ba-b53f-a83112dc1b7f</guid><dc:creator>benmack</dc:creator><description>&lt;p&gt;OK the plot thickens... I&amp;#39;m not sure what is happening here, wondering if the J-Link OB is the cause of the problem.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been experimenting with the nRF Connect Progammer (latest v1.4.8), connected via the eval board J-Link OB to our new target hardware (i.e. not the target on the eval board). I can load our non-BLE application to the target absolutley fine, and it runs. However if I erase the target then try loading the softdevice hex file, then the load fails. This is JUST the softdevice, no application code at all:-&lt;/p&gt;
&lt;p&gt;nRF5_SDK_17.0.2_d674dde\components\softdevice\s140\hex\s140_nrf52_7.2.0_softdevice.hex&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the log file from nRF Connect Programmer:-&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.dropbox.com/s/1mqmo7vdmf7ac69/2021-03-01T10_38_38.221Z-log.txt"&gt;https://www.dropbox.com/s/1mqmo7vdmf7ac69/2021-03-01T10_38_38.221Z-log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;10:40 tried loading Z:\prefect\ds1241-sensus-pcu\sw\snap12\Output\Debug\Exe\ds1241.hex - loads fine and runs&lt;br /&gt;10:41 tried loading ONLY softdevice, fails (errors start at T10:42:01.01)&lt;/p&gt;
&lt;p&gt;No mention in the log of any target voltage problems, but it does give lots of JLINK_HasError() messages.&lt;/p&gt;
&lt;p&gt;The Panasonic PAN1780 eval boards have J-Link OB-SAM3U128 V3 compiled Jul&amp;nbsp; 3 2020 10:46:22&lt;/p&gt;
&lt;p&gt;I have two eval boards here, both do the same so I&amp;#39;d be surprised if it is a hardware problem. I have more arriving today. Or I could buy a normal jlink, just to check it isn&amp;#39;t the OB ones.&lt;/p&gt;
&lt;p&gt;Any ideas would be very welcome here, I&amp;#39;m up against deadlines...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Halt and Catch Fire (code killing nRF52840)</title><link>https://devzone.nordicsemi.com/thread/296749?ContentTypeID=1</link><pubDate>Mon, 01 Mar 2021 07:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85ffb817-fed7-46c1-8040-e9c6e451764e</guid><dc:creator>benmack</dc:creator><description>&lt;p&gt;OK this is possibly a clue...&lt;/p&gt;
&lt;p&gt;I went back to working on my non-BLE project. This was originally based on SDK\examples\peripheral\blinky\pca10056 -&amp;nbsp; the proj.emProject was derived from that and it uses that flash_placement.xml file. Running on our new PCB prototypes, not an eval board. This has been working fine, developed a bunch of non-BLE app code, all good.&lt;/p&gt;
&lt;p&gt;This morning I accidentally built and loaded my target with this code, but using the flash_placement.xml file from SDK\examples\ble_peripheral\ble_app_blinky (in other words it has the reserved flash and ram areas for a softdevice). No other changes, project not loading a softdevice. The J-Link loader died in exactly the same way, while loading target:-&lt;/p&gt;
&lt;p&gt;Preparing target for download&lt;br /&gt;Executing Reset script TargetInterface.resetAndStop()&lt;br /&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;br /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Downloading &amp;lsquo;ds1241.elf&amp;rsquo; to J-Link&lt;br /&gt;Programming 14.7 KB of addresses 00000000 &amp;mdash; 00003b03&lt;br /&gt;Programming 0.0 KB of addresses 00003b04 &amp;mdash; 00003b07&lt;br /&gt;Target voltage too low (1 Volt is required, Measured: 0.0 Volt).&lt;br /&gt;Download failed&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t fully understand what is going on here, I&amp;#39;m a newbie to nRF stuff. I&amp;#39;ve read the basics about this here...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/getting-started/posts/adjustment-of-ram-and-flash-memory&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m guessing this means it put my application code in flash in the reserved area gfor the softdevice, so it wouldn&amp;#39;t run? But why would that cause a &amp;quot;Target voltage too low&amp;quot; error, and cause the J-Link to disconnect?&lt;/p&gt;
&lt;p&gt;By the way I put a scope on the target 3V3 rail while loading this, and it is solid 3V3, doesn&amp;#39;t dip. Similarly when I try loading the softdevice into an eval board.&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>