<?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のトピックSPI on MPC5744P Sending Problem</title>
    <link>https://community.nxp.com/t5/S32-SDK/SPI-on-MPC5744P-Sending-Problem/m-p/818769#M603</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone！&lt;/P&gt;&lt;P&gt;I use MPC5744P connecting allegro A4962 through SPI. And I use S32 DS 0.90 SDK. According to the example of mpc5746g,I use the functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DSPI_MasterInit(INST_DSPI1, &amp;amp;dspi1State, &amp;amp;dspi1_MasterInitConfig0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; DSPI_MasterSetDelay(INST_DSPI1, 1, 1, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;SPAN&gt;Initlize the spi module and use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; DSPI_MasterTransferBlocking(INST_DSPI2,master_send, master_receive,&lt;BR /&gt; NUMBER_OF_FRAMES, TIMEOUT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to transfer data. The data is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define BUFFER_SIZE 1U&lt;BR /&gt;#define TIMEOUT 10000U&lt;BR /&gt;#define NUMBER_OF_FRAMES 2U&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; uint16_t master_send[BUFFER_SIZE] = {0x82D6};&lt;BR /&gt; uint16_t master_receive[BUFFER_SIZE];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can use oscilloscope to capture the&amp;nbsp;waveform of sending，and it's the same as I set. But how I check the slave，the allegro A4962，receving right or not？I didn't find the function in dspi module in SDK0.9.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suppose the sending data being&amp;nbsp;correct and the slave A4962 can be receving correctly.But when I connected the motor to the connector，the motor just shaked 1-2 seconds then stopped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the configuration of dspi module. There is no slave configuration，MPC5744P is just set as master.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2018-06-26_093257.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62457iF9BE626E87B90784/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-06-26_093257.png" alt="2018-06-26_093257.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So is there someone know where the wrong is？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot！&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jun 2018 01:30:39 GMT</pubDate>
    <dc:creator>nimenhao</dc:creator>
    <dc:date>2018-06-26T01:30:39Z</dc:date>
    <item>
      <title>SPI on MPC5744P Sending Problem</title>
      <link>https://community.nxp.com/t5/S32-SDK/SPI-on-MPC5744P-Sending-Problem/m-p/818769#M603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone！&lt;/P&gt;&lt;P&gt;I use MPC5744P connecting allegro A4962 through SPI. And I use S32 DS 0.90 SDK. According to the example of mpc5746g,I use the functions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DSPI_MasterInit(INST_DSPI1, &amp;amp;dspi1State, &amp;amp;dspi1_MasterInitConfig0);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; DSPI_MasterSetDelay(INST_DSPI1, 1, 1, 1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&amp;nbsp;&lt;SPAN&gt;Initlize the spi module and use&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; DSPI_MasterTransferBlocking(INST_DSPI2,master_send, master_receive,&lt;BR /&gt; NUMBER_OF_FRAMES, TIMEOUT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;to transfer data. The data is&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define BUFFER_SIZE 1U&lt;BR /&gt;#define TIMEOUT 10000U&lt;BR /&gt;#define NUMBER_OF_FRAMES 2U&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; uint16_t master_send[BUFFER_SIZE] = {0x82D6};&lt;BR /&gt; uint16_t master_receive[BUFFER_SIZE];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can use oscilloscope to capture the&amp;nbsp;waveform of sending，and it's the same as I set. But how I check the slave，the allegro A4962，receving right or not？I didn't find the function in dspi module in SDK0.9.0.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I suppose the sending data being&amp;nbsp;correct and the slave A4962 can be receving correctly.But when I connected the motor to the connector，the motor just shaked 1-2 seconds then stopped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the configuration of dspi module. There is no slave configuration，MPC5744P is just set as master.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2018-06-26_093257.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62457iF9BE626E87B90784/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-06-26_093257.png" alt="2018-06-26_093257.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So is there someone know where the wrong is？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks a lot！&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2018 01:30:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-SDK/SPI-on-MPC5744P-Sending-Problem/m-p/818769#M603</guid>
      <dc:creator>nimenhao</dc:creator>
      <dc:date>2018-06-26T01:30:39Z</dc:date>
    </item>
  </channel>
</rss>

