<?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: FS23 SPI Communication</title>
    <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2100532#M48992</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;OK, the MFS2303BMBA3EP is programmed for SPI communication.&lt;/P&gt;
&lt;P&gt;I will ask my colleague&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;who supports S32K MCUs to follow up on this and review your SPI settings and code.&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;</description>
    <pubDate>Tue, 20 May 2025 08:49:10 GMT</pubDate>
    <dc:creator>TomasVaverka</dc:creator>
    <dc:date>2025-05-20T08:49:10Z</dc:date>
    <item>
      <title>FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2096699#M48730</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a custom board that uses an S32K144 MCU and FS2303 SBC. For time being I have a repeated reset and I'm not able to follow the instructions and disable the watchdog on SBC.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an SPI connection between the MCU and the SBC that seems to work. I've used the SPI_PAL component and messages are sent accordingly with FS2303 datasheet , 32 bits where the 1st byte contains the address and red/write operation and the last byte CRC.&lt;/P&gt;&lt;P&gt;In order to program the SBS I need to know the current status of the chip but for some reason I get only 0s on my status request {0x06,0x00,0x00,0xB}.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Investigating further I've notice that the reply I get from SBC is a reverse echo message. if the request is {0x01,0x02,0x03,0x04} the SBC will return {{0x04,0x03,0x01,0x01}}.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code will looks like&amp;nbsp;&lt;/P&gt;&lt;P&gt;uint8_t txBuffer[4] = {0x04, 0x03, 0x02, 0x01};&lt;BR /&gt;status_t status_read = SPI_MasterTransferBlocking(&amp;amp;spi1Instance, txBuffer, recvBuffer, 1U, TIMEOUT);&lt;/P&gt;&lt;P&gt;the status is STATUS_SUCCESS and in recvBuffer I get the reverse echo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone has a clue what might be the issue here ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 17:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2096699#M48730</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-13T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097113#M48753</link>
      <description>&lt;P&gt;Hi Mihai,&lt;/P&gt;
