<?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)のトピックRe: SPI Setup Menu</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291017#M6142</link>
    <description>&lt;P&gt;Are you using the RDVCU5775EVM board? For the board, the SPI_2 PCS connection to MSDI and LSD is as the following screenshot shows.&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="nxf47394_0-1623379056736.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146869i425BBEE3AB9FB245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_0-1623379056736.png" alt="nxf47394_0-1623379056736.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas I found your configuration of PCS both are 0, which is not reasonable. here is my configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf47394_1-1623379056811.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146870iF307835007B608CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_1-1623379056811.png" alt="nxf47394_1-1623379056811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MSDI and LSD both need complex drivers on top of SPI drivers. For RDVCU5775EVM, we have no MBDT demo but built an SDK-based demo.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/designs/mpc5775b-bms-and-vcu-reference-design:RDVCU5775EVM" target="_blank"&gt;https://www.nxp.com/design/designs/mpc5775b-bms-and-vcu-reference-design:RDVCU5775EVM&lt;/A&gt;&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="nxf47394_2-1623379056854.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146871i6F7FF3DE6283C96C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_2-1623379056854.jpeg" alt="nxf47394_2-1623379056854.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jun 2021 02:37:45 GMT</pubDate>
    <dc:creator>Dong_Luo</dc:creator>
    <dc:date>2021-06-11T02:37:45Z</dc:date>
    <item>
      <title>SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282387#M6090</link>
      <description>&lt;P&gt;What can we do to change these settings while running a program on the processor from the SPI setting menu shown in the picture?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ekran Alıntısı.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145548i60937354514B513D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı.PNG" alt="Ekran Alıntısı.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 08:10:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282387#M6090</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-05-26T08:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282504#M6091</link>
      <description>&lt;P&gt;Which environment is the screenshot taken from?&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 10:36:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282504#M6091</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2021-05-26T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282536#M6092</link>
      <description>&lt;P&gt;Matlab/Simulink&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:19:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282536#M6092</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-05-26T11:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282847#M6096</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187165"&gt;@peaces&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;MBDT generates code on top of the S32SDK and, as far as I know, they don't provide such a function to change the settings during runtime. However, the settings (CPHA and CPOL) are stored in the LPSPI_TCR register, so you can try modifying the register just before using the SPI transmit block. Basically, you have to read the register, change the CPHA and CPOL bits and then update the register with the new value. You can use the S32K memory blocks.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 19:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1282847#M6096</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-05-26T19:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1283124#M6107</link>
      <description>&lt;P&gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 06:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1283124#M6107</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-06-04T06:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1287291#M6119</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As shown in the picture, there is a System Update block in two different subsystem blocks, and although we trigger these subsystem blocks to work sequentially, the settings cannot be updated and remain at the last configured setting.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ekran Alıntısı2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145628iCB940AF6CE9A0F04/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı2.PNG" alt="Ekran Alıntısı2.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="Ekran Alıntısı1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145629i6BDF69E9D000BDBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı1.PNG" alt="Ekran Alıntısı1.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="Ekran Alıntısı.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/145630iA58D52F31315E87C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ekran Alıntısı.PNG" alt="Ekran Alıntısı.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
      <pubDate>Fri, 04 Jun 2021 06:28:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1287291#M6119</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-06-04T06:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1289164#M6128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;peaces,&lt;/P&gt;
&lt;P&gt;As&amp;nbsp;Marius said, the SPI drivers don't support changing the&amp;nbsp;Clock and Transfer Attributes after initialization for the same SPI instance.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the same SPI master to communicate with the slave devices with the different SPI configuration sequence, user needs to call DSPI_Deinit() and then call&amp;nbsp;DSPI_MasterInit() to configure the new attributes (CPOL, CPHA) before transferring the other device. This operation may be a bit inefficient, if caring about the performance, it must directly change the registers.&lt;/P&gt;
&lt;P&gt;For the device with the same transfer attributes and different SPI PCS, the SPI drivers provide the function of DSPI_UpdateCS. User just calls it before transmitting.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Dong&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 13:29:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1289164#M6128</guid>
      <dc:creator>Dong_Luo</dc:creator>
      <dc:date>2021-06-08T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1289668#M6130</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60775"&gt;@Dong_Luo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello there,&lt;BR /&gt;We wrote the codes in the attached text document into the System Update block and we did not get any results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 06:48:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1289668#M6130</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-06-09T06:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1290748#M6139</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187165"&gt;@peaces&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;What's the context of the System Update block?&lt;/P&gt;
