<?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>LPC Microcontrollers中的主题 Re: LPC546xx SPI Always Stalled</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891957#M35769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jeremyzhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that mean a 1 needs to be written to the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ENDTRANSFER by design and it's just not clear in the Reference Manual?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2019 14:30:11 GMT</pubDate>
    <dc:creator>guitardenver</dc:creator>
    <dc:date>2019-05-06T14:30:11Z</dc:date>
    <item>
      <title>LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891952#M35764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the SDK for the SPI0 with Flexcomm0 for the LPC54605 MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the SPI_MasterTransferBlocking function. It works fine, but the SPI0-&amp;gt;STAT stalled bit is always set and the MSTIDLE flag is never set to one again. Also the SSA flag is stuck to one as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to poll for the transfer to be complete, not poll for the FIFO to be empty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SPI Init routine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80959i334E9408F3C8CDE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you start a transfer the STAT register looks like this:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80960i4AE23F1D3977BFFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can keep sending data just fine, but the STALLED bit stays set even when using the&amp;nbsp;&lt;SPAN&gt;SPI_MasterTransferBlocking.And MSTIDLE never is set again.&lt;BR /&gt;&lt;BR /&gt;I don't need to receive anything, I even set the RXIGNORE flag in FIFOWR. But that did nothing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 17:34:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891952#M35764</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2019-04-25T17:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891953#M35765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="232929" data-username="guitardenver" href="https://community.nxp.com/people/guitardenver"&gt;Matt Lang,&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;Whether you can tell me which exactly demo you run for testing, in further, had you done some modification about the demo?&lt;BR /&gt;As I'd like to replicate the phenomenon on my site for checking.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 02:29:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891953#M35765</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-04-26T02:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891954#M35766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see this with the&amp;nbsp;lpcxpresso54608_driver_examples_spi_polling_b2b_transfer_master demo project with no edits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After it calls SPI_MasterTransferBlocking(EXAMPLE_SPI_MASTER, &amp;amp;xfer), it is stalled and the MSTIDLE bit is never set even if you continue to step through the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did this on MCUXpresso IDE this time running on the LPCXpresso654xx dev board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54009iC0E1B6BFD01A6717/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my other code, my solution was to write a 1 to the ENDTRANSFER bit in the STAT register when the last byte is send is complete. This will terminate the transfer once the current one is over and will get out of stalled and set the MSTIDLE bit. But the datasheet does not mention that this needs to be done, so i'm assuming I should not have to do this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 14:43:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891954#M35766</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2019-04-26T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891955#M35767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H3 data-reactid=".lpf2lnpkow.1.0"&gt;Jeremyzhou,&lt;/H3&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if you had a chance to replicate what I am seeing and if you had any thoughts on it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 May 2019 14:36:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891955#M35767</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2019-05-02T14:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891956#M35768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="232929" data-username="guitardenver" href="https://community.nxp.com/people/guitardenver"&gt;Matt Lang&lt;/A&gt;&lt;/SPAN&gt;，&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I've already replicated the phenomenon, I think it should add some notes in the RM to clarify or describe this phenomenon, I'll report it to RM team to further checking.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64406iE2B0CD5E7961A4DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 May 2019 02:15:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891956#M35768</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-05T02:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891957#M35769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;jeremyzhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that mean a 1 needs to be written to the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ENDTRANSFER by design and it's just not clear in the Reference Manual?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 14:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891957#M35769</guid>
      <dc:creator>guitardenver</dc:creator>
      <dc:date>2019-05-06T14:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx SPI Always Stalled</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891958#M35770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="232929" data-objecttype="3" href="https://community.nxp.com/people/guitardenver"&gt;Matt Lang&lt;/A&gt;&lt;/SPAN&gt;，&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;Q1) Does that mean a 1 needs to be written to the ENDTRANSFER by design and it's just not clear in the Reference Manual?&lt;BR /&gt;-- Yes.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 01:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-SPI-Always-Stalled/m-p/891958#M35770</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2019-05-07T01:12:50Z</dc:date>
    </item>
  </channel>
</rss>