&lt;P&gt;Our &lt;A href="https://www.nxp.com/webapp/Download?colCode=AN14129" target="_self"&gt;AN14129&lt;/A&gt; (FS23 implementation and behaviors) provides an example of initialization sequence. Please follow all the steps recommended there. We also have the &lt;A href="https://www.nxp.com/docs/en/application-note/AN14041.pdf" target="_self"&gt;AN14041&lt;/A&gt; (FS23 quick start guide) that describes SPI communication in detail.&lt;/P&gt;
&lt;P&gt;Take a close look at these ANs, they should be fully sufficient for working with the FS23.&lt;/P&gt;
&lt;P&gt;BTW, there is also available the FS23 SBC RTD at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SWFSXX-STDSW-D" target="_blank"&gt;https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=SWFSXX-STDSW-D&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 08:15:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097113#M48753</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-05-14T08:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097232#M48767</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12216"&gt;@TomasVaverka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I'm keen to follow the guideline BUT whenever try to read a registry value through SPI in initial sequence the SPI replies not with the value but the exact message I'm sending.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example message to read&amp;nbsp;FS_SAFETY_OUTPUTS (0x3F)&lt;/P&gt;&lt;P&gt;01111110 00000000 00000000 01001110 =&amp;nbsp;{0x3F&amp;lt;&amp;lt;1 , 0x00, 0x00, crc}&lt;/P&gt;&lt;P&gt;where the 1st value is the address shifter one bit to left and leave bit 24 set to 0 for reading&lt;/P&gt;&lt;P&gt;And the reply I'm getting through SPI (or at least what SPI_PAL high level component returns is exactly the same content).&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the cause of my confusion. Thank you !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 09:57:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097232#M48767</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-14T09:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097447#M48786</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Mihai,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Do you happen to have an oscilloscope or a logic analyzer to check if your SPI format and timing are correct?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Could you please try to read the&amp;nbsp;M_VSUP_COM_FLG register?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;• The SPI _REQ_I bit reports an invalid SPI access (wrong write or read, wrong address).&lt;BR /&gt;• The SPI _CLK_I bit reports an error in the number of SPI clock cycles.&lt;BR /&gt;• The SPI _CRC_I bit reports an error in the CRC.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BRs, Tomas&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 16:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097447#M48786</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-05-14T16:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097459#M48788</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12216"&gt;@TomasVaverka&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't have a logic analyzer available so for now I fully rely on what I receive in the software stack. And as the SPI calls fails I can't get the registry you've mentioned.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried SPI_PAL component first and on any request I got back my initial request on response which is weird. The status of the request was&amp;nbsp;STATUS_SUCCESS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then switched to LPSPI component where on my requests the status is also success, but the response buffer is filled in with 0xFF.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code looks something like :&amp;nbsp;&lt;/P&gt;&lt;P&gt;status_t status_read = &lt;STRONG&gt;LPSPI_DRV_MasterTransferBlocking&lt;/STRONG&gt;(LPSPI_INSTANCE, txBuffer, recvBuffer, 32U,TIMEOUT);&amp;nbsp;&lt;/P&gt;&lt;P&gt;where in txBuffer I have the 7 bits address of registry and 0 for read , 2 zero values and CRC8 .&amp;nbsp;&lt;/P&gt;&lt;P&gt;read_status is successful, the call waits until recvBuffer is filled in, unfortunately with unusable content.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 May 2025 16:50:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2097459#M48788</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-14T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099035#M48922</link>
      <description>&lt;P&gt;Mihai's HW developer chiming in here.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThijsKesselsARRK_1-1747400810550.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/338261i11F8D949CCABFB17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThijsKesselsARRK_1-1747400810550.png" alt="ThijsKesselsARRK_1-1747400810550.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;from the timing diagram in the FS23 datasheet I think I can deduce that CPOL = 0 and CPHA = 1, but the nomenclature is varies from place to place("first edge"/"second edge"), so it is tricky to wrap my head around sometimes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThijsKesselsARRK_2-1747401033920.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/338262i82292D2A848B565E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThijsKesselsARRK_2-1747401033920.png" alt="ThijsKesselsARRK_2-1747401033920.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;clock source is SIRCDIV2 (8MHz/1)&lt;/P&gt;&lt;P&gt;which results in:&lt;BR /&gt;LPSPI0-&amp;gt;CFGR1 = 0x00000003 (full duplex, CS active low, input sampled on delayed SCK edge, master mode)&lt;BR /&gt;LPSPI0-&amp;gt;CCR = 0x01010106 (2 clock cycles of FCLK = 2/8MHz = 250ns SCK&amp;lt;-&amp;gt;PSC delay, 3 cycles delay between tranfers, SCK divider = 6+2 = &lt;LI-EMOJI id="lia_smiling-face-with-sunglasses" title=":smiling_face_with_sunglasses:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;LPSPI0-&amp;gt;TCR = 0x40200001f (CPOL =0 , CPHA = 1, prescale from clock source to FCLK = 1, CS0, MSB first, continuous transfer enabled, 32-bit frame size)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these settings correct? If not what are they and how should we have dedudeced them?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 13:41:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099035#M48922</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-16T13:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099036#M48923</link>
      <description>&lt;P&gt;the reply from reading M_VSUP_COM is 0x0000 (full message is 0xFF000055)&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 13:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099036#M48923</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-16T13:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099047#M48924</link>
      <description>&lt;P&gt;Also, the reason for the 4x 8-bit data format is that the PAL function has 8-bit send- and receive buffers, and we're trying to fool the SBC:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;status_t LPSPI_DRV_MasterTransferBlocking(uint32_t instance, const uint8_t * sendBuffer, uint8_t * receiveBuffer, uint16_t transferByteCount, uint32_t timeout)&lt;/LI-CODE&gt;&lt;P&gt;I can find code in the PAL to do 16- and 32-bit transfers via DMA&amp;nbsp;and in the interrupt handler there is some pointer casting stuff going on fill the tx register with different sized data.&lt;/P&gt;&lt;P&gt;How to approach 'proper' 32-bit transfers, like the FS23 SBC requires? Ingnore the uint8_t* type and feed in uint32_t* type pointer and have lpspiState-&amp;gt;bytesPerFrame = 4?&lt;/P&gt;</description>
      <pubDate>Fri, 16 May 2025 14:03:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099047#M48924</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-16T14:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099059#M48926</link>
      <description>I've repeated reading from M_VSUP_COM for different settings:&lt;BR /&gt;With CPOL = 0 and CPHA = 1 -&amp;gt; 0xFF000055&lt;BR /&gt;With CPOL = 0 and CPHA = 0 -&amp;gt; 0x7F00802A or 0x73008022&lt;BR /&gt;With CPOL = 1 and CPHA = 0 -&amp;gt; 1st time 0x7F00802A or 0x73008022, repeated reads are 0x7100802A&lt;BR /&gt;With CPOL = 1 and CPHA = 1 -&amp;gt; 1st time 0x7F00802A or 0x73008022, repeated reads are 0x7100802A</description>
      <pubDate>Fri, 16 May 2025 14:25:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099059#M48926</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-16T14:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099731#M48952</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;What is the full part number you are using? &lt;BR /&gt;The A0 version is not programmed and the default communication is I2C (SPI_EN_OTP = 0).&lt;BR /&gt;Other versions may be programmed for SPI communication (SPI_EN_OTP = 1).&lt;/P&gt;
