<?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中的主题 Re: PINS_DRV_Init failed</title>
    <link>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2203051#M54380</link>
    <description>&lt;P&gt;Please tell me your chip's maskset and part number. If it's an S32K144&lt;STRONG&gt;H&lt;/STRONG&gt;, it only supports a maximum of &lt;STRONG&gt;80&lt;/STRONG&gt;MHz. If it's an S32K144&lt;STRONG&gt;U&lt;/STRONG&gt;, it supports a maximum of HSRUN mode (&lt;STRONG&gt;112&lt;/STRONG&gt; MHz).&lt;/P&gt;
&lt;P&gt;Please reconfigure the HSRUN clock by refer to the discussion in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/Creating-New-project-s32DS-Error-clock-not-initializing/td-p/1331744" target="_self"&gt;Creating New project : s32DS : Error clock not initializing&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Nov 2025 01:38:32 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2025-11-12T01:38:32Z</dc:date>
    <item>
      <title>PINS_DRV_Init failed</title>
      <link>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2202518#M54360</link>
      <description>&lt;P&gt;Dear NXP Support Team,&lt;/P&gt;&lt;P&gt;I am encountering an issue while running the lpuart_echo_s32K144 example on a custom board. I would appreciate your assistance in resolving this problem.&lt;/P&gt;&lt;P&gt;Here's a detailed description of my setup and the steps I've taken:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hardware:&lt;/STRONG&gt; I have an S32K144evb-q100 evaluation board and a custom board (S32K144, 64-pin).&lt;BR /&gt;&lt;STRONG&gt;Software:&lt;/STRONG&gt; I'm using S32DS 3.5 to create the lpuart_echo_s32K144 example with SDK version 4.0.2.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps Taken:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Step 1:&lt;/STRONG&gt; I compiled and flashed the example onto the S32K144evb without any modifications. The example ran successfully on the EVB.&lt;BR /&gt;2. &lt;STRONG&gt;Step 2:&lt;/STRONG&gt; I modified the project as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Changed the package to LQFP64.&lt;/LI&gt;&lt;LI&gt;Remapped LPUART1 pins to PTC9 and PTC8.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_0-1762846793005.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364881i5D7B776874A0B9E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_0-1762846793005.png" alt="whale_0-1762846793005.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Set LPUART1_CLK to 24MHz. My custom board does *not* have an external crystal oscillator; it uses FIRC as the clock source.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_1-1762846828103.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364882iA909D9DD47C12D47/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_1-1762846828103.png" alt="whale_1-1762846828103.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;3. &lt;STRONG&gt;Step 3:&lt;/STRONG&gt; After compilation, I attempted to debug the application on the custom board using J-Link.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;During debugging, the program enters an infinite loop at the following line of code:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_3-1762846978134.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364884i2D7D6D56DB52FCD2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_3-1762846978134.png" alt="whale_3-1762846978134.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_4-1762846994486.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364885iD821AADE3B6D69BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_4-1762846994486.png" alt="whale_4-1762846994486.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_5-1762847066215.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364886i135EB4CBCE013EF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_5-1762847066215.png" alt="whale_5-1762847066215.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;`&lt;STRONG&gt;uint32_t regValue = config-&amp;gt;base-&amp;gt;PCR[config-&amp;gt;pinPortIdx];&lt;/STRONG&gt;`&lt;/P&gt;&lt;P&gt;This leads to the execution of the `DefaultISR` function:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_2-1762846905056.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/364883i698D4C9324E4BA0A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_2-1762846905056.png" alt="whale_2-1762846905056.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Could you please advise on the potential cause of this issue and suggest possible solutions? I suspect the clock configuration or pin mapping might be the source of the problem.&lt;/P&gt;&lt;P&gt;Thank you for your time and assistance.&lt;/P&gt;&lt;P&gt;Sincerely,&lt;BR /&gt;Whale&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 07:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2202518#M54360</guid>
      <dc:creator>whale</dc:creator>
      <dc:date>2025-11-11T07:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: PINS_DRV_Init failed</title>
      <link>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2202611#M54364</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I modified the &lt;STRONG&gt;lpuart_echo_s32k144&lt;/STRONG&gt; according to your instructions in S32DS v3.4 + S32K1 SDK &lt;STRONG&gt;4.0.3&lt;/STRONG&gt;, but I didn't encounter this error on my S32K144EVB-Q100.&lt;/P&gt;