&lt;P&gt;If the code in the System Update block executes sequentially, it should add the function of DSPI_Deinit(2) between the two functions of DSPI_MasterInit.&lt;/P&gt;
&lt;P&gt;it is recommended to set two different varables for the second parameter in DSPI_MasterInit, like DSPI_MasterInit(2, &amp;amp;spiMasterState_LSD, &amp;amp;spiConfig_LSD) and DSPI_MasterInit(2, &amp;amp;spiMasterState_MSD, &amp;amp;spiConfig_MSD);&lt;/P&gt;
&lt;P&gt;Additionally, per the schematic of RDVCU5775EVM, the value of whichPCS in spiConfig_LSD shall be 3, and the value of whichPCS in spiConfig_MSD shall be 1.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf47394_0-1623330096693.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146828iE70BF6CBD2CB7731/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_0-1623330096693.png" alt="nxf47394_0-1623330096693.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;</description>
      <pubDate>Thu, 10 Jun 2021 13:02:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1290748#M6139</guid>
      <dc:creator>Dong_Luo</dc:creator>
      <dc:date>2021-06-10T13:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1290757#M6140</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60775"&gt;@Dong_Luo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The contents of the system update block are shown in the images called system update.&lt;/P&gt;&lt;P&gt;We made our PCS settings according to the datasheet.&lt;/P&gt;&lt;P&gt;Also, can you share an example with us so that we can get faster results?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 13:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1290757#M6140</guid>
      <dc:creator>peaces</dc:creator>
      <dc:date>2021-06-10T13:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291017#M6142</link>
      <description>&lt;P&gt;Are you using the RDVCU5775EVM board? For the board, the SPI_2 PCS connection to MSDI and LSD is as the following screenshot shows.&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="nxf47394_0-1623379056736.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146869i425BBEE3AB9FB245/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_0-1623379056736.png" alt="nxf47394_0-1623379056736.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whereas I found your configuration of PCS both are 0, which is not reasonable. here is my configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nxf47394_1-1623379056811.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146870iF307835007B608CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_1-1623379056811.png" alt="nxf47394_1-1623379056811.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The MSDI and LSD both need complex drivers on top of SPI drivers. For RDVCU5775EVM, we have no MBDT demo but built an SDK-based demo.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/designs/mpc5775b-bms-and-vcu-reference-design:RDVCU5775EVM" target="_blank"&gt;https://www.nxp.com/design/designs/mpc5775b-bms-and-vcu-reference-design:RDVCU5775EVM&lt;/A&gt;&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="nxf47394_2-1623379056854.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146871i6F7FF3DE6283C96C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nxf47394_2-1623379056854.jpeg" alt="nxf47394_2-1623379056854.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 02:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291017#M6142</guid>
      <dc:creator>Dong_Luo</dc:creator>
      <dc:date>2021-06-11T02:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291322#M6146</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/60775"&gt;@Dong_Luo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I am using the RDVCU5775EVM board. The settings made are as in the image, but still,&amp;nbsp;the problem is not solved.&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="system_ubdate.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146923iA2FE75700FDF395A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="system_ubdate.PNG" alt="system_ubdate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 10:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291322#M6146</guid>
      <dc:creator>Baris</dc:creator>
      <dc:date>2021-06-11T10:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Setup Menu</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291324#M6147</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/187165"&gt;@peaces&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I assume that you are using the&amp;nbsp;&lt;SPAN&gt;RDVCU5775EVM&amp;nbsp;because you are not mentioning anywhere the board used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For that, I've created the following model which is using custom code to change the mentioned parameters. In this case, you don't need to init and reinint the DSPI instance, just to update the parameters directly in the registers as in the below image. You can adjust the code as the sensors you are using requires.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1623407939664.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/146922iC59335F0AD925A0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1623407939664.png" alt="mariuslucianand_0-1623407939664.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, if you are using the blocking sending, the interrupt priorities must be increased, as I've done in the model using custom code as well.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 10:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Setup-Menu/m-p/1291324#M6147</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-06-11T10:47:15Z</dc:date>
    </item>
  </channel>
</rss>

