<?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>Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2021/eclipse-with-sdk5-2-nan-29</link><description>Hello, 
 I&amp;#39;m trying to get the SDK examples working in Eclipse. I have followed all steps(except debugging part) in the nan-29, but i can only import the s110/ble_hrs example with missing headers(see attachment)? Is there any information about how to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jun 2015 01:28:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2021/eclipse-with-sdk5-2-nan-29" /><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8661?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2015 01:28:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d194e18-92b0-478d-97f0-f3de950c27e7</guid><dc:creator>Jerod</dc:creator><description>&lt;p&gt;For the record -- struggled with this one for far too long.&lt;/p&gt;
&lt;p&gt;I was getting &amp;quot; No source available for &amp;quot;main() at 0x177b4&amp;quot; using SDK 7.2.1 and SD 7.1.0 with Eclipse and the generic examples.&lt;/p&gt;
&lt;p&gt;Finally, found a good article here that suggested turning off optimizations and adding debugging:
CFLAGS += -O0 -g3&lt;/p&gt;
&lt;p&gt;But also needed to get rid of the followng line (flags):
CFLAGS += -flto -fno-builtin&lt;/p&gt;
&lt;p&gt;Didn&amp;#39;t find &amp;quot;both&amp;quot; bits of info anywhere, so sharing here in hopes of helping ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8685?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 03:16:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5f3cfd-322d-4355-9795-e845106ded63</guid><dc:creator>Jamie Simonsen</dc:creator><description>&lt;p&gt;Sorry resolved it myself didn&amp;#39;t see the suggestion about setting the device name to nRF51822 in the Jlink settings which resolved it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8684?ContentTypeID=1</link><pubDate>Wed, 18 Jun 2014 22:46:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7b54915-6cda-473b-a173-c43bfe27ed32</guid><dc:creator>Jamie Simonsen</dc:creator><description>&lt;p&gt;I&amp;#39;ve followed everything in this thread but im still unable to debug, Im using the nRFGo Motherboard with the nRF51822 Development kit board and I&amp;#39;m able to build the blinky demo fine but when i go to debug i get a similar issue to what pascal posted above but i think the issue is with the J-Link as i get the following in the jlink log&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;SEGGER J-Link GDB Server V4.86a GUI Version

JLinkARM.dll V4.86a (DLL compiled Jun 11 2014 17:22:49)

-----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:               on
Init regs on start:            on
Silent mode:                   off
Single run mode:               on
Target connection timeout:     5 sec.
------J-Link related settings------
J-Link Host interface:         USB
J-Link script:                 none
J-Link settings file:          none
------Target related settings------
Target device:                 Cortex-M0
Target interface:              SWD
Target interface speed:        1000kHz
Target endian:                 little

Connecting to J-Link...
J-Link is connected.
Firmware: J-Link Lite-Cortex-M V8 compiled Aug 29 2012 15:24:23
Hardware: V8.00
S/N: 538000310
Feature(s): GDB
Checking target voltage...
Target voltage: 3.30 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 0x00000000 (Data = 0xFFFFFFFF)
Target interface speed set to 1000 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0xFFFFFFFE)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (VectorAddr = 0x08)
Semihosting I/O set to TELNET Client
SWO disabled succesfully.
ERROR: Could not detect CPU clock speed. Verification of test code downloaded into RAM failed.