&lt;P&gt;Yes, the FS23 uses SPI Mode 1 (CPOL = 0, CPHA = 1) and one SPI frame is 32 bits wide with the following arrangement:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-21 115950.png" style="width: 358px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/338954iD41B2FC376509453/image-dimensions/358x160?v=v2" width="358" height="160" role="button" title="Screenshot 2025-05-21 115950.png" alt="Screenshot 2025-05-21 115950.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="Screenshot 2025-05-21 120032.png" style="width: 566px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/338955i7B19AB68AB17EE55/image-dimensions/566x293?v=v2" width="566" height="293" role="button" title="Screenshot 2025-05-21 120032.png" alt="Screenshot 2025-05-21 120032.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think that your SPI settings is correct, but I will let my colleague&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;who supports S32K MCUs confirm this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BRs, Tomas&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 10:01:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099731#M48952</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-05-21T10:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099739#M48953</link>
      <description>we're using MFS2303BMBA3EP SBC and a FS32K144ULT0VLHT MCU</description>
      <pubDate>Mon, 19 May 2025 09:20:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099739#M48953</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-19T09:20:01Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099776#M48954</link>
      <description>Were using a MFS2303BMBA3EP SBC connected to a FS32K144ULT0VLHT MCU</description>
      <pubDate>Mon, 19 May 2025 09:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2099776#M48954</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-19T09:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2100532#M48992</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;OK, the MFS2303BMBA3EP is programmed for SPI communication.&lt;/P&gt;
&lt;P&gt;I will ask my colleague&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/160001"&gt;@danielmartynek&lt;/a&gt;&amp;nbsp;who supports S32K MCUs to follow up on this and review your SPI settings and code.&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;</description>
      <pubDate>Tue, 20 May 2025 08:49:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2100532#M48992</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-05-20T08:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103197#M49117</link>
      <description>&lt;P&gt;We are now quite sure that the SPI communication at protocol level works as expected. Analyzing with an oscilloscope the signals&amp;nbsp; we pretty much confirmed that (See attached images).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue that still stands up is that the response is not valid. The CRC of the response is not what we are expecting&lt;/P&gt;&lt;P&gt;Read 0x02 registry:&lt;/P&gt;&lt;P&gt;Request : {0x06 , 0x00 , 0x00 , 0x0B}&lt;/P&gt;&lt;P&gt;Response&amp;nbsp; : {0x46 , 0x00 , 0xAA , 0x2A}&lt;/P&gt;&lt;P&gt;Calculated CRC 0x85&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Read 0x17 registry:&lt;/P&gt;&lt;P&gt;Request : {0x2E , 0x00 , 0x00 , 0x37}&lt;/P&gt;&lt;P&gt;Response&amp;nbsp; : {0x7F , 0x00 , 0x80 , 0x2A}&lt;/P&gt;&lt;P&gt;Calculated CRC 0x85&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can't actually trust the reply message payload. How can we move forward with this matter ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 06:15:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103197#M49117</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-23T06:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103339#M49124</link>
      <description>&lt;P&gt;Hi Mihai,&lt;/P&gt;
