<?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: DSPI  demo for MPC5748G in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1149661#M16528</link>
    <description>&lt;P&gt;Hi Petr&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have counter the same problem now, can you share the example of sending and receiving data&amp;nbsp;properly. thanks a lot&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 10:10:03 GMT</pubDate>
    <dc:creator>jettzhou</dc:creator>
    <dc:date>2020-09-07T10:10:03Z</dc:date>
    <item>
      <title>DSPI  demo for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1039322#M15570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Supporter&lt;/P&gt;&lt;P&gt;With MPC5748G dspi demo(DSPI_MASTER_MPC5748g),config DSPI0 with master node and SPI0 with slave node.&lt;/P&gt;&lt;P&gt;the init scrips is as belows:&lt;/P&gt;&lt;P&gt;EDMA_DRV_Init(&amp;amp;dmaController1_State,&amp;amp;dmaController1_InitConfig0,edmaChnStateArray,edmaChnConfigArray,EDMA_CONFIGURED_CHANNELS_COUNT);&lt;BR /&gt;&amp;nbsp; DSPI_MasterInit(DSPI0_INSTANCE, &amp;amp;dspi1State, &amp;amp;dspi1_MasterInitConfig0);&lt;BR /&gt;&amp;nbsp; /* SPI slave configuration: clock speed: 500 kHz, 8 bits/frame, MSB first */&lt;BR /&gt;&amp;nbsp; DSPI_SlaveInit(SPI0_INSTANCE, &amp;amp;dspi2State, &amp;amp;dspi2_SlaveInitConfig0);&lt;BR /&gt;&amp;nbsp; /* Configure delay between transfer, delay between SCK and PCS and delay between PCS and SCK */&lt;BR /&gt;&amp;nbsp; DSPI_MasterSetDelay(DSPI0_INSTANCE, 1, 1, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in while functon,the script is as belows:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DSPI_SlaveTransfer(SPI0_INSTANCE, slave_buffer.tx, slave_buffer.rx, NUMBER_OF_FRAMES);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; DSPI_MasterTransferBlocking(DSPI0_INSTANCE, master_buffer.tx, master_buffer.rx, NUMBER_OF_FRAMES, TIMEOUT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after building and when debuging the script,I see master can receive data from slave node correctly,but slave node can't receive data from master,the slave receive buffer is 0.&lt;/P&gt;&lt;P&gt;I have attached all the related configuration file,is there any thing wrong with the configuration?please help to check where is the problem,thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 09:50:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1039322#M15570</guid>
      <dc:creator>dsytj88</dc:creator>
      <dc:date>2020-07-29T09:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI  demo for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1039323#M15571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you modify the default project to add DMA mode for slave.&lt;/P&gt;&lt;P&gt;I tried to do the same, besides a config you have I changed DMA component to have&amp;nbsp;&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/108964iE3BC253A16C64DD9/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;P&gt;Then after generating PE code and build I tested it on DEVKIT board with below connection&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/109002i49E15F8E769D8599/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;&amp;nbsp;Both the slave and master receive data properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 12:43:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1039323#M15571</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-07-29T12:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: DSPI  demo for MPC5748G</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1149661#M16528</link>
      <description>&lt;P&gt;Hi Petr&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have counter the same problem now, can you share the example of sending and receiving data&amp;nbsp;properly. thanks a lot&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 10:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DSPI-demo-for-MPC5748G/m-p/1149661#M16528</guid>
      <dc:creator>jettzhou</dc:creator>
      <dc:date>2020-09-07T10:10:03Z</dc:date>
    </item>
  </channel>
</rss>

