<?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: FS26 CRC error when commucating with MCU K396 by SPI</title>
    <link>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2030027#M45225</link>
    <description>&lt;P&gt;I put my Mcal configuration for SPI and FS26 as the following shown:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320156i92BF5CCFABAF3F45/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config.jpg" alt="SPI Config.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config2.jpg" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320155i125E5619F903FED0/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config2.jpg" alt="SPI Config2.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config2.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config3.jpg" style="width: 876px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320157iAF03D88A05A8BBBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config3.jpg" alt="SPI Config3.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config3.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config4.jpg" style="width: 415px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320154iD3EFC4B641BBFD34/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config4.jpg" alt="SPI Config4.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config4.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2025 02:25:38 GMT</pubDate>
    <dc:creator>HarryFu</dc:creator>
    <dc:date>2025-01-18T02:25:38Z</dc:date>
    <item>
      <title>FS26 CRC error when commucating with MCU K396 by SPI</title>
      <link>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2029757#M45207</link>
      <description>&lt;P&gt;Hello,I use the SDK package of FS26 0.9 autosar R21-11 version 0.9.0,I fix some bugs of the RTD and make the FS26 feedback some value from SPI port，however,the CRC check is always wrong .I put the code as the following shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;eReturnValue = Sbc_fs26_TransferData(&amp;amp;txData, pRxData);&lt;/P&gt;&lt;P&gt;it contains the function:&lt;/P&gt;&lt;P&gt;Sbc_Ip_SpiTransferExternal(const Sbc_Ip_SpiSetupType *pSpiSetup, const uint8 * pTxBuffer, uint8 * pRxBuffer);&lt;/P&gt;&lt;P&gt;it contains the function:&lt;/P&gt;&lt;P&gt;#elif defined(USE_IPV_LPSPI)&lt;BR /&gt;&amp;nbsp;eStatus = (Std_ReturnType)Lpspi_Ip_SyncTransmit(ExternalDevice,&lt;BR /&gt;(uint8 *)pTxBuffer,&lt;BR /&gt;(uint8 *)pRxBuffer,&lt;BR /&gt;(uint16)pSpiSetup-&amp;gt;NumberOfBytes,&lt;BR /&gt;pSpiSetup-&amp;gt;Timeout);&lt;/P&gt;&lt;P&gt;and the following code:&lt;/P&gt;&lt;P&gt;/* Trigger the SPI transfer */&lt;BR /&gt;eReturnValue = Sbc_Ip_SpiTransferExternal(&amp;amp;spiSetup, &amp;amp;&lt;STRONG&gt;&lt;U&gt;au8SpiTxFrame[0]&lt;/U&gt;&lt;/STRONG&gt;, &amp;amp;&lt;STRONG&gt;&lt;U&gt;au8SpiRxFrame[0]&lt;/U&gt;&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;if ((Std_ReturnType)E_OK == eReturnValue)&lt;BR /&gt;{&lt;BR /&gt;/* Check the CRC of the retrieved frame */&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;U&gt;eReturnValue&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt; = Sbc_fs26_CheckCrc(au8SpiRxFrame, SBC_FS26_COMM_FRAME_SIZE);&lt;/P&gt;&lt;P&gt;if (((Std_ReturnType)&lt;STRONG&gt;&lt;EM&gt;&lt;U&gt;E_OK == eReturnValue&lt;/U&gt;&lt;/EM&gt;&lt;/STRONG&gt;) &amp;amp;&amp;amp; (NULL_PTR != pRxData))&lt;BR /&gt;{&lt;BR /&gt;/* Copy the retrieved data into the user provided buffer */&lt;BR /&gt;pRxData-&amp;gt;u8DeviceStatus = au8SpiRxFrame[0];&lt;BR /&gt;pRxData-&amp;gt;u16ReadData = ((uint16)au8SpiRxFrame[1] &amp;lt;&amp;lt; 8U) | (uint16)au8SpiRxFrame[2];&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;I found that the first&amp;nbsp;eReturnValue is E_OK ,whereas the second one after checkCrc function it becomes NoT_OK,so the readdata cannot receive the correct data.&lt;/P&gt;&lt;P&gt;I past the&amp;nbsp;picture as th following shown:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="微信图片_20250117203020.png" style="width: 421px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320086i92CC82593570A102/image-size/large?v=v2&amp;amp;px=999" role="button" title="微信图片_20250117203020.png" alt="微信图片_20250117203020.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;微信图片_20250117203020.png&lt;/span&gt;&lt;/span&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyone can help me to analysis the root reason of the issue?thanks!&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 12:32:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2029757#M45207</guid>
      <dc:creator>HarryFu</dc:creator>
      <dc:date>2025-01-17T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: FS26 CRC error when commucating with MCU K396 by SPI</title>
      <link>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2030027#M45225</link>
      <description>&lt;P&gt;I put my Mcal configuration for SPI and FS26 as the following shown:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config.jpg" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320156i92BF5CCFABAF3F45/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config.jpg" alt="SPI Config.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config2.jpg" style="width: 775px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320155i125E5619F903FED0/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config2.jpg" alt="SPI Config2.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config2.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config3.jpg" style="width: 876px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320157iAF03D88A05A8BBBC/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config3.jpg" alt="SPI Config3.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config3.jpg&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SPI Config4.jpg" style="width: 415px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320154iD3EFC4B641BBFD34/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Config4.jpg" alt="SPI Config4.jpg" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SPI Config4.jpg&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2025 02:25:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2030027#M45225</guid>
      <dc:creator>HarryFu</dc:creator>
      <dc:date>2025-01-18T02:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: FS26 CRC error when commucating with MCU K396 by SPI</title>
      <link>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2030444#M45264</link>
      <description>&lt;P&gt;Hi Quang (&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/220202"&gt;@quangvuanh&lt;/a&gt;),&lt;/P&gt;
&lt;P&gt;Could you please please help with this question from Vepic Technologies China?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; BRs, Tomas&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 08:01:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2030444#M45264</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-01-20T08:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: FS26 CRC error when commucating with MCU K396 by SPI</title>
      <link>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2031165#M45306</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/221168"&gt;@HarryFu&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me to know more detail about:&lt;/P&gt;
&lt;P&gt;1) Did this issue happen on every ReadRegister calls, or did it just occur only on a specific register address?&lt;/P&gt;
&lt;P&gt;2) Can you let me exactly what software version of FS26 and RTD that you are using? I need the correct name of the update site packages, as we have delivered separate packages of FS26 for K396 and other K3 devices.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Assumption from me on your CRC issue&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;Taking a look into your configuration I dont see any possible issue from Spi or FS26 software setup.&lt;/P&gt;
&lt;P&gt;we also recorded this CRC error in the case logic level of VDDIO(FS26) is different from VDDHV_A/VDDHV_B( K3 MCU), for example 3.3V vs 5V. It rarely happens, but can you please confirm that you have the same logic level with your hardware setup?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 07:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS26-CRC-error-when-commucating-with-MCU-K396-by-SPI/m-p/2031165#M45306</guid>
      <dc:creator>quangvuanh</dc:creator>
      <dc:date>2025-01-21T07:06:11Z</dc:date>
    </item>
  </channel>
</rss>