&lt;P&gt;I think that if you want to read e.g. the M_GEN_FLAG register (0x02) using SPI, you need to send: 0x04000008&lt;/P&gt;
&lt;P&gt;Explanation:&lt;/P&gt;
&lt;P&gt;Register address: 0x02 -&amp;gt; binary: 0000010&lt;BR /&gt;Read bit: 0 (since it is a read operation)&lt;BR /&gt;Control Bits: 0000000000000000 (16 bits of 0)&lt;BR /&gt;So first 3 bytes (24 bits):&lt;BR /&gt;Byte 1: 00000100 = 0x04&lt;BR /&gt;Byte 2: 00000000 = 0x00&lt;BR /&gt;Byte 3: 00000000 = 0x00&lt;BR /&gt;CRC calculation using a CRC calculation tool in FS23 GUI:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-05-23 101726.png" style="width: 226px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339399iB40DEFDF004F1AEE/image-dimensions/226x226?v=v2" width="226" height="226" role="button" title="Screenshot 2025-05-23 101726.png" alt="Screenshot 2025-05-23 101726.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;BRs, Tomas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 08:19:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103339#M49124</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2025-05-23T08:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103563#M49141</link>
      <description>&lt;P&gt;Hi Thomas,&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is exactly how we tried to read the values - and for&amp;nbsp;&lt;SPAN&gt;M_GEN_FLAG (0x02) the SBS responds like this :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;on 1st request:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Request : {0x04 , 0x00 , 0x00 , 0x08}&lt;BR /&gt;Response : {0x73 , 0x00 , 0x80 , 0x22}&lt;/P&gt;&lt;P&gt;followed by 4 times:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request : {0x04 , 0x00 , 0x00 , 0x08}&lt;BR /&gt;Response : {0x7F , 0x00 , 0x80 , 0x2A}&lt;/P&gt;&lt;P&gt;The CRC8 of the response is not valid.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 12:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103563#M49141</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-23T12:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103608#M49147</link>
      <description>&lt;P&gt;SPI register settings:&lt;/P&gt;&lt;P&gt;LPSPI0-&amp;gt;VERID = 0x01000004&lt;BR /&gt;LPSPI0-&amp;gt;PARAM = 0x00000202&lt;BR /&gt;LPSPI0-&amp;gt;CR = 0x00000001&lt;BR /&gt;LPSPI0-&amp;gt;SR = 0x00000001&lt;BR /&gt;LPSPI0-&amp;gt;IER = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;DER = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;CFGR0 = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;CFGR1 = 0x00000003&lt;BR /&gt;LPSPI0-&amp;gt;DMR0 = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;DMR1 = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;CCR = 0x01010106&lt;BR /&gt;LPSPI0-&amp;gt;FCR = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;FSR = 0000000000&lt;BR /&gt;LPSPI0-&amp;gt;TCR = 0x4020001f&lt;BR /&gt;LPSPI0-&amp;gt;RSR = 0x00000002&lt;/P&gt;&lt;P&gt;sent message to read&amp;nbsp;M_GEN_FLAG(0x02) = 04 00 00 08&lt;BR /&gt;received raw message = ff 00 00 55 :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThijsK_0-1748009049640.bmp" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339470i136DA9BA6AB6E07B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThijsK_0-1748009049640.bmp" alt="ThijsK_0-1748009049640.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I read on each falling edge of SCLK:&lt;BR /&gt;MOSI = 0b00001000000000000000000000000100 = 0x08000004&lt;BR /&gt;MISO = 0b0101010100000000000000011111111 = 0x550000ff&lt;/P&gt;&lt;P&gt;seems like data bytes are sent in reverse.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 14:24:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103608#M49147</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-23T14:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103678#M49150</link>
      <description>&lt;P&gt;When sending bytes in reverse, the data starts to make sense:&lt;/P&gt;&lt;P&gt;reading&amp;nbsp;&lt;SPAN&gt;M_DEV_PROG_ID(0x01):&lt;BR /&gt;data out: 02 00 00 0d&lt;BR /&gt;data in:&amp;nbsp;51 21 03 e7&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThijsK_1-1748018521297.bmp" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339494iE659C05387FA6E98/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThijsK_1-1748018521297.bmp" alt="ThijsK_1-1748018521297.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;CRC is valid and payload data seems ok:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ThijsK_2-1748018988090.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/339495i23A71F2A35B01FF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThijsK_2-1748018988090.png" alt="ThijsK_2-1748018988090.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 16:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2103678#M49150</guid>
      <dc:creator>ThijsK</dc:creator>
      <dc:date>2025-05-23T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: FS23 SPI Communication</title>
      <link>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2105402#M49271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/12216"&gt;@TomasVaverka&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;we made some progress but the watchdog still block us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've tried to setup the initialization sequence as described in the documentation but the writing of&amp;nbsp;FS_I_WD_CFG (0x17) fails .&amp;nbsp;&lt;/P&gt;&lt;P&gt;On SPI we are sending the following command :&amp;nbsp;&lt;/P&gt;&lt;P&gt;We check the current status and the response is&amp;nbsp;0x310F&amp;nbsp; so the status is in INIT mode&lt;/P&gt;&lt;P&gt;Request: { 0x96 , 0x6C, 0x80, 0x6E }&lt;/P&gt;&lt;P&gt;and then after reading the configuration we receive the default value { 0x7080 }&lt;/P&gt;&lt;P&gt;Is there any prerequisites to change this config ? At some point I've tried to set go2init bit as well but doesn't seems to have any effect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clues ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 15:27:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/FS23-SPI-Communication/m-p/2105402#M49271</guid>
      <dc:creator>MihaiC</dc:creator>
      <dc:date>2025-05-27T15:27:38Z</dc:date>
    </item>
  </channel>
</rss>

