<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: s32k1 AIPS-Lite error message location in S32K</title>
    <link>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2289282#M55935</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206941"&gt;@baichuan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It was clear to me from the start.&lt;BR /&gt;Unfortunately, the BusFault is imprecise, which means the BFAR register is invalid.&lt;BR /&gt;If the fault were precise, BFAR would contain the address of the peripheral register that caused the access violation.&lt;BR /&gt;When the BusFault is imprecise, the PC value saved on the stack is also not the exact instruction that triggered the fault.&lt;BR /&gt;In such cases, the only option is to retrieve the stacked PC and then analyze the preceding instructions to identify the most recent load or store operation and extract the target address.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jan 2026 08:58:51 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2026-01-07T08:58:51Z</dc:date>
    <item>
      <title>s32k1 AIPS-Lite error message location</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2270354#M55800</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have restricted access to some registers through AIPS-Lite. My understanding is that if there is an unauthorized access to these registers, the system will enter the HardFault interrupt.&lt;/P&gt;&lt;P&gt;Now, I want to record these unauthorized access attempts. How should I do this? I did not see any related registers in the S32K-RM.pdf for AIPS-Lite to store this error information.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Dec 2025 06:15:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2270354#M55800</guid>
      <dc:creator>baichuan</dc:creator>
      <dc:date>2025-12-31T06:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 AIPS-Lite error message location</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2288855#M55902</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206941"&gt;@baichuan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As you mentioned, there is no dedicated AIPS error status register.&lt;BR /&gt;When an access violation occurs, the core signals a BusFault exception.&lt;BR /&gt;You can read the stacked Program Counter (PC) value as described in this NXP document:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447" target="_blank"&gt;https://community.nxp.com/t5/S32K-Knowledge-Base/Fault-handling-on-S32K14x/ta-p/1114447&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;However, if the exception is Imprecise (indicated by CFSR[IMPRECISERR]), the stacked PC does not correspond to the actual instruction that caused the fault. This happens because the fault was detected after the write buffer committed the access.&lt;BR /&gt;To obtain precise fault information, you would need to disable the write buffer, but doing so will reduce system performance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 15:40:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2288855#M55902</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-01-06T15:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 AIPS-Lite error message location</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2289150#M55919</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thank you very much for your patient explanations. Perhaps I didn't express myself clearly. What I actually want to do is log this unauthorized access attempt within the BusFault handler. For example: `pflash:0x00001a74 failed to access peripheral[CAN0]:0x40024000`. Based on your description, the PC pointer can indeed provide the address in pflash, but how can I retrieve the destination address it attempted to access?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 06:23:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2289150#M55919</guid>
      <dc:creator>baichuan</dc:creator>
      <dc:date>2026-01-07T06:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: s32k1 AIPS-Lite error message location</title>
      <link>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2289282#M55935</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206941"&gt;@baichuan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;It was clear to me from the start.&lt;BR /&gt;Unfortunately, the BusFault is imprecise, which means the BFAR register is invalid.&lt;BR /&gt;If the fault were precise, BFAR would contain the address of the peripheral register that caused the access violation.&lt;BR /&gt;When the BusFault is imprecise, the PC value saved on the stack is also not the exact instruction that triggered the fault.&lt;BR /&gt;In such cases, the only option is to retrieve the stacked PC and then analyze the preceding instructions to identify the most recent load or store operation and extract the target address.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 08:58:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/s32k1-AIPS-Lite-error-message-location/m-p/2289282#M55935</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2026-01-07T08:58:51Z</dc:date>
    </item>
  </channel>
</rss>

