<?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: SPI setup question in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1536202#M22151</link>
    <description>Dear Petr,&lt;BR /&gt;&lt;BR /&gt;I solved the problem.&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Oct 2022 10:08:36 GMT</pubDate>
    <dc:creator>kimdukyu</dc:creator>
    <dc:date>2022-10-12T10:08:36Z</dc:date>
    <item>
      <title>SPI setup question</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1533316#M22133</link>
      <description>&lt;P&gt;I have a question regarding the NXP MCU (MPC5746C).&lt;/P&gt;&lt;P&gt;My current development environment is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1. AP : SA6155P(Qualcomm)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2. MCU : MPC5746C_176 176-pins LQFP176&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It communicates between AP and MCU through SPI interface.&amp;nbsp;Regarding SPI, clock and SPI pin settings were set based on the following.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_0-1665050842133.png" style="width: 714px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195926iEE68CFB27731E1DA/image-dimensions/714x231?v=v2" width="714" height="231" role="button" title="kimdukyu_0-1665050842133.png" alt="kimdukyu_0-1665050842133.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_0-1665050842133.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Set the two clocks BUS_CLK and BAUD_CLK required for SPI operation and set as the figure below in S32DS IDE as slave mode (Mode4 cpol=1, cpha=1).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_1-1665050893993.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195927i4D08C347F49B68DC/image-size/large?v=v2&amp;amp;px=999" role="button" title="kimdukyu_1-1665050893993.png" alt="kimdukyu_1-1665050893993.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_1-1665050893993.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In case of setting as above, S PI communication proceeds without any problem at 1MHz.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_2-1665050942438.png" style="width: 676px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195928iD8D05C6EAACA61FB/image-dimensions/676x370?v=v2" width="676" height="370" role="button" title="kimdukyu_2-1665050942438.png" alt="kimdukyu_2-1665050942438.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_2-1665050942438.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;- 1) Yellow : Clock&lt;BR /&gt;- 2) Blue: MISO&lt;BR /&gt;- 3) Red: MOSI&lt;BR /&gt;- 4) Green: CS&lt;/P&gt;&lt;P&gt;However, at 5MHz, the AP sends clock, CS, and data, but the MCU cannot receive data.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_3-1665050992876.png" style="width: 685px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195929iB97F955A8DF83983/image-dimensions/685x376?v=v2" width="685" height="376" role="button" title="kimdukyu_3-1665050992876.png" alt="kimdukyu_3-1665050992876.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_3-1665050992876.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Even though the clock and CS data lines are normal as in the scope waveform above, the MCU does not receive data in 5MHz communication. We want to communicate with the AP at 10MHz, but communication is not possible even at 5MHz.&amp;nbsp;So, we ask for technical support on whether the SPI setting is wrong and whether there is an additional setting required.&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, 06 Oct 2022 10:17:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1533316#M22133</guid>
      <dc:creator>kimdukyu</dc:creator>
      <dc:date>2022-10-06T10:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: SPI setup question</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1533840#M22140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;a setting looks right. Do you really call&amp;nbsp;&lt;SPAN&gt;DSPI_SlaveTransfer before AP starts to send a frame?&lt;BR /&gt;You can also try to increase interrupt priority for slave SPI module.&lt;BR /&gt;Or try to use DMA based transfer type for higher rates&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 10:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1533840#M22140</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-10-07T10:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: SPI setup question</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1535696#M22146</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have set DMA according to your answer. Still we can't communicate at 5MHz.&lt;/P&gt;&lt;P&gt;Below is my DMA and SPI settings and code content.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Set DMA Component&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_0-1665497086499.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/196419iF2E32D9B85A75B16/image-size/large?v=v2&amp;amp;px=999" role="button" title="kimdukyu_0-1665497086499.png" alt="kimdukyu_0-1665497086499.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_0-1665497086499.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2) Set SPI Component&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_1-1665497153417.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/196420i3A14ED9BAAA5EEAB/image-size/large?v=v2&amp;amp;px=999" role="button" title="kimdukyu_1-1665497153417.png" alt="kimdukyu_1-1665497153417.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_1-1665497153417.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3) Source code(Initialize components)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_2-1665497264071.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/196421iDCDC82DE40813A12/image-size/large?v=v2&amp;amp;px=999" role="button" title="kimdukyu_2-1665497264071.png" alt="kimdukyu_2-1665497264071.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_2-1665497264071.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kimdukyu_3-1665497309652.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/196422iAD9F2C33876828B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="kimdukyu_3-1665497309652.png" alt="kimdukyu_3-1665497309652.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kimdukyu_3-1665497309652.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please guide me if there are any wrong parts in the component settings and source code.&amp;nbsp;And how do I set the interrupt priority?&amp;nbsp;Please answer this issue.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 14:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1535696#M22146</guid>
      <dc:creator>kimdukyu</dc:creator>
      <dc:date>2022-10-11T14:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPI setup question</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1536202#M22151</link>
      <description>Dear Petr,&lt;BR /&gt;&lt;BR /&gt;I solved the problem.&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2022 10:08:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1536202#M22151</guid>
      <dc:creator>kimdukyu</dc:creator>
      <dc:date>2022-10-12T10:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: SPI setup question</title>
      <link>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1591234#M22761</link>
      <description>&lt;P&gt;how did you solved issue?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 10:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/SPI-setup-question/m-p/1591234#M22761</guid>
      <dc:creator>s32k146_ige</dc:creator>
      <dc:date>2023-02-01T10:57:00Z</dc:date>
    </item>
  </channel>
</rss>

