<?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>nRF5340 debug issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57977/nrf5340-debug-issues</link><description>I have the nRF5340 PDK dev kit and am building the peripheral_lbs sample code using SES on a Windows 10 laptop. I&amp;#39;m able to build the code successfully, but then I run into several issues - 
 
 When I connect my dev board to the computer, and in SES,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Feb 2020 15:45:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57977/nrf5340-debug-issues" /><item><title>RE: nRF5340 debug issues</title><link>https://devzone.nordicsemi.com/thread/236329?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 15:45:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:718f14cb-8395-45ac-9b8e-4e22126102bf</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;Thanks for the info haakonsh - I will use Ozone for the time being.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Brian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 debug issues</title><link>https://devzone.nordicsemi.com/thread/236000?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 14:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4277152-9fd9-4f01-ba9d-3296a41ecaf7</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;There&amp;#39;s a bug in the newest version of SES for Nordic :/&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I suggest you use the previous version of SES for nordic, or try Ozone or GDB for the time being. We&amp;#39;ve got a fix ready, but it will take some time to get a release ready.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 debug issues</title><link>https://devzone.nordicsemi.com/thread/235278?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2020 17:59:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a557754e-6a6a-42b9-8cc7-f1f5e54b5b6a</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;UPDATE - Tried this again today, and got different results.&amp;nbsp; Now, I am able to connect to the board with SES.&amp;nbsp; However, I&amp;#39;m unable to debug.&amp;nbsp; Here&amp;#39;s the process I&amp;#39;m following -&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Open the peripheral_lbs project in SES.&lt;/li&gt;
&lt;li&gt;Build the project - Build -&amp;gt; Rebuild Solution&lt;/li&gt;
&lt;li&gt;Start debugging - Target -&amp;gt; Go.&amp;nbsp; This causes an error dialog box pop-up from J-Link -&amp;nbsp;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1582130461715v1.png" alt=" " /&gt;&lt;/li&gt;
&lt;li&gt;Click OK, which causes the code to get flashed onto the board.&lt;/li&gt;
&lt;li&gt;Click the Restart icon to get a valid value in the PC register (0x2c94).&amp;nbsp; This generates the following in the SES Output window -&lt;br /&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;br /&gt;Reading register 29 failed: Unspecified error&lt;br /&gt;Reading register 30 failed: Unspecified error&lt;br /&gt;Reading register 31 failed: Unspecified error&lt;br /&gt;Reading register 29 failed: Unspecified error&lt;br /&gt;Reading register 30 failed: Unspecified error&lt;br /&gt;Reading register 31 failed: Unspecified error&lt;/li&gt;
&lt;li&gt;I get the following output on my serial port -&amp;nbsp;&lt;br /&gt;Starting Bluetooth Peripheral LBS example&lt;br /&gt;I: 6 Sectors of 4096 bytes&lt;br /&gt;I: alloc wra: 0, ff0&lt;br /&gt;I: data wra: 0, 0&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;li&gt;Setting breakpoints at various points in main seems to stop the processor, but SES does not indicate where the processor is halted.&amp;nbsp; The PC always indicates 0x2c94 when hitting any of my breakpoints.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If I switch to using Ozone to debug (Debug -&amp;gt; Debug with Ozone), I get different results -&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Flash code onto board - Download and Reset Program.&amp;nbsp; PC is at start of main() (0x0AEC)&lt;/li&gt;
&lt;li&gt;I can set breakpoints, and the debugger shows where the breakpoint hits - unlike SES.&lt;/li&gt;
&lt;li&gt;I still cannot get past the call to bt_dev.drv-&amp;gt;open(), which takes me to bt_rpmsg_platform_init().&amp;nbsp; Nothing in main after this call executes.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>