<?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>Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51617/debugging-zephyr-os-applications-on-nrf52832-with-eclipse-and-openocd</link><description>Hi, 
 I am trying to set up eclipse + gdb + openOCD for debugging zephyr 2.0.0. applications on nRF52832. Following the official Zephyr documentation build-and-run-an-application and setting my debug configurations in eclipse as shown in the next two</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Sep 2019 14:46:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51617/debugging-zephyr-os-applications-on-nrf52832-with-eclipse-and-openocd" /><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207458?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 14:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6df204f-4fef-416c-9ab1-85a14c937910</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;If that&amp;#39;s the case then your entry point might not be main(). &amp;nbsp;You can to find out in the startup code to see where it jumps to after reset. &amp;nbsp;Since Zephyr is a RTOS, it may bypass the main function. Other scenario could be that you have a miss match in debug info.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207455?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 14:40:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8007d5f0-ab5d-4001-a631-3c6d51c81505</guid><dc:creator>StefanHri</dc:creator><description>&lt;p&gt;No, because when I flash the board I can see with my phone that it advertises. This means that the image is OK. I think&amp;nbsp; it is some problem with the debugger initialization.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207453?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 14:35:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe0b6f8f-88cb-4b9f-806b-aa2f33fa5364</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Have you checked the startup code as I suggested ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207449?ContentTypeID=1</link><pubDate>Mon, 02 Sep 2019 14:33:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb325e5a-beba-4493-8200-cb70030ecbad</guid><dc:creator>StefanHri</dc:creator><description>&lt;p&gt;I have tried to use JlinkGDBServer also. I noticed similar effects. I can start the debug session (on the console I see that the image is downloaded) but after that the execution never comes to the main().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207236?ContentTypeID=1</link><pubDate>Sat, 31 Aug 2019 13:18:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da62b552-b456-41c0-8eb5-11ed9833a4f4</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;It looks like you didn&amp;#39;t include the startup code. &amp;nbsp;The reset vector jumped to the wrong location. &amp;nbsp;I am not a Zephyr user so I can&amp;#39;t tell you where to find it. &amp;nbsp;You need to search for it.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I see that you are using jlink. &amp;nbsp;It is better to use the GDB JLink instead of OpenOCD. &amp;nbsp;It&amp;#39; s the third one bellow GDB for OpenOCD. &amp;nbsp;Create a debug session with that. It&amp;#39;s faster than using openocd with jlink. &amp;nbsp;Use OpenOCD for other type of jtag probe such as CMSIS-DAP or ST-Link. &amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging Zephyr OS applications on NRF52832 with eclipse and openOCD</title><link>https://devzone.nordicsemi.com/thread/207187?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 14:11:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:717f9d10-b2f1-4ddc-972f-f253a65dbc77</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;You have a jlink debugger. Try using Segger JlinkGDBServer instead of OpenOCD.&lt;/p&gt;
&lt;p&gt;BTW: It looks to me like your OpenOCD could not write to flash properly -&amp;nbsp; the binary code does not match the symbol information used in the debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>