<?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 S32K144 SPI config issue in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033028#M45399</link>
    <description>&lt;P&gt;First of all, I'm not very professional, and I'm still learning, so if I ask questions that seem stupid, I hope you can help me answer them, thank you very much;&lt;/P&gt;&lt;P&gt;I am implementing SPI communication function on S32k144 chip, using LPSPI2. The pins used are as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC1&lt;/SPAN&gt;&lt;SPAN&gt;: LPSPI2_SOUT&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC0: LPSPI&lt;/SPAN&gt;&lt;SPAN&gt;2_SIN&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC15&lt;/SPAN&gt;&lt;SPAN&gt;: LPSPI2_SCK&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;P&lt;/SPAN&gt;&lt;SPAN&gt;TC4: LPSPI2_PCS0&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The development tool I use is IAR. My program mimics the code in the lpspi_transfer_s32k144 project and is configured as master. However, when the program reached the LPSPI_Init(base) line in the lPSPI_DRv_Masterinit() function at runtime, it could not continue, and there was a hard fault. I have been debugging for several days, but it still hasn't been solved. I hope anyone can help me. The code is in txt file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to answering. Thank you exeryone.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jan 2025 08:36:20 GMT</pubDate>
    <dc:creator>648811715</dc:creator>
    <dc:date>2025-01-23T08:36:20Z</dc:date>
    <item>
      <title>S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033028#M45399</link>
      <description>&lt;P&gt;First of all, I'm not very professional, and I'm still learning, so if I ask questions that seem stupid, I hope you can help me answer them, thank you very much;&lt;/P&gt;&lt;P&gt;I am implementing SPI communication function on S32k144 chip, using LPSPI2. The pins used are as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC1&lt;/SPAN&gt;&lt;SPAN&gt;: LPSPI2_SOUT&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC0: LPSPI&lt;/SPAN&gt;&lt;SPAN&gt;2_SIN&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;PTC15&lt;/SPAN&gt;&lt;SPAN&gt;: LPSPI2_SCK&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;P&lt;/SPAN&gt;&lt;SPAN&gt;TC4: LPSPI2_PCS0&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;The development tool I use is IAR. My program mimics the code in the lpspi_transfer_s32k144 project and is configured as master. However, when the program reached the LPSPI_Init(base) line in the lPSPI_DRv_Masterinit() function at runtime, it could not continue, and there was a hard fault. I have been debugging for several days, but it still hasn't been solved. I hope anyone can help me. The code is in txt file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking forward to answering. Thank you exeryone.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 08:36:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033028#M45399</guid>
      <dc:creator>648811715</dc:creator>
      <dc:date>2025-01-23T08:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033445#M45414</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/67149"&gt;@648811715&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Firstly, could your share your IDE and SDK version, if possible? Is this the S32K144-EVB or a custom board?&lt;/P&gt;
&lt;P&gt;I can see you are using Processor Expert, so firstly I suggest comparing the configuration for Send/Receive LPSPI between the example and your project. Also, please confirm if you have the peripheral clocks available for the LPSPI instance you need (2 in your case).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1737664911696.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/321137i9F566376FE333DD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1737664911696.png" alt="Julin_AragnM_1-1737664911696.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2025 20:42:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033445#M45414</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-01-23T20:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033816#M45432</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your response. The board is a custom board. The IDE I use is IAR embedded workbench for ARM 8.32.1. I am not sure about the SDK version, but I know that the program was acquired in 2019, and the library files have not changed since then. Processor Expert probably wasn't actually used because I couldn't find the definition for PEX_ROS_INIT, and I commented out the Processor Expert part of the code and stopped running in the same place.&amp;nbsp;I actually commented out all the code in main, just copied the example code into my main function, and the program stopped running on the same line.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 10:55:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033816#M45432</guid>
      <dc:creator>648811715</dc:creator>
      <dc:date>2025-01-24T10:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033970#M45440</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/67149"&gt;@648811715&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you are not using PE, I imagine you are building your application through baremetal, or at least hardcoding the configuration. You can use&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN5413.pdf" target="_blank"&gt;AN5413: S32K1xx Series Cookbook – Application Note&lt;/A&gt;&amp;nbsp;for a reference project on SPI (chapter&amp;nbsp;2.8).&lt;/P&gt;
&lt;P&gt;Please go over the configuration for LPSPI and compare it with yours.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 17:14:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2033970#M45440</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2025-01-24T17:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2039117#M45673</link>
      <description>&lt;P&gt;I'm afraid it's really a problem with my SDK version. I have compared some files and they are really different. Maybe I'll have to update the SDK first.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 07:42:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2039117#M45673</guid>
      <dc:creator>648811715</dc:creator>
      <dc:date>2025-02-06T07:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144 SPI config issue</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2041458#M45777</link>
      <description>&lt;P&gt;Sorry. My bad. The SPI clock is not configured. No hardware fault appeares after the clock is configured&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2025 06:28:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-SPI-config-issue/m-p/2041458#M45777</guid>
      <dc:creator>648811715</dc:creator>
      <dc:date>2025-02-11T06:28:49Z</dc:date>
    </item>
  </channel>
</rss>