Failed to enable SWO. Could not measure target CPU frequency.
Downloading 12 bytes @ address 0x00008000 - Verify failed
Downloading 2124 bytes @ address 0x0000800C - Verify failed
Downloading 12 bytes @ address 0x00008858 - Verify failed
Downloading 12 bytes @ address 0x00008864 - Verify failed
Downloading 8 bytes @ address 0x00008870 - Verify failed
Downloading 4 bytes @ address 0x00008878 - Verify failed
Downloading 8 bytes @ address 0x0001087C - Verify failed
Downloading 4 bytes @ address 0x00010884 - Verify failed
Downloading 4 bytes @ address 0x00010888 - Verify failed
Downloading 1336 bytes @ address 0x00010890 - Verify failed
Writing register (PC = 0x000080a5)
Read 4 bytes @ address 0x000080A4 (Data = 0xFFFFFFFF)
Resetting target
Halting target CPU...
...Target halted (PC = 0xFFFFFFFE)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= FFFFFFFC, MSP= FFFFFFFC, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = FFFFFFFE
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFF0000)
Starting target CPU...
...Target halted (PC = 0xFFFFFFFE)
Reading all registers
Read 4 bytes @ address 0xFFFFFFFE (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFF4 (Data = 0x00000000)
Reading 64 bytes @ address 0xFFFFFFC0
Read 4 bytes @ address 0x00000000 (Data = 0xFFFFFFFF)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It looks like its having issue getting the CPU clock?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8682?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2014 08:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b45770b7-55e8-436b-b18e-f916a1d70df2</guid><dc:creator>pascal defesche</dc:creator><description>&lt;p&gt;Or you could set the device name to: Cortex-M0&lt;/p&gt;
&lt;p&gt;check this link, i&amp;#39;ve got debugging working following this setup:
&lt;a target="_blank" href="http://gnuarmeclipse.livius.net/blog/jlink-debugging/" rel="nofollow"&gt;http://gnuarmeclipse.livius.net/blog/jlink-debugging/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Only i have to start the JLinkGDBServerCL.exe located at: C:\Program Files (x86)\SEGGER\JLinkARM_V484 before i start debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8681?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2014 08:44:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a0a40fdf-e408-45cd-8823-200e9c6d07ed</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You set wrong device name.  It should be just nRF51822.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8680?ContentTypeID=1</link><pubDate>Wed, 16 Apr 2014 03:57:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b44d6ee5-90a1-49fe-b81b-36bd51a28d88</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;Thanks for the suggestions:
&lt;a target="_blank" href="https://www.dropbox.com/s/mds4tkwgneb8kiq/Screenshot" rel="nofollow"&gt;https://www.dropbox.com/s/mds4tkwgneb8kiq/Screenshot&lt;/a&gt;%202014-04-14%2009.30.08.png
&lt;a target="_blank" href="https://www.dropbox.com/s/f32ktwe19b9dt3y/Screenshot" rel="nofollow"&gt;https://www.dropbox.com/s/f32ktwe19b9dt3y/Screenshot&lt;/a&gt;%202014-04-14%2009.35.52.png
is eclipse settings
&lt;a target="_blank" href="https://www.dropbox.com/s/hbitsyecckw067z/1.jpg" rel="nofollow"&gt;https://www.dropbox.com/s/hbitsyecckw067z/1.jpg&lt;/a&gt; is keil settings&lt;/p&gt;
&lt;p&gt;Read 4 bytes @ address 0x00000000 (Data = 0x20001C48)
Target interface speed set to 30 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00012B98)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 20001C48, MSP= 20001C48, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 00012B98
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Target interface speed set to 2000 kHz
Flash breakpoints enabled
Read 4 bytes @ address 0x00012B98 (Data = 0x681B4B15)
Downloading 16192 bytes @ address 0x00014000 - Verify failed
Downloading 15968 bytes @ address 0x00017F40 - Verify failed
Downloading 16160 bytes @ address 0x0001BDA0 - Verify failed
Downloading 16096 bytes @ address 0x0001FCC0 - Verify failed
Downloading 16080 bytes @ address 0x00023BA0 - Verify failed
Downloading 16176 bytes @ address 0x00027A70 - Verify failed
Downloading 12208 bytes @ address 0x0002B9A0 - Verify failed
Downloading 68 bytes @ address 0x0002E950 - Verify failed
Downloading 8 bytes @ address 0x0002E994 - Verify failed
Downloading 2396 bytes @ address 0x0002E99C - Verify failed
Writing register (PC = 0x0002e951)
Read 4 bytes @ address 0x0002E950 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800)
Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800)
Resetting target
Halting target CPU...
...Target halted (PC = 0x00012B98)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 20001C48, MSP= 20001C48, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 00012B98
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x00012B98 (Data = 0x681B4B15)
Starting target CPU...
Debugger requested to halt target...
...Target halted (PC = 0x0000FE3E)
Reading all registers
Read 4 bytes @ address 0x0000FE3E (Data = 0xBF20BF40)
Read 4 bytes @ address 0x0000016A (Data = 0x9801B401)
Read 4 bytes @ address 0x0000016A (Data = 0x9801B401)
GDB closed TCP/IP connection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8679?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2014 10:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69234453-f89b-4987-b422-d659853e2171</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;try disable SWO and Semihosting settings.  Try different jtag/swd speed.  It&amp;#39;s on the startup tab of the debug configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8678?ContentTypeID=1</link><pubDate>Mon, 14 Apr 2014 04:51:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b564d3-396a-4d10-a1fc-6d58d4ef8f62</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;I use Nordic dev kit, and able to flash in keil without problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8677?ContentTypeID=1</link><pubDate>Sat, 12 Apr 2014 17:56:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6a9dea8-95bb-4a15-9bfd-019e81793eb0</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I see a bunch of Verify failed.  Are you using the Nordic Kit or your own board ?  I seems unable to flash your app properly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8676?ContentTypeID=1</link><pubDate>Sat, 12 Apr 2014 00:24:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b75be9d6-446a-4203-a36c-7cf162d0f292</guid><dc:creator>julian</dc:creator><description>&lt;p&gt;my thread goes too long, I can&amp;#39;t find your reply in the thread, so I post it on your thread
Thanks for help out first!&lt;/p&gt;
&lt;p&gt;my current issue is able to start debugger, but can&amp;#39;t stop at breakpoint, below is log:
&lt;a href="https://www.dropbox.com/s/u2ffo5ncauhhos3/Screenshot%202014-04-11%2017.19.53.png"&gt;www.dropbox.com/.../Screenshot 2014-04-11 17.19.53.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Connecting to J-Link...
J-Link is connected.
Firmware: J-Link OB-SAM3U128 V1 compiled Dec 11 2013 20:20:11
Hardware: V1.00
S/N: 480205216
Checking target voltage...
Target voltage: 3.30 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 0x00000000 (Data = 0x20001C48)
Target interface speed set to 30 kHz
Resetting target
Halting target CPU...
...Target halted (PC = 0x00012B98)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 20001C48, MSP= 20001C48, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 00012B98
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Select auto target interface speed (2000 kHz)
Flash breakpoints enabled
Semi-hosting enabled (VectorAddr = 0x08)
Semihosting I/O set to TELNET Client
Failed to disable SWO.
ERROR: Could not detect CPU clock speed. Verification of test code downloaded into RAM failed.&lt;/p&gt;
&lt;p&gt;Failed to enable SWO. Could not measure target CPU frequency.
Read 4 bytes @ address 0x00012B98 (Data = 0x681B4B15)
Downloading 16192 bytes @ address 0x00014000 - Verify failed
Downloading 15968 bytes @ address 0x00017F40 - Verify failed
Downloading 16160 bytes @ address 0x0001BDA0 - Verify failed
Downloading 16096 bytes @ address 0x0001FCC0 - Verify failed
Downloading 16080 bytes @ address 0x00023BA0 - Verify failed
Downloading 16176 bytes @ address 0x00027A70 - Verify failed
Downloading 12208 bytes @ address 0x0002B9A0 - Verify failed
Downloading 68 bytes @ address 0x0002E950 - Verify failed
Downloading 8 bytes @ address 0x0002E994 - Verify failed
Downloading 2396 bytes @ address 0x0002E99C - Verify failed
Writing register (PC = 0x0002e951)
Read 4 bytes @ address 0x0002E950 (Data = 0xFFFFFFFF)
Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800)
Read 4 bytes @ address 0xFFFFFFFF (Data = 0x001C4800)
Resetting target
Halting target CPU...
...Target halted (PC = 0x00012B98)
R0 = FFFFFFFF, R1 = FFFFFFFF, R2 = FFFFFFFF, R3 = FFFFFFFF
R4 = FFFFFFFF, R5 = FFFFFFFF, R6 = FFFFFFFF, R7 = FFFFFFFF
R8 = FFFFFFFF, R9 = FFFFFFFF, R10= FFFFFFFF, R11= FFFFFFFF
R12= FFFFFFFF, R13= 20001C48, MSP= 20001C48, PSP= FFFFFFFC
R14(LR) = FFFFFFFF, R15(PC) = 00012B98
XPSR C1000000, APSR C0000000, EPSR 01000000, IPSR 00000000
CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
Reading all registers
Read 4 bytes @ address 0x00012B98 (Data = 0x681B4B15)
Starting target CPU...&lt;/p&gt;
&lt;p&gt;if I suspend it
&lt;a href="https://www.dropbox.com/s/5wjwth1033358y5/Screenshot%202014-04-11%2017.21.12.png"&gt;www.dropbox.com/.../Screenshot 2014-04-11 17.21.12.png&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;do you have any hint on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8675?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 17:53:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:629d39d4-79f5-4b2f-9f1b-106b2694cf9a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You&amp;#39;re welcome.
What I meant was in the gcc_startup_nrf51.S, instead of the call to _start, replace it by a call to _main.  If you are writing C++ code.  The runtime lib need to be initialized call cling _libc_init_array.  See in my code.  I put a conditional compilation for it.  C++ code will generate a bigger file due to it runtime library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8674?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 17:46:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e9f6600-9524-48b9-a41b-387337c9adff</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;You are my hero! A huge thanks! I can debug it now (with your files).
But what do you mean by &amp;quot;call _main directly&amp;quot; and if i use the c++ runtime, i can use the default startup code? Thanks again!! :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8673?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 17:29:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca073272-e4cc-46a0-9cf5-6fe5450c987a</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Ah yes, forgot about that bug in the gcc_startup.  You can call _main directly.  the libc_init_arry is needed only require for C++ runtime.  You can also use my startup code with my LD script instead.  Files attached here&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf51_5F00_startup_5F00_ld.zip"&gt;nrf51_startup_ld.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8672?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 17:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bedbe3c0-1d60-4470-8825-bbe98e50a4bb</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;Hi Nguyen, you were right. Its possible to debug. I can debug the &amp;quot;gcc_startup_nrf5.S&amp;quot; file, and step through &amp;quot;SystemInit()&amp;quot; in &amp;quot;system_nrf51.c&amp;quot;. But in the function &amp;quot;_start&amp;quot; there is a call to __libc_init_array, and here my application crashes (i guess.. here is picture: &lt;a target="_blank" href="http://postimg.org/image/w7hwk0a71/" rel="nofollow"&gt;http://postimg.org/image/w7hwk0a71/&lt;/a&gt;). Have no clue why..
Another question i have is, which gcc compiler flags should i use .. are there  some important? (for the linker i use: &amp;quot; -mabi=aapcs --specs=nano.specs -lc -lnosys -Wl,--gc-sections&amp;quot; and for the target processor i use: &amp;quot;-ffunction-sections -fdata-sections&amp;quot;. Thanks a lot in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8671?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 14:48:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d3b5ed4-47ac-498a-b6bc-4027fccdf09e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;There is probably an error somewhere in your code.  The sdk generate an exception when there is an error.  Find APP_ERROR_HANDLER in the code and put a break point on it.  Then you can back trace to where the error was generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8670?ContentTypeID=1</link><pubDate>Sat, 05 Apr 2014 10:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70f7d637-d549-4443-bc97-f4c6fe5e608c</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;So you say i have to flash it with nFRGo (and not with JLinkExe) one time and after that, i can debug it with eclipse without any problems. Thanks for the hint, i&amp;#39;ll test it as soon i&amp;#39;m on a win pc.
But, do you have a clue why i stuck in the HardFaultHandler-loop?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8669?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 18:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e148d8df-eb58-4508-b922-c91703347d0c</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; Here is what I know works for me.  Development on OSX with Elcipse Kepler.  Without DFU loaded, debug works directly with s110 pre-flashed.  If DFU loaded.  i need first upload my app using dfu.  After that I can use Eclipse to debug.  It seem that DFU sets some flag to make s110 jumps to the App.  Flashing with Eclipse does not set the flag so s110 always jumps to DFU.  That is what I suspected, need to be confirmed.  When DFU is not loaded, S110 don&amp;#39;t see it so it jumps to the App directly.  So if you work with ble, then you need to Flash the s110 first into the chip using nFRGo.
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8668?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 15:59:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f852fa0-f9e3-48d6-ab12-af4944e021a4</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;hoi nguyen, thanks for your reply. No, i work with the ble_hrs example. It compiles in eclipse, but when i start the debugger i&amp;#39;m in an endless loop (the application is running, no breakpoint, but when i hit the pause button i see this: &lt;a target="_blank" href="http://postimg.org/image/w5t48o99v/" rel="nofollow"&gt;http://postimg.org/image/w5t48o99v/&lt;/a&gt;) in HardFaultHandler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8667?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 15:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a5fb3b8-d726-4683-9800-dba7c5384328</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Leo, are you working with blinky_exemple too?  That exemple is not ble.  You don&amp;#39;t need s110 and dfu.  Use s110 and dfu only when you do ble application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8666?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 15:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8bfd1d6-e15a-444f-8156-dc9376666109</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;hi nguyen,&lt;/p&gt;
&lt;p&gt;i have the same problem as pascal.
So, i need additionally to the softdevice (flashed via Makefile from &lt;a target="_blank" href="http://hg.cmason.com/nrf" rel="nofollow"&gt;http://hg.cmason.com/nrf&lt;/a&gt;) a dfu bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8665?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 15:02:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75e50a06-26c8-4a2f-8f4c-bb96698adb11</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The blinky_example does not use the s110.  I should use the blank linker script for this one.  Get a feel how the environment works first.&lt;/p&gt;
&lt;p&gt;When to start working with s110. You&amp;#39;ll need need to flash in the soft device first then DFU using nRFGo.  Then use DFU to upload your app.  After that you can debug with Eclipse.  That&amp;#39;s the work around s110 issue for debugging.   I have posted full Eclipse project for DFU, see previous comment.   Use the serial version to upload your app via segger cdc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8683?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 14:46:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:050255a2-2240-4e45-9e54-efb341b53cc8</guid><dc:creator>pascal defesche</dc:creator><description>&lt;p&gt;Ok in my case its with capital S, and i think its correct i can see the files in the debug/startup folder. I&amp;#39;ve attached my new updated blinky_example.rar above, could you check for me if you can run this example? Thanks a lot for your help so far Nguyen.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8664?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 14:35:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d8e40c9-89f8-46b1-9122-2c5fa7518d2d</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I think it has to be capital S.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8663?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 14:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61d36fc8-f788-446d-abed-a4a48e191e7a</guid><dc:creator>pascal defesche</dc:creator><description>&lt;p&gt;Yes i did add the system_nrf51.c &amp;amp; gcc_startup_nrf51.s (this needs to be captital S or lower case?) see my attachment: gcc_debug.png&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Eclipse with SDK5.2 nan-29</title><link>https://devzone.nordicsemi.com/thread/8660?ContentTypeID=1</link><pubDate>Fri, 04 Apr 2014 14:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92c69565-c149-4a25-92dc-0c9c18b3c00d</guid><dc:creator>leo</dc:creator><description>&lt;p&gt;i sometimes get the same error. i thought i fixed it, with erasing the chip before starting debugging. Unfortunately it doesn&amp;#39;t work with the ble_hrs app.. so i would be happy, if you&amp;#39;re getting an answer to this problem :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>