<?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: LPSPI - Tx/Rx bytes different at different Baud Rates in S32K</title>
    <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750158#M28313</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224938"&gt;@ManishKK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you scope the signal and check the parameters specified in the S32K3xx DS (Table 44. LPSPI).&lt;/P&gt;
&lt;P&gt;It was specified using GPIO-STANDARD_PLUS pins (MSCR_DSE = 1) that have better slew rate (7.3 5.0V (4.5V - 5.5V) GPIO Output AC Specification).&lt;/P&gt;
&lt;P&gt;Since there is an issue with the Master, can you try with SAMPLE = 0, so that the Master can sample SCK internally?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regadrs,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 09:12:52 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2023-11-01T09:12:52Z</dc:date>
    <item>
      <title>LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750005#M28302</link>
      <description>&lt;P&gt;I am using S32K344 on MR-CANHUB eval board from NxP. On that I am using S32K as the master to communicate with SPI Aardvark adapter as a slave on LPSPI4.&lt;/P&gt;&lt;P&gt;I have observed the following:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;OL&gt;&lt;LI&gt;at 8Mhz, I see 5 bytes go out and 5 bytes come in, whereas&lt;/LI&gt;&lt;LI&gt;at 4Mhz, 6 bytes go out and 6 bytes come in.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;The application is using a SyncTransmit API to transmit 10 bytes. I dont understand why all the 10 bytes are not Tx'ed by the S32K as master.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Attaching the example for reference.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 01 Nov 2023 05:56:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750005#M28302</guid>
      <dc:creator>ManishKK</dc:creator>
      <dc:date>2023-11-01T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750158#M28313</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224938"&gt;@ManishKK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you scope the signal and check the parameters specified in the S32K3xx DS (Table 44. LPSPI).&lt;/P&gt;
&lt;P&gt;It was specified using GPIO-STANDARD_PLUS pins (MSCR_DSE = 1) that have better slew rate (7.3 5.0V (4.5V - 5.5V) GPIO Output AC Specification).&lt;/P&gt;
&lt;P&gt;Since there is an issue with the Master, can you try with SAMPLE = 0, so that the Master can sample SCK internally?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regadrs,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 09:12:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750158#M28313</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-01T09:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750473#M28328</link>
      <description>&lt;P&gt;Daniel,&amp;nbsp;Hi.&lt;/P&gt;&lt;P&gt;My LPSPI config looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;/* SPI controller SpiPhyUnit_0 configuration. */&lt;BR /&gt;const Lpspi_Ip_ConfigType Lpspi_Ip_PhyUnitConfig_SpiPhyUnit_0_Instance_4 =&lt;BR /&gt;{&lt;BR /&gt;4U, /* Instance */&lt;BR /&gt;/* CR */&lt;BR /&gt;(uint32)0,&lt;BR /&gt;/* CFGR1 */&lt;BR /&gt;(uint32)(LPSPI_CFGR1_PINCFG(0U) | LPSPI_CFGR1_PCSPOL(0U) | LPSPI_CFGR1_MASTER(1U) | LPSPI_CFGR1_SAMPLE(0U)),&lt;BR /&gt;#if (LPSPI_IP_SLAVE_SUPPORT == STD_ON)&lt;BR /&gt;(boolean)FALSE,&lt;BR /&gt;#endif&lt;BR /&gt;#if (LPSPI_IP_DMA_USED == STD_ON)&lt;BR /&gt;(boolean)TRUE,&lt;BR /&gt;(uint8)0, /* txDmaChannel */&lt;BR /&gt;(uint8)0, /* rxDmaChannel */&lt;BR /&gt;#if (LPSPI_IP_ENABLE_DMAFASTTRANSFER_SUPPORT == STD_ON)&lt;BR /&gt;(uint8)4U, /* u8NumOfDmaFastTransfer */&lt;BR /&gt;Lpspi_Ip_CmdDmaFast_SpiPhyUnit_0,&lt;BR /&gt;U, /* Number of TCD Scatter Gather for Tx */&lt;BR /&gt;U, /* Number of TCD Scatter Gather for Rx */&lt;BR /&gt;Lpspi_Ip_ListTxDmaFastSGId_SpiPhyUnit_0,&lt;BR /&gt;Lpspi_Ip_ListRxDmaFastSGId_SpiPhyUnit_0,&lt;BR /&gt;#endif&lt;BR /&gt;#endif&lt;BR /&gt;LPSPI_IP_POLLING, /* Transfer mode */&lt;BR /&gt;(uint8)0U /* State structure element from the array */&lt;BR /&gt;#if (LPSPI_IP_DMA_USED == STD_ON)&lt;BR /&gt;,(boolean)FALSE /* If channels in HWunit are the same framesize. */&lt;BR /&gt;,(uint8)0U&lt;BR /&gt;#endif&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As you can see,&amp;nbsp;LPSPI_CFGR1_SAMPLE(0U)? Is this the parameter you are referring to by&amp;nbsp;SAMPLE = 0?If it some other parameter, can you give me a full name (consistent with the one specified in Table 44)?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 18:42:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1750473#M28328</guid>
      <dc:creator>ManishKK</dc:creator>
      <dc:date>2023-11-01T18:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1751134#M28370</link>
      <description>&lt;P&gt;Yes, this is the parameter.&lt;/P&gt;
&lt;P&gt;Can you share the waveforms canptured by an analog oscilloscope?&lt;/P&gt;
&lt;P&gt;What status does the Lpspi_Ip_SyncTransmit() function return?&lt;/P&gt;
&lt;P&gt;I see you call the function before the scheduler is started, so we can exclude any FreeRTOS issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 12:29:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1751134#M28370</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-02T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754491#M28496</link>
      <description>&lt;P&gt;With MR-CANHUB NxP S32K344 board, I captured the screenshot of CLK and CS at 8 Mhz with an IMU board as the slave.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CLK is unable to stay high.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 23:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754491#M28496</guid>
      <dc:creator>ManishKK</dc:creator>
      <dc:date>2023-11-08T23:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754494#M28497</link>
      <description>&lt;P&gt;Similarly, see screenshots of CS, CLK at 8 Mhz v/s 1 Mhz.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 23:53:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754494#M28497</guid>
      <dc:creator>ManishKK</dc:creator>
      <dc:date>2023-11-08T23:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754496#M28498</link>
      <description>&lt;P&gt;Another one at 4Mhz.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 23:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1754496#M28498</guid>
      <dc:creator>ManishKK</dc:creator>
      <dc:date>2023-11-08T23:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI - Tx/Rx bytes different at different Baud Rates</title>
      <link>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1755522#M28548</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224938"&gt;@ManishKK&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;As I mentioned in my first reply, the LPSPI specification in the DS was taken using GPIO-STANDARD_PLUS pins (MSCR_DSE = 1).&lt;/P&gt;
&lt;P&gt;Because these pins have much better slew rate at a given capacitive load. Please refer to the DS, Table 26. GPIO Output AC Specification.&lt;/P&gt;
&lt;P&gt;You use GPIO-STANDARD pin that can't drive the bus at this baudrate and the load (based on the waveforms you provided).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Nov 2023 09:25:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/LPSPI-Tx-Rx-bytes-different-at-different-Baud-Rates/m-p/1755522#M28548</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-11-10T09:25:00Z</dc:date>
    </item>
  </channel>
</rss>

