<?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: S32K146 SPI send problem in S32 SDK</title>
    <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009571#M1424</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;At higher baud rates, please use the GPIO-HD (high-drive pins).&lt;/P&gt;&lt;P&gt;It is configurable in PORTn_PCRn[DSE] register of the&amp;nbsp;GPIOs that support it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In S32K146_IO_Signal_Description_Input_Multiplication.xlsx, IO Signal Table, Column H.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102966i3DC22EBD61362B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PE Component inspector:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102901i9B57E5F85C92AA4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GPIO-HD pins have better current capabilities and can drive the SPI bus faster:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102941i7C94A417EEEEC708/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The signal depends on the electrical parameters of the SPI bus as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of increasing the SPI functional clock frequency, try using a higher CORE/SYS_CLK frequency, maybe the issue is related to the&amp;nbsp;CPU&amp;nbsp;overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Mar 2020 13:55:07 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2020-03-04T13:55:07Z</dc:date>
    <item>
      <title>S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009564#M1417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,SDK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;In SDK3.0, there are two ways to send SPI, one without blocking and the other with blocking.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;When I sent SPI data with a blocking function, the program died suddenly.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;The reason is that in this function "&lt;SPAN style="color: #ff0000;"&gt;osifError = OSIF_SemaWait(&amp;amp;(lpspistate-&amp;gt; lpspiSemaphore), timeout);&lt;/SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;, I want to for what reason is caused, how to solve this problem?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-4" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Thank you very much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1、LPSPI_DRV_MasterTransfer(uint32_t instance, const uint8_t * sendBuffer, uint8_t * receiveBuffer, uint16_t transferByteCount);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2、LPSPI_DRV_MasterTransferBlocking(uint32_t instance, const uint8_t * sendBuffer, uint8_t * receiveBuffer,uint16_t transferByteCount, uint32_t timeout);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 10:04:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009564#M1417</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-02-25T10:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009565#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to use a timeout (in ms) longer than what the transfer takes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the SDK documentation in the SDK installation folder:&lt;/P&gt;&lt;P&gt;.../NXP/S32DS_ARM_v2.2/S32DS/software/S32SDK_S32K1xx_RTM_3.0.0/doc/Start_here.html&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/98871i7378F3C9D9D6213A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 12:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009565#M1418</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-02-26T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009566#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Daniel.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I'm sorry, maybe I didn't express myself clearly.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;My SPI communication rate is 1M,SPI can not send two bytes need 100ms, resulting in the program stuck, I do not think it should be caused by the size value of "timeout".&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Is there another reason?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 02:17:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009566#M1419</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-02-28T02:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009567#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Hard to say.&lt;/P&gt;&lt;P&gt;Could you please attach a test project so that I can replicate the issue on my side?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009567#M1420</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-02T10:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009568#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Daniel Martnek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/*! @brief SPI_PAL instance */&lt;BR /&gt;spi_instance_t spi3_palInstance =&lt;BR /&gt;{&lt;BR /&gt; .instType = SPI_INST_TYPE_LPSPI,&lt;BR /&gt; .instIdx = 2U&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;/* SPI Master Configurations */&lt;BR /&gt;spi_master_t spi3_MasterConfig0 =&lt;BR /&gt;{&lt;BR /&gt; .baudRate = 1000000,&lt;BR /&gt; .ssPolarity = SPI_ACTIVE_HIGH,&lt;BR /&gt; .frameSize = 8,&lt;BR /&gt; .clockPhase = READ_ON_EVEN_EDGE,&lt;BR /&gt; .clockPolarity = SPI_ACTIVE_LOW,&lt;BR /&gt; .bitOrder = SPI_TRANSFER_MSB_FIRST,&lt;BR /&gt; .transferType = SPI_USING_INTERRUPTS,&lt;BR /&gt; .rxDMAChannel = 255U,&lt;BR /&gt; .txDMAChannel = 255U,&lt;BR /&gt; .callback = NULL,&lt;BR /&gt; .callbackParam = NULL,&lt;BR /&gt; .ssPin = 0,&lt;BR /&gt; .extension = NULL &lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PINS_DRV_SetMuxModeSel(PORTC, ePIN_14, PORT_MUX_ALT1);//LPSPI0_CS&lt;BR /&gt; PINS_DRV_SetMuxModeSel(PORTC, ePIN_1, PORT_MUX_ALT3); //LPSPI0_SOUT&lt;BR /&gt; PINS_DRV_SetMuxModeSel(PORTC, ePIN_15, PORT_MUX_ALT3); //LPSPI0_SCK&lt;BR /&gt; PINS_DRV_SetMuxModeSel(PORTC, ePIN_0, PORT_MUX_ALT3); //LPSPI0_SIN&lt;BR /&gt; //初始化SPI3&lt;BR /&gt; SPI_MasterInit(&amp;amp;spi3_palInstance, &amp;amp;spi3_MasterConfig0);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SPI_MasterTransfer(&amp;amp;spi3_palInstance, &amp;amp;data, &amp;amp;RxBuffer[eSPI2], 1);/*Frames are often lost when sending messages here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;SPI_MasterTransferBlocking(&amp;amp;spi3_palInstance, &amp;amp;data, &amp;amp;RxBuffer[eSPI2], 1, 1000);/*&lt;/SPAN&gt;There is a failure to send the data, and the program will jam.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL style="color: #2e3033; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;LI style="margin: 0px 0px 10px;"&gt;&lt;P class="" data-group="1-1" style="color: #666666; font-size: 14px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;The following picture shows the loss of frames of data sent over a period of 100ms.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102891i618D57AF2B832F97/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 00:54:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009568#M1421</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-03-03T00:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009569#M1422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I can't reproduce the issue from the code you sent, that would require a whole test project.&lt;/P&gt;&lt;P&gt;Anyway, please read the return status code of the functions.&lt;/P&gt;&lt;P&gt;After calling the non-blocking transfer function, you can&amp;nbsp;use the&amp;nbsp;LPSPI_DRV_MasterGetTransferStatus() function.&lt;/P&gt;&lt;P&gt;Don't initialize another transfer while there is one already in progress.&lt;/P&gt;&lt;P&gt;Also, you wrote that you cannot send 2 bytes, but you set the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transferByteCount of the functions to 1 byte.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 12:03:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009569#M1422</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-03T12:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009570#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Danile Martynek;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I think I have known the reason for the loss of my spi sending data. In the SDK routine, the baud rate used by spi is relatively low, such as 50K;&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;There was no problem in the test of this communication rate in my code, but when I continued to increase the communication baud rate of spi to more than 300K, spi began to lose frames of data, and the higher the baud rate, the more serious the frame loss.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I tried to increase the clock on the lpspi, but it didn't work.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Do you have any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103886i681D926E9CCC5C84/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 08:48:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009570#M1423</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-03-04T08:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009571#M1424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;At higher baud rates, please use the GPIO-HD (high-drive pins).&lt;/P&gt;&lt;P&gt;It is configurable in PORTn_PCRn[DSE] register of the&amp;nbsp;GPIOs that support it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In S32K146_IO_Signal_Description_Input_Multiplication.xlsx, IO Signal Table, Column H.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102966i3DC22EBD61362B92/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;PE Component inspector:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102901i9B57E5F85C92AA4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The GPIO-HD pins have better current capabilities and can drive the SPI bus faster:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102941i7C94A417EEEEC708/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The signal depends on the electrical parameters of the SPI bus as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of increasing the SPI functional clock frequency, try using a higher CORE/SYS_CLK frequency, maybe the issue is related to the&amp;nbsp;CPU&amp;nbsp;overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:55:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009571#M1424</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-04T13:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009572#M1425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , Danile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;In "IO Signal Table", S32K146 gpio-hd pins are relatively few, and I have already used all three lpspi. There seems to be no gpio-hd function in my three spi. I wonder if the ordinary GPIO of S32K146 can't support such a high spi communication rate (such as 1M)?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Generally speaking, microcontroller spi at 1M communication rate is not high, S32K146 such a powerful microcontroller should not have this problem, if I want to use so high spi communication baud rate must modify the hardware (spi pin specified gpio-hd)?&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;My MCU bus has been configured so high that I really can't figure out where my problem is. Can you help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/103003iFABC330D23DDF93B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 03:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009572#M1425</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-03-05T03:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009573#M1426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The GPIO-HD ports have better current capabilities and therefore the slew rate is better.&lt;/P&gt;&lt;P&gt;But the signal depends on the electrical parameters of the bus + on the probe you are using to measure the signal as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should be able to see the signal on the scope.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just mentioned it as a thing to consider.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please start with an SDK example&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56509i450E1A471A2FCE3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You should be able to increase the baud rate without any problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the description you posted, I'm not able to find the root cause of the issue.&lt;/P&gt;&lt;P&gt;I have already asked you to read the return status code of the functions and to use the&amp;nbsp;LPSPI_DRV_MasterGetTransferStatus() function in case of non-blocking transfers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please attach the whole project so that I can test it.&lt;/P&gt;&lt;P&gt;You can create a ticket if you don't what to share the project here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329745"&gt;How to submit a new question for NXP Support&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 15:09:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009573#M1426</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-05T15:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009574#M1427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A _jive_internal="true" data-content-finding="Community" data-userid="293568" data-username="danielmartynek" href="https://community.nxp.com/people/danielmartynek" style="color: #3d9ce7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Daniel Martynek&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi ,Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I'm sorry for not replying you in time.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Since my code was encrypted by the encryption system, it took me some time to work on it.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Now that I have added the code to the attachment, please help me to test what causes the loss of frames in spi sending data so seriously. In the code, I sent three spi in a 100ms cycle.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;&lt;EM style="color: #999999; background-color: #ffffff; font-weight: normal;"&gt;&lt;SPAN class=""&gt;&lt;A data-keyword="Thank" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;Thank&lt;/A&gt; &lt;A data-keyword="you" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;you&lt;/A&gt; &lt;A data-keyword="so" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;so&lt;/A&gt; &lt;A data-keyword="much" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;much&lt;/A&gt; &lt;A data-keyword="for" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;for&lt;/A&gt; &lt;A data-keyword="your" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;your&lt;/A&gt; &lt;A data-keyword="assistance" style="color: #2b77c5; font-weight: bold; text-decoration: none; font-size: 15px;"&gt;assistance！&lt;/A&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2020 13:56:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009574#M1427</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-03-07T13:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009575#M1428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/347996379@qq.com" rel="nofollow noopener noreferrer" target="_blank"&gt;347996379@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for the project.&lt;/P&gt;&lt;P&gt;Could you please disable the internal pullups on the SPI pins - what is the purpose of it?&lt;/P&gt;&lt;P&gt;Also, the TranferStatus() will not return STATUS_SUCCESS&amp;nbsp;if the previously triggered transfer is still in progress.&lt;/P&gt;&lt;P&gt;You can also read the bytesRemained1 value.&lt;/P&gt;&lt;P&gt;And you should not initialize another transfer until the&amp;nbsp;&lt;SPAN&gt;TranferStatus() returns&amp;nbsp;STATUS_SUCCESS.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;if(eSPI0 == spiNum)
{
  //LPSPI_DRV_MasterTransferBlocking(0, &amp;amp;data, &amp;amp;RxBuffer[eSPI0], 1, 1000);
  LPSPI_DRV_MasterTransfer(0, &amp;amp;data, &amp;amp;RxBuffer[eSPI0], 1);
  status = LPSPI_DRV_MasterGetTransferStatus(0, &amp;amp;bytesRemained1);
  if(status != STATUS_SUCCESS)
  {
    watchErr1++;
  }
}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:25:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009575#M1428</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2020-03-10T14:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: S32K146 SPI send problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009576#M1429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,Daniel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" data-group="0-0" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;The reason I enabled the inner pull was to increase his drive, but it didn't work.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-1" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;In my code, it can be deleted. In the picture, I only use one transmission mode, which is non-blocking mode. That is to say, I only use non-blocking mode for data transmission in the same channel, and do not use blocking mode for data transmission.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-2" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;In my code, whether a single channel or multiple channels are used at the same time, I have tried, and the phenomenon of frame loss will occur when the baud rate is relatively high.&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-3" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;I don't quite understand what you mean in "&lt;SPAN style="color: #ff6600;"&gt;And you should not initialize another transfer until the TranferStatus()&lt;/SPAN&gt; ".&lt;/SPAN&gt;&lt;SPAN class="" data-group="0-4" style="color: #333333; background-color: #f7f8fa; font-weight: normal; font-size: 14px;"&gt;Could it be that when multiple channels are in use, data cannot be transferred until another channel returns STATUS_SUCCESS?&lt;/SPAN&gt;Have you solved the problem of data frame loss in my code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #919599; background-color: #f7f8fa; font-weight: normal; font-size: 13px;"&gt;Looking forward to your reply!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 00:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/S32K146-SPI-send-problem/m-p/1009576#M1429</guid>
      <dc:creator>347996379</dc:creator>
      <dc:date>2020-03-11T00:26:54Z</dc:date>
    </item>
  </channel>
</rss>

