<?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>Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50747/unable-to-flash-using-eclipse</link><description>Hi, I was using eclipse for the development of our board using the nRF52832 and when I launch the debug on eclipse, the program does not flash and this is the output that I get in the console 
 Everything was working fine some days ago and it just stopped</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 09 Aug 2019 14:42:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50747/unable-to-flash-using-eclipse" /><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/203373?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 14:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12016851-d066-469d-bfe9-63b6e6d0de3c</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;Hi, after two weeks I have found the problem.. it was my jlink edu mini. I tried using my coworker Jlink and it worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/203358?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 14:06:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec59b38-bc2b-4ccf-a4b4-06160f204002</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;Hi, thanks for the input&lt;/p&gt;
&lt;p&gt;I can flash using nrfjprog and it does work as intended. I tried using -noir instead of -ir but it still did not flash the new image and the debugger stopped at a random address&lt;br /&gt;&lt;br /&gt;Here&amp;#39;s the output in eclipse&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;SEGGER J-Link GDB Server V6.44e Command Line Version

JLinkARM.dll V6.44e (DLL compiled Apr  5 2019 16:15:03)

Command line: -if swd -device nRF52832_xxAA -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -noir -localhostonly 1 -singlerun -strict -timeout 0
-----GDB Server start settings-----
GDBInit file:                  none
GDB Server Listening port:     2331
SWO raw output listening port: 2332
Terminal I/O port:             2333
Accept remote connection:      localhost only
Generate logfile:              off
Verify download:               off
Init regs on start:            off
Silent mode:                   off
Single run mode:               on
Target connection timeout:     0 ms
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 nRF52832_xxAA
Target interface:              SWD
Target interface speed:        1000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link EDU Mini V1 compiled Jul 10 2019 16:32:48
Hardware: V1.00
S/N: 801011244
Feature(s): FlashBP, GDB
Checking target voltage...
Target voltage: 2.25 V
Listening on TCP/IP port 2331
Connecting to target...Connected to target
Waiting for GDB connection...Connected to 127.0.0.1
Reading all registers
Read 4 bytes @ address 0x00029F86 (Data = 0x0F10F01E)
Received monitor command: speed 1000
Target interface speed set to 1000 kHz
Received monitor command: clrbp
Received monitor command: reset
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x000008E8)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 20000400, MSP= 20000400, PSP= 00000000
R14(LR) = FFFFFFFF, R15(PC) = 000008E8
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x000008E8 (Data = 0x47184B06)
Received monitor command: speed auto
Select auto target interface speed (2000 kHz)
Received monitor command: flash breakpoints 1
Flash breakpoints enabled
Received monitor command: semihosting enable
Semi-hosting enabled (Handle on BKPT)
Received monitor command: semihosting IOClient 1
Semihosting I/O set to TELNET Client
Read 4 bytes @ address 0x000008E8 (Data = 0x47184B06)
Downloading 4096 bytes @ address 0x00026000
Downloading 4096 bytes @ address 0x00027000
Downloading 4096 bytes @ address 0x00028000
Downloading 4096 bytes @ address 0x00029000
Downloading 4096 bytes @ address 0x0002A000
Downloading 4096 bytes @ address 0x0002B000
Downloading 4096 bytes @ address 0x0002C000
Downloading 4096 bytes @ address 0x0002D000
Downloading 4096 bytes @ address 0x0002E000
Downloading 4096 bytes @ address 0x0002F000
Downloading 4096 bytes @ address 0x00030000
Downloading 4096 bytes @ address 0x00031000
Downloading 4096 bytes @ address 0x00032000
Downloading 4096 bytes @ address 0x00033000
Downloading 4096 bytes @ address 0x00034000
Downloading 4096 bytes @ address 0x00035000
Downloading 4096 bytes @ address 0x00036000
Downloading 4096 bytes @ address 0x00037000
Downloading 4096 bytes @ address 0x00038000
Downloading 4096 bytes @ address 0x00039000
Downloading 4096 bytes @ address 0x0003A000
Downloading 4096 bytes @ address 0x0003B000
Downloading 4096 bytes @ address 0x0003C000
Downloading 4096 bytes @ address 0x0003D000
Downloading 4096 bytes @ address 0x0003E000
Downloading 4096 bytes @ address 0x0003F000
Downloading 272 bytes @ address 0x00040000
Downloading 24 bytes @ address 0x00040110
Downloading 104 bytes @ address 0x00040128
Downloading 168 bytes @ address 0x00040190
Downloading 24 bytes @ address 0x00040238
Downloading 16 bytes @ address 0x00040250
Downloading 16 bytes @ address 0x00040260
Downloading 8 bytes @ address 0x00040270
Downloading 8 bytes @ address 0x00040278
Downloading 200 bytes @ address 0x00040280
Downloading 84 bytes @ address 0x00040348
Downloading 20 bytes @ address 0x0004039C
ERROR: Verification of RAMCode failed @ address 0x20000000.
Write: 0xA801BE00 F0009900
Read: 0x00013C00 F0001000
Failed to prepare for programming.
Failed to download RAMCode!
Writing register (PC = 0x   262d0)
Read 4 bytes @ address 0x000262D0 (Data = 0x00060004)
Read 2 bytes @ address 0x000359C8 (Data = 0xE7E0)
Read 2 bytes @ address 0x000359C8 (Data = 0xE7E0)
Read 2 bytes @ address 0x000359C4 (Data = 0xF072)
Read 2 bytes @ address 0x0003A06A (Data = 0x0300)
Read 2 bytes @ address 0x0003A4E0 (Data = 0x0000)
Received monitor command: clrbp
Received monitor command: reset
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
Resetting target
Received monitor command: halt
Halting target CPU...
...Target halted (PC = 0x000008C0)
Read 2 bytes @ address 0x000359C8 (Data = 0xF7E0)
Read 2 bytes @ address 0x000359C8 (Data = 0xF7E0)
Read 2 bytes @ address 0x000359C4 (Data = 0xF072)
Received monitor command: regs
R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
R12= 00000000, R13= 00000000, MSP= 00000000, PSP= 00000000
R14(LR) = FFFFFFFE, R15(PC) = 000008C0
XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x000008C0 (Data = 0xF0003E10)
Setting breakpoint @ address 0x000359C4, Size = 2, BPHandle = 0x0001
Starting target CPU...
Debugger requested to halt target...
WARNING: T-bit of XPSR is 0 but should be 1. Changed to 1.
...Target halted (PC = 0x00031770)
Reading all registers
Read 4 bytes @ address 0x00031770 (Data = 0x4420C00C)
Removing breakpoint @ address 0x000359C4, Size = 2
Starting target CPU...
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/203260?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2019 10:37:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9017b765-5874-4fea-856b-0fb17cd2c912</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Xavier&lt;/p&gt;
&lt;p&gt;Does it work programming&amp;nbsp;your application with nrfjprog or does it only fail when you use Eclpse?&amp;nbsp;Could you try using&amp;nbsp;-noir and not -ir in your command line? The debugger should not have to initialize the register on the nRF5 device.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/203135?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 14:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80f2fd1a-f551-4ab8-b996-c46b29b1e858</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;Hi Simon,&lt;br /&gt;Yes I am still having trouble and I cannot flash.&amp;nbsp;My build and toolchain path are set correctly since I can build, I just cannot flash. I tried fully reinstalling eclipse to an older version (oxygen) and redoing all the configs but it still does not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/203070?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2019 12:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69693c50-c844-4287-bc28-258540cc1fa2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Xavier&lt;/p&gt;
&lt;p&gt;Are you still having trouble? Could it be that your configure environment has changed? Please check that the paths to your Build and Toolchain are set correctly, and if not, add these paths where you have them installed. Also, enter Run/Debug, click on SEGGER J-Link, and make sure that it&amp;#39;s pointing to your latest version of the SEGGER software. You can see our &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/development-with-gcc-and-eclipse"&gt;development with GCC and Eclipse guide&lt;/a&gt; for more detailed steps.&lt;/p&gt;
&lt;p&gt;A side note. Have there been any updates to Eclipse lately that might have caused this? Are you able to flash any of the standard SDK examples using Eclipse?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202930?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 21:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7acaffa-0c84-49cb-b4d2-0fd34fa39839</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;Well, in that case, no ideas. &amp;nbsp;I use Eclipse full time but with openOCD and a CMSIS-DAP JTAG. &amp;nbsp;Never has this issue. &amp;nbsp;Check to see if you are using the same version of jlink driver for both eclipse and nrfjprog. &amp;nbsp;May be eclipse could point to the wrong version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202919?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 18:55:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb659680-6f18-46c8-a34e-c80af7fbebeb</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Also disable semihosting. You can use Segger RTT instead.&lt;/p&gt;
&lt;p&gt;Final tip: Start the GUI version of the JLinkGDBServer manually outside eclipse. Works better when using the RTT Viewer, as this can share the debug connection (&amp;quot;existing session&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202918?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 18:44:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a47a60-0860-44ad-b613-69ac4b054d89</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;Sorry, I was confused, it is not a devkit actually, it&amp;#39;s a custom board with only the nrf52 chip on it so I need the external jlink to programm it. So there isn&amp;#39;t multiple jlink connected. I have fixed my answer, sorry about that. I still cannot flash to the device using eclipse and debug ( though nrfGo and by command line works as mentioned)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202917?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 18:26:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cafd91dc-d3a6-4d90-901f-50645bfb5373</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;ah! ha! There you go. &amp;nbsp;You have 2 Jlink connected. &amp;nbsp;It must have picked up the DevKit instead of your. &amp;nbsp;There is a Jlink built onto the DevKit. &amp;nbsp;You need to select the correct one by giving the serial number as parameter in the debug config. &amp;nbsp;Otherwise it will pick first found.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202915?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 18:09:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a66d6a3e-2b07-4960-abc1-1f99f4d06c20</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;I have only one jlink and one &amp;nbsp;̶D̶e̶v̶k̶i̶t̶ custom board connected on the PC. I tried a fresh install of my IDE and recloning the repo but I can&amp;#39;t seem to make it work. It&amp;#39;s such a frustrating issue though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202911?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 17:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62aef010-8230-464a-bad0-5c95b6a44220</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;It is odd indeed. &amp;nbsp;By any chance, there is one more jlink connected to the same pc ? Or a DevKit along with your board ? Or that you are using the DevKit to flash your board but instead it flashes the DevKit ? &amp;nbsp;The log said verify success which means flashing works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202909?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 17:37:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ddb008c-0810-4f8f-8da6-b3a6656dd9e6</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;I tried erasing all and re flashing the soft device multiple time. And if an app is already on the device, it will restart de device and relaunch the old app instead of the updated one. I find this issue very odd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202908?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 17:36:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4704e2d-99b8-4d0c-9803-ae16469246c7</guid><dc:creator>Xavier</dc:creator><description>&lt;p&gt;That would actually make sense since I am using a cheap USB splitter. Although, I can flash using the command nrfjprog or with nrfGo Studio. And I don&amp;#39;t see why it would stop working since I was developing this way.But I stopped using the usb splitter but it still does not work and the voltage is still around 2.3V&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202901?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 17:01:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9e61516-1270-404c-983d-c000024db48c</guid><dc:creator>Mojo</dc:creator><description>&lt;p&gt;The log said it flashed correctly. &amp;nbsp;It is more likely your firmware crashed on start before reaching main. &amp;nbsp;One possible reason is because Softdevice was not present. &amp;nbsp;Reflash softdevice see if it helps.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to flash using eclipse</title><link>https://devzone.nordicsemi.com/thread/202900?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 16:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df59665-4ad2-46d6-8253-e8a8c870785d</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;&amp;gt; Target voltage: 2.28 V&lt;/p&gt;
&lt;p&gt;That is not a lot. You might simply be running out of power.&lt;/p&gt;
&lt;p&gt;How do you power the chip?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>