<?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>topic Re: LPC2114 revision /01 SPI1 SPIF failure in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680411#M27355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)&amp;nbsp;Most of the bits in PSR will be cleared by read&amp;nbsp;PSR&amp;nbsp;only or&amp;nbsp;both read PSR and&lt;/P&gt;&lt;P&gt;access to data register or write to control register. Can you make&amp;nbsp;minor change as&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below?&amp;nbsp;A simple read like you did will clear and erase all&amp;nbsp;the evidence, we need to figure out&lt;/P&gt;&lt;P&gt;a way to log the events in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Can you probe all the signals, CS, CLK, MOSI, and MISO and see if anything unusual when&lt;/P&gt;&lt;P&gt;failure occurs? This SPI IP is a very simple block and this MCU has been out for 10+ years. It's&lt;/P&gt;&lt;P&gt;hard to believe there are H/W issues inside this IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int psr_value, error_value[200], err_count;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; len; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;S1SPDR = *txbuf++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while (!((psr_value=S1SPSR) &amp;amp; SPI_SPIF));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( psr_value &amp;amp; 0x78 )&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* If any of error bit set, log it. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error_value[err_count++] = psr_value;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S1SPSR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*rxbuf++ = S1SPDR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2017 17:03:24 GMT</pubDate>
    <dc:creator>Dezheng_Tang</dc:creator>
    <dc:date>2017-07-31T17:03:24Z</dc:date>
    <item>
      <title>LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680407#M27351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have been making a product using the LPC2114 (64 pin TQFP) for 5 or 6 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently we built a new batch that now uses the /01 silicon revision.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are now getting problems with the SPI1 interface. The units will work correctly for several hours, using SPI1 to poll external devices, and then for no apparent reason the SPIF flag fails to get set at the end of a SPI transfer. This causes a watchdog reset, however the SPIF flag continues not to work unless the power is disconnected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone seen this before?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2017 10:45:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680407#M27351</guid>
      <dc:creator>aerobaticant</dc:creator>
      <dc:date>2017-07-24T10:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680408#M27352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something says this has branched to a new discussion (thread 456648) but I can't follow the link - I get "unauthorized".&lt;/P&gt;&lt;P&gt;Please help as we have unhappy customers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 11:45:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680408#M27352</guid>
      <dc:creator>aerobaticant</dc:creator>
      <dc:date>2017-07-27T11:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680409#M27353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ant,&lt;/P&gt;&lt;P&gt;The branch was indicated because I internally escalated your issue. Below you can find some replies:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please verify if the code is not modifying the SPI registers while it is running? It may cause the SPI-related errata described at the document of the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/docs/en/errata/ES_LPC2114_24_00.pdf"&gt;http://www.nxp.com/docs/en/errata/ES_LPC2114_24_00.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, please check the following:&lt;/P&gt;&lt;P&gt;(1) If you do a master write, you want to pay attention to WCOL bit, if read, check ROVR bit. Basically, if SPIF is not set. All error related bit 3~6 need to be checked first.&lt;/P&gt;&lt;P&gt;(2) If you use interrupts, on LPC214x, we still have the spurious interrupt issue. An application note about how to handle it that can be found at the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.nxp.com/docs/en/application-note/AN10414.pdf"&gt;http://www.nxp.com/docs/en/application-note/AN10414.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jul 2017 22:06:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680409#M27353</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-07-27T22:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680410#M27354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm we're not modifying the SPI registers while running. We are only using SPI in a polled mode:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE&gt;void spi_exchange_1(uint8_t *txbuf, uint8_t *rxbuf, uint32_t len)
{
&amp;nbsp;&amp;nbsp; &amp;nbsp;uint32_t i;

&amp;nbsp;&amp;nbsp; &amp;nbsp;for (i = 0; i &amp;lt; len; i++)
&amp;nbsp;&amp;nbsp; &amp;nbsp;{
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;S1SPDR = *txbuf++;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while (!(S1SPSR &amp;amp; SPI_SPIF));
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;S1SPSR;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*rxbuf++ = S1SPDR;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}
}&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have already tried adding an extra read of the S1SPSR status register followed by a read of the S1SPDR to check for and clear ABRT, MODF, ROVR and WCOL before writing to S1SPDR to initiate a transfer. It is once the transfer is initiated that SPIF fails to be set some times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only interrupts we are using are for UARTs. At the time of failure, no UART communications are occurring.&lt;/P&gt;&lt;P&gt;In the errata the spurious interrupt issue appears to manifest itself as a reset. This is not what we are seeing. It is only the SPIF flag in SPI1 that is failing to set causing the loop to never end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I stated, the SPI0 port appears to work perfectly, we're only having this issue with SPI1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The exact same code running on an older silicon revision also does not exhibit the problem - this has been shipping for over 5 years without issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680410#M27354</guid>
      <dc:creator>aerobaticant</dc:creator>
      <dc:date>2017-07-28T09:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680411#M27355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe try two things:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)&amp;nbsp;Most of the bits in PSR will be cleared by read&amp;nbsp;PSR&amp;nbsp;only or&amp;nbsp;both read PSR and&lt;/P&gt;&lt;P&gt;access to data register or write to control register. Can you make&amp;nbsp;minor change as&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;below?&amp;nbsp;A simple read like you did will clear and erase all&amp;nbsp;the evidence, we need to figure out&lt;/P&gt;&lt;P&gt;a way to log the events in between.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) Can you probe all the signals, CS, CLK, MOSI, and MISO and see if anything unusual when&lt;/P&gt;&lt;P&gt;failure occurs? This SPI IP is a very simple block and this MCU has been out for 10+ years. It's&lt;/P&gt;&lt;P&gt;hard to believe there are H/W issues inside this IP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int psr_value, error_value[200], err_count;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for (i = 0; i &amp;lt; len; i++)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;S1SPDR = *txbuf++;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while (!((psr_value=S1SPSR) &amp;amp; SPI_SPIF));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if ( psr_value &amp;amp; 0x78 )&amp;nbsp; {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* If any of error bit set, log it. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; error_value[err_count++] = psr_value;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S1SPSR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;*rxbuf++ = S1SPDR;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 17:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680411#M27355</guid>
      <dc:creator>Dezheng_Tang</dc:creator>
      <dc:date>2017-07-31T17:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680412#M27356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correction:&lt;/P&gt;&lt;P&gt;In page 212,&lt;/P&gt;&lt;P&gt;"Note: A read or write of the SPI data register is required in order to clear the SPIF status bit. Therefore, if the optional read of the SPI data register does not take place, a write to this register is required in order to clear the SPIF status bit."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since your code does a dummy read already, no need to do read PSR again after logging the error.&lt;/P&gt;&lt;P&gt;Can you read out and post both SPI0 and SPI1 register value, in addition to that, your PINSELx and PCONP register value once you have further questions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 17:55:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680412#M27356</guid>
      <dc:creator>Dezheng_Tang</dc:creator>
      <dc:date>2017-07-31T17:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680413#M27357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, referring to my original post, reading the S1SPSR value won't help since when the fault occurs the code will hang in the while loop and the results will not be not accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probing the SPI signals hasn't helped since the interface works fine for several hours, doing may thousands of successful writes and reads, and then mysteriously the SPIF flag fails to be set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have had products working perfectly with &lt;EM&gt;exactly&lt;/EM&gt; the same software for over 6 years.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This problem has &lt;EM&gt;definitely&lt;/EM&gt; been introduced with the revision /01 silicon.&lt;/P&gt;&lt;P&gt;In the /01 version an SSP interface was added, sharing the SPI1 pins.&lt;/P&gt;&lt;P&gt;Also SPI 16-bit transfer widths were introduced so the silicon &lt;EM&gt;has been&lt;/EM&gt; changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To catch the error we have to leave units running overnight.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ALL&lt;/EM&gt; /01 based units we have tried have shown the problem. None of the earlier suffix-less based units show the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we have customers screaming at us, I have now had to implement a software bit-banged interface for SPI1.&lt;/P&gt;&lt;P&gt;This is not ideal as there is a significant performance overhead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: here are the read back values:&lt;/P&gt;&lt;P&gt;PCONP: &amp;nbsp;&amp;nbsp; 0x00001FBE&amp;nbsp;&amp;nbsp; (default reset value)&lt;/P&gt;&lt;P&gt;PINSEL0:&amp;nbsp;&amp;nbsp; 0x00055505&amp;nbsp;&amp;nbsp; (using UART0, SPI0 and UART1)&lt;/P&gt;&lt;P&gt;PINSEL1:&amp;nbsp;&amp;nbsp; 0x000006A8&amp;nbsp;&amp;nbsp; (using SPI1 and PWM5)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 08:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680413#M27357</guid>
      <dc:creator>aerobaticant</dc:creator>
      <dc:date>2017-08-01T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680414#M27358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ant,&lt;/P&gt;&lt;P&gt;Based on the additional details, it will be further investigated internally. We will post an update as soon as having news.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:42:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680414#M27358</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-08-01T17:42:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC2114 revision /01 SPI1 SPIF failure</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680415#M27359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ant,&lt;/P&gt;&lt;P&gt;An additional internal comment regarding this issue is the following:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Please try using biggest value of MAMTIM and see if it is improved. Also please try to add some delay after data write and before data read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S1SPDR = *txbuf++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(i++&amp;lt;4) {asm(nop)}; // wait for some time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (!(S1SPSR &amp;amp; SPI_SPIF))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S1SPSR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(i++&amp;lt;4) {asm(nop)}; // wait for some time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *rxbuf++ = S1SPDR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please update us the result. If still has issue, please let us know the chip maskset including the chip picture.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope this will be useful for you.&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;&lt;P&gt;/Carlos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 15:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC2114-revision-01-SPI1-SPIF-failure/m-p/680415#M27359</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2017-08-21T15:53:11Z</dc:date>
    </item>
  </channel>
</rss>

