<?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>nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72152/nrf9106-non-secure-application---unable-to-debug-with-jlink</link><description>Dear Nordic DevZone team, 
 I have spent some frustrating hours trying to find the difference between configuring my tiny application with nrf9160dk_nrf9160ns or my custom board stamp_nrf9160ns: 
 The application only switches the state of on LED every</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 14 Mar 2021 18:00:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72152/nrf9106-non-secure-application---unable-to-debug-with-jlink" /><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/299615?ContentTypeID=1</link><pubDate>Sun, 14 Mar 2021 18:00:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8e81ce4-ac8b-4ef5-aca6-414daeacb7af</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;Hi Simon, thanks for your patience. I made it to work now, I had to modify my board in some ways, but I can use it now as a out of tree board.&lt;/p&gt;
&lt;p&gt;And the application is also out of tree. So everything is as I wanted it... Thanks again&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298978?ContentTypeID=1</link><pubDate>Wed, 10 Mar 2021 12:23:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46574e48-0225-4634-86d8-a3dfb1524782</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Created a new board named stamp2_nrf9160 based on the steps in &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/getting-started/posts/nrf-connect-sdk-tutorial---part-3-ncs-v1-4-0#h113sk0f71cly1ckwgkkxioblcbcsge6"&gt;Create a custom board --&amp;gt; Walkthrough&lt;/a&gt;&amp;nbsp;(see attached zip)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/stamp2_5F00_nrf9160.zip"&gt;devzone.nordicsemi.com/.../stamp2_5F00_nrf9160.zip&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Placed it in&amp;nbsp;&lt;em&gt;application\stamp_nrf9160_support\boards&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Attached the nRF9160 DK v0.9.0 and set SW5 to nRF91&lt;/li&gt;
&lt;li&gt;Ran the following commands from&amp;nbsp;&lt;em&gt;application\application&lt;/em&gt;:&amp;nbsp;
&lt;ul&gt;
&lt;li&gt;west build -b stamp2_nrf9160ns -d build_stamp2 -- -DBOARD_ROOT=../stamp_nrf9160_support&lt;/li&gt;
&lt;li&gt;cd&amp;nbsp;&lt;span&gt;build_stamp2&amp;nbsp;&amp;amp;&amp;amp; west flash&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;Then I saw that LED1 was blinking on the DK&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you try the same steps and see if it works for you or not.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298853?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 21:04:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6b5fdbc-44aa-4447-aa0f-8659c9a89a0f</guid><dc:creator>Simon</dc:creator><description>[quote user="stes"]&lt;p&gt;Could you please let me know how you tested the board in your environment? Did you use a sample application for verification?&lt;/p&gt;
&lt;p&gt;Have you tried your board folder as a out-of-tree board?&lt;/p&gt;[/quote]
&lt;p&gt;I tested it with the blinky application I got from you. I did not place it out-of-tree, but from &lt;em&gt;ncs/zephyr/boards/arm&lt;/em&gt;. I&amp;#39;ll try to run it out-of-tree tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298852?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 21:00:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edd8c05b-5519-4517-a237-bf6e6e5922fc</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;Hi Simon, the board you sent did not work at a first try. Could you please let me know how you tested the board in your environment? Did you use a sample application for verification?&lt;/p&gt;
&lt;p&gt;Have you tried your board folder as a out-of-tree board?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298644?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 10:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a3d5efa-d33d-4847-a5d2-c1628981b452</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;Hi Simon, thank you very much. I will try your board!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298637?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 10:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e955e03-d604-4c14-a788-19751bd146fe</guid><dc:creator>Simon</dc:creator><description>[deleted]&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298595?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 09:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a74e499-5896-486f-9d13-6a74838bc9b6</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll take a look at it.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;I tested your board and was not able to make it work, neither with the secure nor non-secure version. I&amp;nbsp;tested it on an nRF9160 DK I created a new version of the board stamp_nrf9160 that worked fine. I&amp;#39;ve not gotten time yet to figure out exactly what&amp;#39;s causing your board folder to fail.&lt;/p&gt;
&lt;p&gt;Could you test the board I made and see if you&amp;#39;re able to run the secure and non-secure versions of it. If you are able to do that, could you slowly, step by step, modify it to look the same as your stamp_nrf9160 board. For every change you make, test it for both the secure and nonsecure version and see if it still works. Then you will find out exactly what is causing it to fail.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2337.stamp_5F00_nrf9160.zip"&gt;devzone.nordicsemi.com/.../2337.stamp_5F00_nrf9160.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;If you&amp;#39;re not able to figure it out, please get back to me and I&amp;#39;ll take a closer look at it.&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: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/298228?ContentTypeID=1</link><pubDate>Sun, 07 Mar 2021 20:42:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38dc3a88-fcb4-4144-a1d4-83b38675cade</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/stamp.zip"&gt;devzone.nordicsemi.com/.../stamp.zip&lt;/a&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2538.application.zip"&gt;devzone.nordicsemi.com/.../2538.application.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Hi Simon, please find attached the stamp_nrf9160_support which contains my board files. It would be great if you could show me what I did wrong in this setup.&lt;/p&gt;
&lt;p&gt;Let me quickly explain the overall setup of my project: I have a west repository which contains my application (application.zip). This west repository fetches the stamp_nrf9160_support repository and the Nordic sdk-nrf.&lt;/p&gt;
&lt;p&gt;In the stamp_build.sh you will find the command line for the secure and non-secure application. When I build the secure image, I flash the zephyr/zephyr.elf file and I can see the application blink. When I use the debugger from vscode, the debugger stops after uploading the file, I can set breakpoints and debug the application.&lt;/p&gt;
&lt;p&gt;When I choose the non-secure for debugging (zephyr/merged.hex), the application is build and loaded to the board. But I do not see the application source code after uploading the file and I am neither able to set breakpoints nor to debug the application...&lt;/p&gt;
&lt;p&gt;Do you think it is possible to use the sdk-nrf like this? Being a sub-part of a project?&lt;/p&gt;
&lt;p&gt;Best&lt;/p&gt;
&lt;p&gt;Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/297738?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 10:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81f7994a-f392-4c70-8e9a-f17b9c3df9ad</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Would you be able to upload the board folder&amp;nbsp;&lt;span&gt;stamp_nrf9160ns in zipped format? Then I can test it myself and try to reproduce the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf9106 non secure application - unable to debug with JLink</title><link>https://devzone.nordicsemi.com/thread/296709?ContentTypeID=1</link><pubDate>Sun, 28 Feb 2021 16:36:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb84b4d7-0a14-45e3-95ca-6583ce830af3</guid><dc:creator>stes</dc:creator><description>&lt;p&gt;Sorry, one remark: The hex-number below the west build lines are the content of the Program Counter after the merged.hex has been loaded. The NOT SO GOOD part has the initial PC and the one I end up with when I tried to run the program... It will remain at 0x7e60, even for single-stepping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>