<?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>Model-Based Design Toolbox (MBDT)中的主题 SPI Interface on MPC5775B EVB to MC33996 (HSD) Not Working</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Interface-on-MPC5775B-EVB-to-MC33996-HSD-Not-Working/m-p/1192308#M5449</link>
    <description>&lt;P&gt;We purchased the&amp;nbsp;MPC5775B EVB and are sending commands to the MC33996 (HSD) chip through the SPI interface (DSPI2 and CS3) but get no reply from or response from the chip.&lt;/P&gt;&lt;P&gt;The model having the problem (see attached ZIP file, and screenshot below) is derived from the example "SPI Master MPC574xP" in the Simulink Library Browser.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_model.png" style="width: 676px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131551iB63EEE14570E3659/image-dimensions/676x411?v=v2" width="676" height="411" role="button" title="mpc5775c_LSD_model.png" alt="mpc5775c_LSD_model.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SPI Config settings are:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_SPI-Config.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131552i72A195F8221F773B/image-size/large?v=v2&amp;amp;px=999" role="button" title="mpc5775c_LSD_SPI-Config.png" alt="mpc5775c_LSD_SPI-Config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pins chosen match those in the S32DS SDK example project:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" style="width: 720px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131553i3FC9719A700B8836/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" alt="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SPI Polarity and Phase properties in the "General" tab were chosen based on the timing diagram:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXP_MC33996_LSD_SPI-timing.png" style="width: 650px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131554i08FA454DCCC3B5EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="NXP_MC33996_LSD_SPI-timing.png" alt="NXP_MC33996_LSD_SPI-timing.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In FreeMASTER we can see the counter incrementing for each step of the clock as messages are sent:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_FreeMASTER.png" style="width: 663px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131555iEEF76127CA7738AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="mpc5775c_LSD_FreeMASTER.png" alt="mpc5775c_LSD_FreeMASTER.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, chip never replies, echoing the command sent to it, as the C code in the S32DS example PDC_5775B_SDK suggests it should; values in SPI_recv never change from 0.&lt;/P&gt;&lt;P&gt;We are having similar trouble communicating with the HSD and MSDI chips.&lt;/P&gt;&lt;P&gt;What could we be missing?&amp;nbsp; Initialization?&amp;nbsp; Any suggestions for troubleshooting?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 11:24:40 GMT</pubDate>
    <dc:creator>rsating</dc:creator>
    <dc:date>2020-12-02T11:24:40Z</dc:date>
    <item>
      <title>SPI Interface on MPC5775B EVB to MC33996 (HSD) Not Working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Interface-on-MPC5775B-EVB-to-MC33996-HSD-Not-Working/m-p/1192308#M5449</link>
      <description>&lt;P&gt;We purchased the&amp;nbsp;MPC5775B EVB and are sending commands to the MC33996 (HSD) chip through the SPI interface (DSPI2 and CS3) but get no reply from or response from the chip.&lt;/P&gt;&lt;P&gt;The model having the problem (see attached ZIP file, and screenshot below) is derived from the example "SPI Master MPC574xP" in the Simulink Library Browser.&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_model.png" style="width: 676px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131551iB63EEE14570E3659/image-dimensions/676x411?v=v2" width="676" height="411" role="button" title="mpc5775c_LSD_model.png" alt="mpc5775c_LSD_model.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SPI Config settings are:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_SPI-Config.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131552i72A195F8221F773B/image-size/large?v=v2&amp;amp;px=999" role="button" title="mpc5775c_LSD_SPI-Config.png" alt="mpc5775c_LSD_SPI-Config.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The pins chosen match those in the S32DS SDK example project:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" style="width: 720px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131553i3FC9719A700B8836/image-size/large?v=v2&amp;amp;px=999" role="button" title="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" alt="PDC_5775B_SDK_routing_DSPI2-pin-selection.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The SPI Polarity and Phase properties in the "General" tab were chosen based on the timing diagram:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NXP_MC33996_LSD_SPI-timing.png" style="width: 650px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131554i08FA454DCCC3B5EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="NXP_MC33996_LSD_SPI-timing.png" alt="NXP_MC33996_LSD_SPI-timing.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In FreeMASTER we can see the counter incrementing for each step of the clock as messages are sent:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpc5775c_LSD_FreeMASTER.png" style="width: 663px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/131555iEEF76127CA7738AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="mpc5775c_LSD_FreeMASTER.png" alt="mpc5775c_LSD_FreeMASTER.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, chip never replies, echoing the command sent to it, as the C code in the S32DS example PDC_5775B_SDK suggests it should; values in SPI_recv never change from 0.&lt;/P&gt;&lt;P&gt;We are having similar trouble communicating with the HSD and MSDI chips.&lt;/P&gt;&lt;P&gt;What could we be missing?&amp;nbsp; Initialization?&amp;nbsp; Any suggestions for troubleshooting?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 11:24:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Interface-on-MPC5775B-EVB-to-MC33996-HSD-Not-Working/m-p/1192308#M5449</guid>
      <dc:creator>rsating</dc:creator>
      <dc:date>2020-12-02T11:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Interface on MPC5775B EVB to MC33996 (HSD) Not Working</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Interface-on-MPC5775B-EVB-to-MC33996-HSD-Not-Working/m-p/1200559#M5498</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/178673"&gt;@rsating&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I've seen this post too late and I was already posted an example here:&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Request-for-HSD-LSD-MSDI-Communication-Examples-for-MPC5775B-BMS/m-p/1195140#M5466" target="_blank"&gt;https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Request-for-HSD-LSD-MSDI-Communication-Examples-for-MPC5775B-BMS/m-p/1195140#M5466&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your approach is the same as mine but on your side, you have to check the Continous transfer checkbox from the SPI Configuration block.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1608140643812.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/132883i748130C84F792AF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1608140643812.png" alt="mariuslucianand_0-1608140643812.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;What this checkbox does is that it will keep the CS low until all those 3 bytes are sent, making the device to receive 1x24 bits and not 3x 8 bits.&lt;/P&gt;
&lt;P&gt;Hope the example attached to the previous thread helps you control the device.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 17:46:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Interface-on-MPC5775B-EVB-to-MC33996-HSD-Not-Working/m-p/1200559#M5498</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2020-12-16T17:46:18Z</dc:date>
    </item>
  </channel>
</rss>

