<?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 RT Crossover MCUsのトピックRe: ImxRT 1176 LPSPI blocking function issue</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086408#M34135</link>
    <description>&lt;P&gt;BTW&amp;nbsp;LPSPI1 and IMU_SPI_IF is same.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Apr 2025 08:17:38 GMT</pubDate>
    <dc:creator>chandan_uv</dc:creator>
    <dc:date>2025-04-24T08:17:38Z</dc:date>
    <item>
      <title>ImxRT 1176 LPSPI blocking function issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086405#M34134</link>
      <description>&lt;P&gt;Hello, I’m working with LPSPI and using LPSPI_MasterTransferBlocking. Since this is a blocking function, I expect the LPSPI peripheral to be free once the transfer is complete. However, I observed something different.&lt;/P&gt;&lt;P&gt;After the blocking transfer, I read the SR (Status Register) using LPSPI_GetStatusFlags, and the returned value was 0x1001101.&lt;/P&gt;&lt;P&gt;Do you have any suggestions? Ideally, after the blocking transfer, the LPSPI should be idle. I’m sharing a code snapshot below for reference.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    if((staus_flag &amp;amp; kLPSPI_ModuleBusyFlag) == kLPSPI_ModuleBusyFlag)
    {
        ret = STATUS_BUSY;
        PRINTF("SPI Busy, %x, %d\r\n", staus_flag, count);
    }
    else
    {
        masterXfer.txData   = SpiTxData;
        masterXfer.rxData   = SpiRxData;
        masterXfer.dataSize = spiTransferSize;
        masterXfer.configFlags =
        kLPSPI_MasterPcs0 | kLPSPI_MasterPcsContinuous;
        status = LPSPI_MasterTransferBlocking(LPSPI1, &amp;amp;masterXfer);
        ret = STATUS_SUCCESS;
        staus_flag = LPSPI_GetStatusFlags(IMU_SPI_IF);
        PRINTF("staus_flag: %x\r\n", staus_flag);
        count++;
        //sw_asm_delay_us(2U);
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 08:11:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086405#M34134</guid>
      <dc:creator>chandan_uv</dc:creator>
      <dc:date>2025-04-24T08:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: ImxRT 1176 LPSPI blocking function issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086408#M34135</link>
      <description>&lt;P&gt;BTW&amp;nbsp;LPSPI1 and IMU_SPI_IF is same.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Apr 2025 08:17:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086408#M34135</guid>
      <dc:creator>chandan_uv</dc:creator>
      <dc:date>2025-04-24T08:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: ImxRT 1176 LPSPI blocking function issue</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086982#M34146</link>
      <description>&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/215611"&gt;@chandan_uv&lt;/a&gt;&amp;nbsp;,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Thank you so much for your interest in our products and for using our community.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Question:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;After the blocking transfer, I read the SR (Status Register) using LPSPI_GetStatusFlags, and the returned value was 0x1001101.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Answer: I check your LPSPI SR register value is 0x1001101, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;that is 0b0001 0000 0000 0001 0&lt;FONT color="#FF0000"&gt;0&lt;/FONT&gt;&lt;FONT color="#000000"&gt;0&lt;/FONT&gt;1 0000 0001, the TCF (Transfer Complete Flag) is 0,which means&amp;nbsp;Transfer&amp;nbsp; Not complete.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;From IMXRT1170RM,&amp;nbsp; we can see the detail SR status TCF&amp;nbsp; description. In Master mode, indicates that all transfers have completed and that LPSPI has returned to Idle state and the transmit FIFO is empty.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mayliu1_0-1745547395328.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334841i2055E0F32EB008A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mayliu1_0-1745547395328.png" alt="mayliu1_0-1745547395328.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Question:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Do you have any suggestions? Ideally, after the blocking transfer, the LPSPI should be idle. I’m sharing a code snapshot below for reference.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;Answer:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;I suggest you can develop your project based on SDK demo.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="andale mono,times" size="3"&gt;&lt;SPAN&gt;Please Verify the frame format configuration:&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="andale mono,times" size="3"&gt;&lt;SPAN&gt; Make sure that the LPSPI settings (For example: Data Length, CPOL, CPHA) of the master device are &lt;/SPAN&gt;&lt;STRONG&gt;exactly same&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;to the slave device.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wish it helps you.&lt;BR /&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;
&lt;P&gt;Wish you a nice day!&lt;/P&gt;
&lt;P&gt;Best Regards&lt;BR /&gt;MayLiu&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 02:27:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/ImxRT-1176-LPSPI-blocking-function-issue/m-p/2086982#M34146</guid>
      <dc:creator>mayliu1</dc:creator>
      <dc:date>2025-04-25T02:27:21Z</dc:date>
    </item>
  </channel>
</rss>

