<?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>Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72900/stopped-by-vector-catch-unknown-function</link><description>What causes the &amp;quot;Stopped by vector catch&amp;quot; error? Where is this documented? 
 The project builds successfully, but when launching the debugger, the Output window displays &amp;quot;Stopped by vector catch&amp;quot; and execution is halted. It never makes it to the main</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Mar 2021 17:54:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72900/stopped-by-vector-catch-unknown-function" /><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/301015?ContentTypeID=1</link><pubDate>Fri, 19 Mar 2021 17:54:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755a554f-8107-4cc2-957f-950c44cf1cb0</guid><dc:creator>wpreska1</dc:creator><description>&lt;p&gt;Well, I never did get this totally figured out, but it seems the vector catch was triggered by incorrect flash sizing in the configuration.&amp;nbsp; I tried playing with the settings in Project/Options fields, and I experimented with the flash_placement.xml file. It actually just created all kinds of other build errors (occurring during the linking phase), and I never got a running program.&amp;nbsp; At this point I&amp;#39;m calling this project a &amp;quot;fail&amp;quot; and I&amp;#39;m starting over from scratch.&lt;/p&gt;
&lt;p&gt;The standard Template example project in the SDK&amp;#39;s Peripheral/Examples folder builds and runs just fine, so I&amp;#39;m just starting over with that as a base and adding in my application-specific code on top of it.&lt;/p&gt;
&lt;p&gt;Thanks Vidar for your help with this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300578?ContentTypeID=1</link><pubDate>Thu, 18 Mar 2021 08:03:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3a7172f-6ad5-46f7-b1cd-4967256cec62</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming. So this is most likely the reason why program execution did not reach main(). I hope it works once you adjust the memory settings.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300544?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 23:44:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fed1549-527c-4cb8-a5ba-c6f4046c7479</guid><dc:creator>wpreska1</dc:creator><description>&lt;p&gt;Wow - good catch Vidar.&lt;/p&gt;
&lt;p&gt;The &amp;quot;Memory Segments&amp;quot; section in the Linker settings was correct, but the &amp;quot;Section Placement Macros&amp;quot; settings were wrong (they were set to the larger values of the 840 chip).&lt;/p&gt;
&lt;p&gt;I think you may be onto something here - previously, I had indeed been tinkering with the &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;flash_placement.xml&lt;/span&gt; file.&amp;nbsp; I&amp;#39;ll play with it and keep you posted.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300533?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 21:50:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:676a827e-3bfa-4246-89c6-ad55b79219f2</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I think it must be the linker settings that are wrong then. Have you tried to debug the original &amp;quot;pca10040&amp;quot; project (\examples\ble_peripheral\ble_app_template\&lt;strong&gt;pca10040&lt;/strong&gt;\s132\ses to see if that works?&lt;/p&gt;
&lt;p&gt;Here is the original configuration for the ble_app_template_pca1040 project:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616018106233v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616018132401v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300532?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 21:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3435bab1-c468-4f09-8b04-152a11aaf9ac</guid><dc:creator>wpreska1</dc:creator><description>&lt;p&gt;Thank you for looking into this Vidar.&lt;/p&gt;
&lt;p&gt;For the hardware, I am using the nRF52 DK based on the 832 (not the 840).&amp;nbsp; The &amp;quot;Target&amp;quot; is set in the Debugger section of the project options to nRF52832-xxAA.&amp;nbsp; Where else within SES&amp;nbsp;can I check to see why it&amp;#39;s generating code for the 840?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300530?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 21:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dfdaed1-fe4f-4753-815d-0cc19f4d68d4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the update. I think it does help. Are you running this on a nRF52840 DK or a nRF 52 DK (nRF52832)? I&amp;#39;m asking because the stack pointer value shown in the image you posted is clearly for the nRF52840, not the nRF52832 which only has 64 K of RAM ( i.e. upper boundary is 0x20010000). This could explain why the hardfault exception is raised before the program even reaches main().&lt;/p&gt;
&lt;p&gt;Note that pca10040 is the board name for the nRF52 DK targeting the nRF52832 chip and it is the project configuration you should select if you are using the nRF52 DK board.&lt;/p&gt;
&lt;p&gt;Regarding the &amp;quot;Vector catch&amp;quot; message: it&amp;#39;s reported because the breakpoint on &amp;quot;hardfault&amp;quot;&amp;nbsp; is enabled by default in SES:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1616015747180v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stopped by vector catch, Unknown function</title><link>https://devzone.nordicsemi.com/thread/300525?ContentTypeID=1</link><pubDate>Wed, 17 Mar 2021 20:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db5e66f6-8dba-43a7-8c65-f901dcc7de1d</guid><dc:creator>wpreska1</dc:creator><description>&lt;p&gt;Additional info - in case it helps...&lt;/p&gt;
&lt;p&gt;Here is a screenshot of the CPU registers at the time of the program halt:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1616013349345v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Still dead in the water...&amp;nbsp; hoping someone knows how to debug these vector-catches...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>