<?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>Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64131/flashing-nrf52832-with-jlink-on-raspberry-pie</link><description>Hello, 
 I am trying to flash my NRF52832 device with &amp;quot;JLink_Linux_V670a_arm&amp;quot; using a Raspberry Pie, a JlinkScript and an sh Script but I keep getting these errors. Could you please help me understand what should I do or change. 
 error messages: 
 SEGGER</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jul 2020 11:00:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64131/flashing-nrf52832-with-jlink-on-raspberry-pie" /><item><title>RE: Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/thread/262547?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 11:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b733bd9-25c1-4b02-8e3f-8a1de37972cd</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;If you tried the same script on your computer, and it works fine. With the same JLink version and debugger. And you also tried Michael&amp;#39;s suggestion above to include a &amp;#39;r&amp;#39; and &amp;#39;h&amp;#39; before erasing, I&amp;#39;m not really sure what is wrong. You can ask in the Segger forum if they have any ideas.&lt;/p&gt;
&lt;p&gt;What happens if you open JLinkExe without any parameters, and do the connect, erase, etc. manually? Does it still fail on the erase? What if you do a full erase of the chip on your computer first and then try to just load the file on the RPi without running the erase command first? Is it still failing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/thread/261714?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 07:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8e82124-f427-423e-808a-edfa98a38784</guid><dc:creator>cyrine</dc:creator><description>&lt;p&gt;Jlink version :10.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/thread/261713?ContentTypeID=1</link><pubDate>Mon, 27 Jul 2020 07:21:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7244299a-7220-4570-b06e-9a8838c5a06b</guid><dc:creator>cyrine</dc:creator><description>&lt;p&gt;It works fine with my computer ! I am using &amp;quot;&lt;span&gt;JLink_Linux_V670a_arm&amp;quot;.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/thread/261602?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 12:22:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75da67ea-347a-4e3e-b448-0334b37e8eb9</guid><dc:creator>MJD093</dc:creator><description>&lt;p&gt;Your script above does not include the commands r and h before the erase.&lt;/p&gt;
&lt;p&gt;Have you remembered to include these elsewhere in your process. The chip must be halted before you try to erase and flash it.&lt;/p&gt;
&lt;p&gt;I assume this is for an automated programmer and sending a long command (such as the one used in commanderscript implimentations) but there much easier ways to do this. I just call something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;./full52flash&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You need to make JLinkExe globally callable on the RPi and then just create a .sh with:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#!/bin/bash
JLinkExe &amp;gt;&amp;gt; EOF
* all the manual JLinkExe commands you use, new line for each *
EOF&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;then quickly chmod the .sh so it&amp;#39;s known to the OS as an executable and your done&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Flashing NRF52832 with Jlink on Raspberry Pie</title><link>https://devzone.nordicsemi.com/thread/261599?ContentTypeID=1</link><pubDate>Fri, 24 Jul 2020 12:16:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd0ee32c-db23-4c72-8c06-ad5dc9f54493</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Is this only on the RPi or do you see the same thing on your computer? Which JLink type/version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>