<?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>i.MX ProcessorsのトピックRe: Bug or Problem in LPSPI_MasterSetBaudRate for 1060EVK-B</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492536#M192773</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202030"&gt;@functional_des&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You mean the following code always return 0, right?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1658326710466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187294i5AC60886A445657E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1658326710466.png" alt="kerryzhou_0-1658326710466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If yes, I think, you can use the SDK lpspi code to test it instead of your own configuration, then do the baudrate change and test it, whether still have this issues.&lt;/P&gt;
&lt;P&gt;SDK_2_11_1_EVKB-MIMXRT1060\boards\evkmimxrt1060\driver_examples\lpspi\polling_b2b_transfer\master&lt;/P&gt;
&lt;P&gt;If you can reproduce the issues with the SDK demo, just kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2022 14:20:06 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2022-07-20T14:20:06Z</dc:date>
    <item>
      <title>Bug or Problem in LPSPI_MasterSetBaudRate for 1060EVK-B</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492001#M192724</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;I was unable to change the Baud rate in LPSPI1 (the only one I tried) and I tracked it down to this logic in fsl_lpspi.c -&amp;gt;&amp;nbsp;LPSPI_MasterSetBaudRate()&lt;/P&gt;&lt;P&gt;((base-&amp;gt;CR &amp;amp; LPSPI_CR_MEN_MASK) != 0U)&lt;/P&gt;&lt;P&gt;For whatever reason this always evaluates as false, resulting in us sticking with the default 500K baud. Commenting out that check resolves the problem. The comment above says&amp;nbsp;&lt;/P&gt;&lt;P&gt;"the LPSPI module needs to be disabled first, if enabled, return 0" but I'm not sure how to work around this since it always returns out and never resolves.&lt;/P&gt;&lt;P&gt;Here is my config:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;const lpspi_master_config_t LPSPI1_config = {
  .baudRate = 1000000UL,
  .bitsPerFrame = 8UL,
  .cpol = kLPSPI_ClockPolarityActiveHigh,
  .cpha = kLPSPI_ClockPhaseFirstEdge,
  .direction = kLPSPI_MsbFirst,
  .pcsToSckDelayInNanoSec = 1000UL,
  .lastSckToPcsDelayInNanoSec = 1000UL,
  .betweenTransferDelayInNanoSec = 1000UL,
  .whichPcs = kLPSPI_Pcs0,
  .pcsActiveHighOrLow = kLPSPI_PcsActiveHigh,
  .pinCfg = kLPSPI_SdiInSdoOut,
  .dataOutConfig = kLpspiDataOutRetained
};&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 20:53:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492001#M192724</guid>
      <dc:creator>functional_des</dc:creator>
      <dc:date>2022-07-19T20:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Problem in LPSPI_MasterSetBaudRate for 1060EVK-B</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492536#M192773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/202030"&gt;@functional_des&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You mean the following code always return 0, right?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1658326710466.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/187294i5AC60886A445657E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1658326710466.png" alt="kerryzhou_0-1658326710466.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If yes, I think, you can use the SDK lpspi code to test it instead of your own configuration, then do the baudrate change and test it, whether still have this issues.&lt;/P&gt;
&lt;P&gt;SDK_2_11_1_EVKB-MIMXRT1060\boards\evkmimxrt1060\driver_examples\lpspi\polling_b2b_transfer\master&lt;/P&gt;
&lt;P&gt;If you can reproduce the issues with the SDK demo, just kindly let me know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;kerry&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:20:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492536#M192773</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2022-07-20T14:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bug or Problem in LPSPI_MasterSetBaudRate for 1060EVK-B</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492546#M192775</link>
      <description>&lt;P&gt;Yes that line always returns 0 and returns out. I will check out the example and let you know what I see&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 14:37:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bug-or-Problem-in-LPSPI-MasterSetBaudRate-for-1060EVK-B/m-p/1492546#M192775</guid>
      <dc:creator>functional_des</dc:creator>
      <dc:date>2022-07-20T14:37:34Z</dc:date>
    </item>
  </channel>
</rss>

