<?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>S32KのトピックHardfault when we are not using debugger in S32K344</title>
    <link>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151143#M51798</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm facing a weird issue. When I run my code in the debug mode, everything works properly (CAN, UART and so on).&lt;/P&gt;&lt;P&gt;But when I remove the debugger and reset the board, I can see that the CAN and other peripherals don't work as I expected.&lt;/P&gt;&lt;P&gt;Then, I attached the debugger activating this option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1755031791882.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352056i59F2F809534D1AE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1755031791882.png" alt="MVR_0-1755031791882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I could see that the system reaches the hardfault:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_1-1755032079675.png" style="width: 449px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352059i8E44BE09F33A891C/image-dimensions/449x98?v=v2" width="449" height="98" role="button" title="MVR_1-1755032079675.png" alt="MVR_1-1755032079675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Before, I was facing the same issue (with debugger) and I could find out that the problem was the Interrupt Monitor into the Platform_Init(), when I removed this configuration on Tresos 29.0.0 (disable the INTM), I started to get hardfault in this new point into Mcl_Init(), showed below.&lt;/P&gt;&lt;P&gt;Also, I could see that if I commented out the Mcl_init(), I get hardfault as well in the Uart_Init(), in this point:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_3-1755032834466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352069iECC068E97DC73706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_3-1755032834466.png" alt="MVR_3-1755032834466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again, using the system in debug mode, it doesn't happened. Can anyone help me with this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could see some topics related this issue and the people saying that HSE_CLK should be CORE_CLK/2, but it is already configured this way:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_2-1755032234658.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352061i2B892A2050E7B52E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_2-1755032234658.png" alt="MVR_2-1755032234658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
    <pubDate>Tue, 12 Aug 2025 21:10:12 GMT</pubDate>
    <dc:creator>MVR</dc:creator>
    <dc:date>2025-08-12T21:10:12Z</dc:date>
    <item>
      <title>Hardfault when we are not using debugger in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151143#M51798</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I'm facing a weird issue. When I run my code in the debug mode, everything works properly (CAN, UART and so on).&lt;/P&gt;&lt;P&gt;But when I remove the debugger and reset the board, I can see that the CAN and other peripherals don't work as I expected.&lt;/P&gt;&lt;P&gt;Then, I attached the debugger activating this option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_0-1755031791882.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352056i59F2F809534D1AE0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_0-1755031791882.png" alt="MVR_0-1755031791882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And I could see that the system reaches the hardfault:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_1-1755032079675.png" style="width: 449px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352059i8E44BE09F33A891C/image-dimensions/449x98?v=v2" width="449" height="98" role="button" title="MVR_1-1755032079675.png" alt="MVR_1-1755032079675.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Before, I was facing the same issue (with debugger) and I could find out that the problem was the Interrupt Monitor into the Platform_Init(), when I removed this configuration on Tresos 29.0.0 (disable the INTM), I started to get hardfault in this new point into Mcl_Init(), showed below.&lt;/P&gt;&lt;P&gt;Also, I could see that if I commented out the Mcl_init(), I get hardfault as well in the Uart_Init(), in this point:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_3-1755032834466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352069iECC068E97DC73706/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_3-1755032834466.png" alt="MVR_3-1755032834466.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Again, using the system in debug mode, it doesn't happened. Can anyone help me with this problem?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could see some topics related this issue and the people saying that HSE_CLK should be CORE_CLK/2, but it is already configured this way:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MVR_2-1755032234658.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352061i2B892A2050E7B52E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MVR_2-1755032234658.png" alt="MVR_2-1755032234658.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;MVR&lt;/P&gt;</description>
      <pubDate>Tue, 12 Aug 2025 21:10:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151143#M51798</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2025-08-12T21:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault when we are not using debugger in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151359#M51807</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@MVR" target="_blank"&gt;Hi@MVR&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;When I run my code in the debug mode, everything works properly (CAN, UART and so on).&lt;/SPAN&gt;"&lt;/P&gt;
&lt;P&gt;Most of these problems should be related to the clock configuration.&lt;/P&gt;
&lt;P&gt;If you can provide a complete project, I can help you check it.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 05:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151359#M51807</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-13T05:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault when we are not using debugger in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151678#M51826</link>
      <description>&lt;P&gt;Sent you via private message due to confidentiality...&lt;/P&gt;&lt;P&gt;But as soon as we fixed this issue, I will post the solution here to help the community.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Aug 2025 12:14:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2151678#M51826</guid>
      <dc:creator>MVR</dc:creator>
      <dc:date>2025-08-13T12:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Hardfault when we are not using debugger in S32K344</title>
      <link>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2152227#M51840</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;MVR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tested your code, you need to use "MCU_SetMode()" to turn on the peripheral clock, this is the reason for entering hardfault&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1755160640927.png" style="width: 454px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/352413i12011E59068318C7/image-dimensions/454x245?v=v2" width="454" height="245" role="button" title="Senlent_0-1755160640927.png" alt="Senlent_0-1755160640927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:43:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Hardfault-when-we-are-not-using-debugger-in-S32K344/m-p/2152227#M51840</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2025-08-14T08:43:18Z</dc:date>
    </item>
  </channel>
</rss>

