<?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>S32 SDKのトピックRe: LPSPI  and EDMA setting issue for the callback function</title>
    <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864181#M3755</link>
    <description>&lt;P&gt;Yes, that would be much more effective.&lt;/P&gt;
&lt;P&gt;If the TX FIFO is written before the LPSPI module shifts the last word, there will be no gap between the frames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2024 07:58:04 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-05-13T07:58:04Z</dc:date>
    <item>
      <title>LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1856256#M3731</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_0-1714296358072.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276320iE7BA73B660858078/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_0-1714296358072.png" alt="linton_0-1714296358072.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am setting the SPI with S32DS configure tool, when I select the Transfer type DMA, and the Callback function is the SPI sent complete or the EDMA sent complete callback??&amp;nbsp; if this is the SPI transfer complete callback, Where to set the EDMA transfer complete callback? anybody know are there any doc for reference? I am confuse, Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 09:33:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1856256#M3731</guid>
      <dc:creator>linton</dc:creator>
      <dc:date>2024-04-28T09:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1856730#M3734</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230950"&gt;@linton&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You did not specify the MCU and the SDK version.&lt;/P&gt;
&lt;P&gt;But this is a callback of the LPSPI driver.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation of the driver can be accessed from the IDE&lt;/P&gt;
&lt;P&gt;Right-click on the driver -&amp;gt; Documentation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1714392890631.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276455iB7ED3C8FF3BA19BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="danielmartynek_0-1714392890631.png" alt="danielmartynek_0-1714392890631.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 12:15:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1856730#M3734</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-04-29T12:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1857077#M3735</link>
      <description>&lt;P&gt;Thanks Daniel,&lt;/P&gt;&lt;P&gt;I check the relay doc you recommend, but still not clear.&lt;/P&gt;&lt;P&gt;the MCU I use is the S32K148_LQFP100, the SDK version is&amp;nbsp;s32sdk_s32k1xx_rtm_401&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 01:04:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1857077#M3735</guid>
      <dc:creator>linton</dc:creator>
      <dc:date>2024-04-30T01:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1857496#M3736</link>
      <description>&lt;P&gt;There is no other documentation for the drivers.&lt;/P&gt;
&lt;P&gt;What issues fo you have with the callback?&lt;/P&gt;
&lt;P&gt;The LPSPI driver should call the callback at the end of the transfer.&lt;/P&gt;
&lt;P&gt;There is this SPI event defined in callbacks.h&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1714474808729.png" style="width: 541px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276660iC3A065593CE21FE5/image-dimensions/541x144?v=v2" width="541" height="144" role="button" title="danielmartynek_0-1714474808729.png" alt="danielmartynek_0-1714474808729.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2024 11:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1857496#M3736</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-04-30T11:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1860997#M3745</link>
      <description>&lt;P&gt;Hi daniel,&lt;/P&gt;&lt;P&gt;I set the LPSPI_0 as below photo show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_0-1715138116821.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277600i0C4C1D5D29823AD9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_0-1715138116821.png" alt="linton_0-1715138116821.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I use the scope to test the SOUT waveform as below show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_1-1715138558010.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277601i9D6652885715563F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_1-1715138558010.png" alt="linton_1-1715138558010.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I send 20 bytes data, so I can calculate the baudrate is about 4.2M(what I set is 4.8M), and I check the clock is right. as below show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_2-1715138789486.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277603i245750F2053875A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_2-1715138789486.png" alt="linton_2-1715138789486.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what cause this problem? what I need is 4.8M , 4.75 to 4.85 is acceptable. but 4.2M is bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the second problem is I change the transfer type from DMA to interrupt. the configure as below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_3-1715139000238.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277604iE2BCF8A679CA51F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_3-1715139000238.png" alt="linton_3-1715139000238.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and I also use the scope to test the SOUT waveform as below show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_4-1715139066278.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277605i1062C4DD0C908C13/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_4-1715139066278.png" alt="linton_4-1715139066278.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;as you can see it separate my 20bytes data to five part, 4 bytes per part. What cause this problem?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_5-1715139340156.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/277606i18709845BAA94030/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_5-1715139340156.png" alt="linton_5-1715139340156.png" /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2024 03:36:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1860997#M3745</guid>
      <dc:creator>linton</dc:creator>
      <dc:date>2024-05-08T03:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1863150#M3746</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230950"&gt;@linton&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The baudrate is calculated by the RTD driver from the LPSPI clock.&lt;/P&gt;
&lt;P&gt;RM, 51.3.1.12 Clock Configuration Register (CCR).&lt;/P&gt;
&lt;P&gt;Can you try using a higher freq. LPSPI clock?&lt;/P&gt;
&lt;P&gt;It is expected to see some overhead when the interrupt mode is used, the LPSPI module has 4-word TX FIFO.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 07:00:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1863150#M3746</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-10T07:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1863906#M3749</link>
      <description>&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;now I use the higher freq(56MHZ) as below show:&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="linton_0-1715518549516.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278340i6BF2D4AF795E3E53/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_0-1715518549516.png" alt="linton_0-1715518549516.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="linton_2-1715518674233.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278342iA06314B390E3E95F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_2-1715518674233.png" alt="linton_2-1715518674233.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but the performance did not looks better than before, it still separate to five parts(4bytes per part):&lt;/P&gt;&lt;P&gt;the blue is using interrupt, the green is using DMA.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_4-1715519043643.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278343i595F09F228ABD172/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_4-1715519043643.png" alt="linton_4-1715519043643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;are there any solution to solve this issue when I use the interrupt mode??&lt;/P&gt;&lt;P&gt;my application is simple as below show:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_5-1715519332199.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278344iC0284416A0933B86/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_5-1715519332199.png" alt="linton_5-1715519332199.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="linton_6-1715519431994.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278345iBAA1225B2742F84A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_6-1715519431994.png" alt="linton_6-1715519431994.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="linton_7-1715519460606.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/278346i43EA4F2C49BD502E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="linton_7-1715519460606.png" alt="linton_7-1715519460606.png" /&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 May 2024 13:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1863906#M3749</guid>
      <dc:creator>linton</dc:creator>
      <dc:date>2024-05-12T13:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864061#M3750</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/230950"&gt;@linton&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;This is simply a limitation of the driver.&lt;/P&gt;
&lt;P&gt;In general, the SDK drivers are big and cause some CPU overhead.&lt;/P&gt;
&lt;P&gt;Enabling the cache could somewhat help but not much.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 05:45:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864061#M3750</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-13T05:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864071#M3751</link>
      <description>&lt;P&gt;so to avoid this issue, I should not use the SDK interface, directly control the TDR??&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 05:58:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864071#M3751</guid>
      <dc:creator>linton</dc:creator>
      <dc:date>2024-05-13T05:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: LPSPI  and EDMA setting issue for the callback function</title>
      <link>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864181#M3755</link>
      <description>&lt;P&gt;Yes, that would be much more effective.&lt;/P&gt;
&lt;P&gt;If the TX FIFO is written before the LPSPI module shifts the last word, there will be no gap between the frames.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 07:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/LPSPI-and-EDMA-setting-issue-for-the-callback-function/m-p/1864181#M3755</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-05-13T07:58:04Z</dc:date>
    </item>
  </channel>
</rss>