&lt;P&gt;This error seems to indicate that the clock gate of the PORT is not enabled.&lt;/P&gt;
&lt;P&gt;For your board that doesn't have onboard crystal, I suggest modifying the &lt;STRONG&gt;&lt;EM&gt;Clock tool&lt;/EM&gt;&lt;/STRONG&gt; configuration to disable &lt;STRONG&gt;SCG.SOSC&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Additionally, for S32K1 SDK 4.0.x, it is recommended to use &lt;STRONG&gt;CLOCK_DRV_Init&lt;/STRONG&gt;. For details, please see: &lt;A href="https://community.nxp.com/t5/S32-SDK/SDK-problem-in-S32-Design-Studio-for-ARM-2-2/m-p/986190" target="_self"&gt;SDK problem in S32 Design Studio for ARM 2.2&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;  /* Initialize and configure clocks
   *     -    see clock manager component for details
   */
//  CLOCK_SYS_Init(g_clockManConfigsArr, CLOCK_MANAGER_CONFIG_CNT,
//                 g_clockManCallbacksArr, CLOCK_MANAGER_CALLBACK_CNT);
//  CLOCK_SYS_UpdateConfiguration(0U, CLOCK_MANAGER_POLICY_AGREEMENT);
  CLOCK_DRV_Init(&amp;amp;clockMan1_InitConfig0);
  /* Initialize pins
   *    -    See PinSettings component for more info
   */
  PINS_DRV_Init(NUM_OF_CONFIGURED_PINS0, g_pin_mux_InitConfigArr0);&lt;/LI-CODE&gt;
&lt;DIV&gt;By the way:&lt;/DIV&gt;
&lt;DIV&gt;It is not recommended to install S32K1&amp;nbsp;SDK 4.0.x&amp;nbsp;in S32DS&amp;nbsp;v3.5 or v3.6.&amp;nbsp;According to the currently available information, we don’t have any plan to integrate S32SDK S32K1XX 4.0.x into S32DS 3.5 or above version.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;But we recommend to use the latest S32K1 RTD. The old SDK will not be updated to fix bugs.&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;Please download it by click&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SW32K1-RTD44-D" target="_blank" rel="noopener" shape="rect"&gt;Real-Time Drivers for S32K1&lt;/A&gt;&amp;nbsp;-&amp;gt; Automotive SW - S32K1_S32M24x - Real-Time Drivers for Cortex-M -&amp;gt; S32K1_S32M24X Real Time Drivers AUTOSAR R21-11 Version 3.0.0 -&amp;gt; &amp;nbsp;SW32K1_S32M24x_RTD_R21-11_3.0.0_D2503_DesignStudio_updatesite.zip&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Then install it in&amp;nbsp;&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=S32DS-3-6" target="_blank" rel="noopener" shape="rect"&gt;S32DS v3.6.1&amp;nbsp;&lt;/A&gt;by refer to&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-S32-Design-Studio-Offline-Install-of-Extensions-and/ta-p/1126424" target="_blank" rel="noopener" shape="rect"&gt;https://community.nxp.com/t5/S32-Design-Studio-Knowledge-Base/HOWTO-S32-Design-Studio-Offline-Install-of-Extensions-and/ta-p/1126424&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Nov 2025 09:16:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2202611#M54364</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2025-11-11T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: PINS_DRV_Init failed</title>
      <link>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2203032#M54379</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/57959"&gt;@Robin_Shen&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following your instructions, I modified the clock initialization function, and I also disabled SOSC in the clock configuration interface. However, when generating the code, the following error occurred:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="whale_0-1762908385288.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/365033i91ED31D2DA4948B2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="whale_0-1762908385288.png" alt="whale_0-1762908385288.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm not sure if this is the cause, but even after your modifications, the crash still occurs in the same place within PINS_Init.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How should I fix this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 00:49:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2203032#M54379</guid>
      <dc:creator>whale</dc:creator>
      <dc:date>2025-11-12T00:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: PINS_DRV_Init failed</title>
      <link>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2203051#M54380</link>
      <description>&lt;P&gt;Please tell me your chip's maskset and part number. If it's an S32K144&lt;STRONG&gt;H&lt;/STRONG&gt;, it only supports a maximum of &lt;STRONG&gt;80&lt;/STRONG&gt;MHz. If it's an S32K144&lt;STRONG&gt;U&lt;/STRONG&gt;, it supports a maximum of HSRUN mode (&lt;STRONG&gt;112&lt;/STRONG&gt; MHz).&lt;/P&gt;
&lt;P&gt;Please reconfigure the HSRUN clock by refer to the discussion in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/S32K/Creating-New-project-s32DS-Error-clock-not-initializing/td-p/1331744" target="_self"&gt;Creating New project : s32DS : Error clock not initializing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 01:38:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PINS-DRV-Init-failed/m-p/2203051#M54380</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2025-11-12T01:38:32Z</dc:date>
    </item>
  </channel>
</rss>

