<?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>can&amp;#39;t debug in source code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24335/can-t-debug-in-source-code</link><description>I have worked on a new project which would convert our NRF51 project into NRF52. I have succeed in compiling and linking code for this new NRF52 project. When I start debugging, I found I only can debugged in assembly code view and can&amp;#39;t set breakpoint</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Sep 2017 20:53:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24335/can-t-debug-in-source-code" /><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95791?ContentTypeID=1</link><pubDate>Fri, 08 Sep 2017 20:53:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e35c47fb-fdb5-4d32-aa70-15df97bb6798</guid><dc:creator>william</dc:creator><description>&lt;p&gt;This issue has been resolved. It due to improper setup in crossworks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95795?ContentTypeID=1</link><pubDate>Tue, 15 Aug 2017 12:15:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca819ab2-261e-4f2a-94f0-e7f2d89bfae7</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I am not familiar with CrossWorks.  What I can suggest is to create a new project then import the source code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95794?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 23:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61f798a1-4552-4ece-9acf-1ae56abff61f</guid><dc:creator>william</dc:creator><description>&lt;p&gt;I am sorry for I did not give out the complete information at the first time. I am using Cross Studio 3.7.5. I can this cross studio to load in example of SDK13.0.1 and make it compiling and debugging properly. I just got stuck with this debug issue. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95790?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 23:13:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:118657ca-930c-412d-8d74-8c9f2c6d411e</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Could you give details of your build environment?&lt;/p&gt;
&lt;p&gt;You mention GCC, however you have not said whether you are using an IDE or simply using GDB on the command line&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95793?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 22:06:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:026d6eca-cc22-4e04-807b-056c658db5fc</guid><dc:creator>william</dc:creator><description>&lt;p&gt;I have compiled and linked properly with NRF52 setting. I also can debug it using NR52 DK board in assembly view mode. It&amp;#39;s just I can&amp;#39;t set debug point in source code which is very inconvenient. I did not found any related issue base on your suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can't debug in source code</title><link>https://devzone.nordicsemi.com/thread/95792?ContentTypeID=1</link><pubDate>Mon, 14 Aug 2017 21:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a21807-d65a-4fa1-8ef1-0acc18b72d50</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You didn&amp;#39;t provide much info.  I am guessing that you forgot to change processor settings.&lt;br /&gt;
The nRF51 is a Cortex-M0.  The nRF52 is a Cortex-M4F.  Make sure your compiler settings are for the right processor.  Don&amp;#39;t forget to replace the startup code and linker script as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>