<?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>Secure Fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/111379/secure-fault</link><description>Hi all, 
 
 I&amp;#39;m porting a graphics library we used on a Renesas board over to the nRF9161. I&amp;#39;m encountering a secure fault and not really sure how to proceed. 
 
 I used the addr2line tool and it indicated the error originates on line 331 below: 
 
 I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 May 2024 04:39:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/111379/secure-fault" /><item><title>RE: Secure Fault</title><link>https://devzone.nordicsemi.com/thread/485709?ContentTypeID=1</link><pubDate>Fri, 24 May 2024 04:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fd70108-c674-4d6c-897b-67532c7a6690</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that you found the problem. Thanks for the update. I was a bit quick to assume what the issue was and overlooked that the violation occured for address 0x200. If it had been that SPIM1 was not configured as NS, as I initially suspected, then the fault would have occurred&amp;nbsp;during initialization&amp;nbsp;before any SPIM1 events could have been triggered.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Fault</title><link>https://devzone.nordicsemi.com/thread/485686?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 16:36:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3096265-06fa-4cec-90b5-7db65db4516f</guid><dc:creator>mmelv</dc:creator><description>&lt;p&gt;I already had those in my prj.conf, but I was able to resolve the issue independently.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Fault</title><link>https://devzone.nordicsemi.com/thread/485627?ContentTypeID=1</link><pubDate>Thu, 23 May 2024 12:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69410f89-e023-4b03-942f-bcf95e5868ca</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The crash log shows that the secure fault exception was raised while handling the SPIM1_SPIS1_TWIM1_TWIS1_UARTE1_IRQn, so likely in the SPIM1 ISR based on the result you got from addr2line.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716465655517v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Please try to disable logging in TF-M as explained in this thread &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/109959/i2c-problems-in-sdk-v2-6-0-on-nrf5340dk/477340"&gt;RE: I2C problems in SDK v2.6.0 on nRF5340DK&lt;/a&gt;&amp;nbsp; and see if you still get the same error. This will ensure the UARTE1&amp;nbsp;and the other peripherals sharing the same peripheral ID (see&amp;nbsp;&lt;a title="Peripherals with shared ID" href="https://infocenter.nordicsemi.com/topic/ps_nrf9161/peripheral_interface.html?cp=2_0_0_2_1_1#concept_shared_id"&gt;Peripherals with shared ID&lt;/a&gt;) will become configured as non-secure and become available to your application.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1716466180388v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure Fault</title><link>https://devzone.nordicsemi.com/thread/485510?ContentTypeID=1</link><pubDate>Wed, 22 May 2024 21:59:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f950dccc-02ab-4602-8ff4-3cca1a16127e</guid><dc:creator>Michal</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Just wanted to inform you that I most likely won&amp;#39;t be able to look more into it until the next week.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michal&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>