<?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: SPI_PAL example code not working properly on S32k118 Evaluation board in S32K</title>
    <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1586333#M20166</link>
    <description>&lt;P&gt;Hey&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;Now I chose PTA2 as the MISO pin and it works. Screenshots attached.&lt;/P&gt;&lt;P&gt;Still there is some issue with the data being received, I am yet to check it with the logic analyzer, but I am not sure why I am facing this issue sometimes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_1-1674284819410.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208088i78BAC0DB8CEF13AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_1-1674284819410.png" alt="Adarshnanda_1-1674284819410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_2-1674284839453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208089i2FC0B26BD7DD3985/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_2-1674284839453.png" alt="Adarshnanda_2-1674284839453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jan 2023 07:08:19 GMT</pubDate>
    <dc:creator>Adarshnanda</dc:creator>
    <dc:date>2023-01-21T07:08:19Z</dc:date>
    <item>
      <title>SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582201#M19994</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was exploring SPI peripheral on S32k118 evaluation board. I flashed the spi_pal_s32k118 example on the board, and made the connections according to the user manual, and checked the same using pinmux.&lt;/P&gt;&lt;P&gt;Here, in this code, the master(FLEXIO peripheral on the same board) sends data in an array -{1,2,3,4,5,6,7,8,9,10}, and so does the slave(LPSPI0), if the data matches on both sides, the LED is OFF, and if it doesn't , the LED remains on.&lt;/P&gt;&lt;P&gt;In my case the LED was ON, then i debugged it and saw the values received by the master and the slave,&lt;STRONG&gt; then I found that the Slave was receiving the correct data, while the master was receiving 0xFF or 0x00. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Later I modified code&amp;nbsp;to check only if the mastersend data is the same as slave receive data, and this time the LED remained OFF and it was working properly.&lt;/P&gt;&lt;P&gt;My question is that, &lt;STRONG&gt;why is the master not receiving the right data?&lt;/STRONG&gt; Can anybody help me out ?&lt;/P&gt;&lt;P&gt;I am pretty sure that the connections are right.&lt;/P&gt;&lt;P&gt;I am attaching the screenshots.&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_0-1673590157594.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207215i6F8014A36B1DCA25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_0-1673590157594.png" alt="Adarshnanda_0-1673590157594.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_1-1673590263683.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207216iAFEDDFB84F4BD22A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_1-1673590263683.png" alt="Adarshnanda_1-1673590263683.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 06:12:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582201#M19994</guid>
      <dc:creator>Adarshnanda</dc:creator>
      <dc:date>2023-01-13T06:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582290#M19999</link>
      <description>&lt;P&gt;Hi Adarshnanda,&lt;/P&gt;
