<?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>nRF9160 stops on vector catch</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47375/nrf9160-stops-on-vector-catch</link><description>after installing the new SDK for the nRF9160. 
 if I install the new spm on a board that is working and it will still run the old code that was present on the board befoe upgrading from Secure Boot. 
 But when I try to load run the new code created in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2019 11:23:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47375/nrf9160-stops-on-vector-catch" /><item><title>RE: nRF9160 stops on vector catch</title><link>https://devzone.nordicsemi.com/thread/187871?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 11:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db3a2f65-78fb-4ad0-819c-6048fccf9e38</guid><dc:creator>Jeff Seaman</dc:creator><description>&lt;p&gt;Working with Nordic Connect SDK 0.4.0&lt;/p&gt;
&lt;p&gt;It is possible to continue using Segger Studio with Nordic Connect SDK 0.4.0.&lt;/p&gt;
&lt;p&gt;the first thing to do is erase your current board just so we are starting with a clean slate.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Open the SPM project&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1558351352511v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Then from the tool bar select Target&amp;gt;Connect J-Link&lt;/p&gt;
&lt;p&gt;Then in the target menu select Erase All to erase everything on the nRF9160.&lt;/p&gt;
&lt;p&gt;Now we will need to program the modem firmware.&lt;/p&gt;
&lt;p&gt;The current version on the web site is mfwnrf91600729.alpha.&amp;nbsp; unpack and program using the command prompt ( this is a one time operation).&lt;/p&gt;
&lt;p&gt;nrf9160_mdm_dfu &amp;ndash;update&lt;/p&gt;
&lt;p&gt;once the modem firmware has been programed we are ready to program SPM (Secure Partition Manager).&amp;nbsp; In Segger Studio navigate to main.c in the spm project now press the green arrow in the upper right corner of the editor paint to build and debug the program.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1558351382457v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Once you run the program you will get an error&lt;/p&gt;
&lt;p&gt;Preparing target for user application&lt;/p&gt;
&lt;p&gt;Executing Reset script TargetInterface.resetAndStop()&lt;/p&gt;
&lt;p&gt;Reset: Halt core after reset via DEMCR.VC_CORERESET.&lt;/p&gt;
&lt;p&gt;Reset: Reset device via AIRCR.SYSRESETREQ.&lt;/p&gt;
&lt;p&gt;Stopped by vector catch&lt;/p&gt;
&lt;p&gt;in the output window this is fine since there is no program in the non secure partition yet.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now in the file at_client/prj.conf add the line CONFIG_SPM=n.&lt;/p&gt;
&lt;p&gt;your project config fill should now look like this&lt;/p&gt;
&lt;p&gt;# General config&lt;/p&gt;
&lt;p&gt;CONFIG_ASSERT=y&lt;/p&gt;
&lt;p&gt;CONFIG_TEST_RANDOM_GENERATOR=y&lt;/p&gt;
&lt;p&gt;CONFIG_SPM=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;# Network&lt;/p&gt;
&lt;p&gt;CONFIG_NETWORKING=y&lt;/p&gt;
&lt;p&gt;CONFIG_NET_SOCKETS=y&lt;/p&gt;
&lt;p&gt;CONFIG_NET_SOCKETS_OFFLOAD=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 stops on vector catch</title><link>https://devzone.nordicsemi.com/thread/187706?ContentTypeID=1</link><pubDate>Fri, 17 May 2019 21:04:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f09c1406-a2b7-4a39-984f-ec92d1037415</guid><dc:creator>Alan Hasty</dc:creator><description>&lt;p&gt;Thanks for the pointer.. it worked for me.&lt;/p&gt;
&lt;p&gt;I was having the same problem with the asset tracker in v0.4.0 on the nrf9160 and used these instructions to get past the vector catch issue.&lt;/p&gt;
&lt;p&gt;My question is this - How do I modify the the asset tracker project to program the correct region? (I was running into this on the asset tracker)&lt;/p&gt;
&lt;p&gt;Second question is how do I get the debugger started if I can&amp;#39;t get the project started correctly with the Build-&amp;gt; Debug and Run menu?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 stops on vector catch</title><link>https://devzone.nordicsemi.com/thread/187561?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 13:51:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662934e5-ce6e-4e96-b788-f1fd954dd1b4</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Jeff,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47032/mqtt_simple-programmed-to-wrong-address-range-00008000----00020abb" rel="noopener noreferrer" target="_blank"&gt;Please follow the instructions in this thread on how to flash the correct file with SES v.4.16)&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>