&lt;P&gt;Please tell me the version of S32K SDK and S32DS.&amp;nbsp;Note S32K118EVB-Q064(SCH-29945) is&amp;nbsp;&lt;SPAN&gt;supported by this application.(not &lt;EM&gt;S32K118EVB2Q048 SCH-47530&lt;/EM&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I tested spi_pal_s32k118 example in S32K SDK RTM4.0.3 with S32DS v3.4. The transfer is successful, and GREEN led was on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spi_pal_s32k118 If transfer is successful, GREEN led will be on.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207243i14B015B652A97649/image-size/large?v=v2&amp;amp;px=999" role="button" title="spi_pal_s32k118 If transfer is successful, GREEN led will be on.png" alt="spi_pal_s32k118 If transfer is successful, GREEN led will be on.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This is the connection, check that the yellow wire is connected correctly.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="S32K118EVB-Q064.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207244i81000898911107EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="S32K118EVB-Q064.jpg" alt="S32K118EVB-Q064.jpg" /&gt;&lt;/span&gt;&lt;/P&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 "Mark Correct" 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;</description>
      <pubDate>Fri, 13 Jan 2023 08:32:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582290#M19999</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-01-13T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582953#M20020</link>
      <description>&lt;P&gt;Hey Robert,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I am actually using the other board (this one -&lt;EM&gt;S32K118EVB2Q048 SCH-47530)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Now, I have created a new application project for s32k118 microcontroller, and have written almost the same code as written in the example project for master and slave transmission,there are some changes in the FLEXIO pins for SPI. Still, I am facing some issues.&lt;/P&gt;&lt;P&gt;In some cases, I am able to receive the correct slave_receive data and in some cases there is some problem with the data_arrangement, &lt;STRONG&gt;but still there is no data in the master_receive&lt;/STRONG&gt;.(I am sending the odd numbers from 1 to 20 instead of 1 to 10).&lt;/P&gt;&lt;P&gt;I am attaching the project with this thread (I have added a delay function, just for my use case), and posting all the screenshots here. Can you please help me out with this&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 class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_0-1673852382133.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207403iD9C4152E551D1B5C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_0-1673852382133.png" alt="Adarshnanda_0-1673852382133.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_1-1673852410966.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207404i987BCEC9F1E04006/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_1-1673852410966.png" alt="Adarshnanda_1-1673852410966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_2-1673852446538.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207405iD2F8B3FC048C9BE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_2-1673852446538.png" alt="Adarshnanda_2-1673852446538.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_3-1673852469772.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207406i81FC5285B8EDB313/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_3-1673852469772.png" alt="Adarshnanda_3-1673852469772.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 07:02:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582953#M20020</guid>
      <dc:creator>Adarshnanda</dc:creator>
      <dc:date>2023-01-16T07:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582977#M20021</link>
      <description>&lt;P&gt;The position of S32K118EVB-Q064 pins on the Header(J1\J2\J3) is somewhat different from that of S32K118EVB2Q048.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you confirm your&amp;nbsp;&lt;STRONG&gt;Hardware Wiring&lt;/STRONG&gt; according to the schematic in the &lt;A href="https://www.nxp.com/webapp/Download?colCode=S32K118EVBQ048-Design-Files-REV-A" target="_self"&gt;S32K118EVB Evaluation Board - REV A Design Files&lt;/A&gt;, and retest the &lt;SPAN&gt;spi_pal_s32k118 example&lt;/SPAN&gt;&amp;nbsp;that have not been modified?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hardware Wiring.png" style="width: 884px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207412iDBD978B8DE8E6013/image-size/large?v=v2&amp;amp;px=999" role="button" title="Hardware Wiring.png" alt="Hardware Wiring.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Please check the information at the bottom side of your board.&amp;nbsp; Here is the information of my&amp;nbsp;S32K118EVB2Q048(700-47530 REV X1&amp;nbsp; &amp;nbsp;SCH-47530 REV A1)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 07:35:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1582977#M20021</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-01-16T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1583081#M20024</link>
      <description>&lt;P&gt;Thanks for the help&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;I found the error, &lt;STRONG&gt;the MISO line(PTA1) was actually connected to a DNP resistor on &lt;SPAN&gt;S32K118EVB2Q048&lt;/SPAN&gt;, and I was expecting the data out of it&lt;/STRONG&gt;, my bad! , thankyou for solving the issue.&lt;/P&gt;&lt;P&gt;Slave is working fine, as usual &amp;amp; now the data is coming in master_receive as well, I saw the correct data, a number of times and incorrect data as well. Why am I facing such inconsistent data in the master_receive?&lt;/P&gt;&lt;P&gt;I am attaching a screenshot here, please have a look, what do you think, is it a hardware issue?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_0-1673862173151.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/207440i99E9636BCC2A05B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_0-1673862173151.png" alt="Adarshnanda_0-1673862173151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me&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;</description>
      <pubDate>Mon, 16 Jan 2023 09:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1583081#M20024</guid>
      <dc:creator>Adarshnanda</dc:creator>
      <dc:date>2023-01-16T09:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1584338#M20081</link>
      <description>&lt;P&gt;-&amp;gt;&lt;STRONG&gt;The MISO line (PTA1) is actually connected to a DNP resistor on the S32K118EVB2Q048.&lt;/STRONG&gt;&lt;BR /&gt;So which pin did you finally choose as MISO? Did you check the data by using logic analyzer?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 04:43:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1584338#M20081</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-01-18T04:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1586333#M20166</link>
      <description>&lt;P&gt;Hey&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;Now I chose PTA2 as the MISO pin and it works. Screenshots attached.&lt;/P&gt;&lt;P&gt;Still there is some issue with the data being received, I am yet to check it with the logic analyzer, but I am not sure why I am facing this issue sometimes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_1-1674284819410.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208088i78BAC0DB8CEF13AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_1-1674284819410.png" alt="Adarshnanda_1-1674284819410.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Adarshnanda_2-1674284839453.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208089i2FC0B26BD7DD3985/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Adarshnanda_2-1674284839453.png" alt="Adarshnanda_2-1674284839453.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2023 07:08:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1586333#M20166</guid>
      <dc:creator>Adarshnanda</dc:creator>
      <dc:date>2023-01-21T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: SPI_PAL example code not working properly on S32k118 Evaluation board</title>
      <link>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1648264#M22799</link>
      <description>&lt;P&gt;Sorry. I did not notice that it still not work.&lt;BR /&gt;Are you using the USB cable (J7) or an external 12V (J16) power supply? Please try to power the board by J7 and select P3V3 power the S32K118(J10 1-2).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 02:48:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/SPI-PAL-example-code-not-working-properly-on-S32k118-Evaluation/m-p/1648264#M22799</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-05-11T02:48:44Z</dc:date>
    </item>
  </channel>
</rss>

