<?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: MQX 3.8.1 SPI does not work in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190482#M3651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to be using the SPI in MQX 3.8.1 for the K20 series.. How can I obtain the new SPI code with the above issues fixed?&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Dec 2012 04:49:19 GMT</pubDate>
    <dc:creator>Ali2006</dc:creator>
    <dc:date>2012-12-29T04:49:19Z</dc:date>
    <item>
      <title>MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190476#M3645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I installed MQX 3.8.1 on my computer.&amp;nbsp; I was surprised I had to overwrite 3.8.0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I compiled the libraries for the K60 using the Keil compiler&amp;nbsp;and then compiled my "Working" 3.8.0 application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First thing I discovered was that the application was no longer reading or writing to E2 memory through SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I debugged into the MQX codes and was surprised to see that the SPI code had completely changed.&lt;/P&gt;&lt;P&gt;The&amp;nbsp;FULL_DUPLEX option was now required to read from SPI.&amp;nbsp; I added the parameter to my fopen command and this still did not fix the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I complied the libraries to work with the K60 tower kit and then compiled the SPI example code.&amp;nbsp; This code did not work.&lt;/P&gt;&lt;P&gt;It printed the error messages that the data read back in did not match the data written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to move to MQX 3.8.1 because we are about to use the K20 processor that is only supported in 3.8.1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my questions:&lt;/P&gt;&lt;P&gt;Has MQX 3.8.1 been tested with the K60 and Keil?&lt;/P&gt;&lt;P&gt;Why weren't the changes to SPI mentioned in the changes document?&lt;/P&gt;&lt;P&gt;Is there a work around to get my code working now?&lt;/P&gt;&lt;P&gt;When is an update to 3.8.1 going to be available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Aug 2012 01:30:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190476#M3645</guid>
      <dc:creator>progcplus</dc:creator>
      <dc:date>2012-08-21T01:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190477#M3646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main reason the SPI driver was rewritten&amp;nbsp;was to improve performance. There are further changes on the way for upcomming MQX releases.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tested the driver on K60 and it worked fine, however later on was discovered that there is a possibility of RX FIFO overrun - this is already fixed in our development sources.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Concerning FULL_DUPLEX flag - it is definitelly not necessary to use this flag for reading from SPI, please double check the sources, the code after condition involving this flag is dealing with TX buffer during read operation, but it does not prevent data to be read from SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another possible source of issue you experienced might be slow peripheral - the SPI driver is now several times faster so there is a possibility that the peripheral is not ready if your code relies on fact that communication is slow enough to not check for completion of previous operation (when e.g. writing to serial flash).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are going to do further tests on K60 and let you now about results and possible solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2012 13:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190477#M3646</guid>
      <dc:creator>pavel_chromy</dc:creator>
      <dc:date>2012-08-30T13:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190478#M3647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try replacing corresponding files in mqx\source\io\spi and mqx\source\io\spi\polled with the attached ones and let me know whether it solved the issue. The attached files include fix for possible RX overrun at higher baud rates. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 15:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190478#M3647</guid>
      <dc:creator>pavel_chromy</dc:creator>
      <dc:date>2012-08-31T15:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190479#M3648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have replace the files that you supplied and recompiled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, it did not fix the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2012 21:41:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190479#M3648</guid>
      <dc:creator>progcplus</dc:creator>
      <dc:date>2012-08-31T21:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190480#M3649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just tested 3.8.1 with the sources replaced as I posted in Keil (4.53).&lt;/P&gt;&lt;P&gt;The SPI example supplied with 3.8.1 works for me without any problems, both debug and release target.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;tested the example&amp;nbsp;on TWR-K60N512 with TWR-MEM.&lt;/P&gt;&lt;P&gt;Could you, please, be more specific and describe your issue in detail?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 20:49:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190480#M3649</guid>
      <dc:creator>pavel_chromy</dc:creator>
      <dc:date>2012-09-04T20:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190481#M3650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured out that that acutal issue was with more than one time on the SPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new 3.8.1 code was not correctly clearing a flag when the chip select was cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freescale has fixed the issue for me and sent replacement code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 17:23:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190481#M3650</guid>
      <dc:creator>progcplus</dc:creator>
      <dc:date>2012-10-04T17:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: MQX 3.8.1 SPI does not work</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190482#M3651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going to be using the SPI in MQX 3.8.1 for the K20 series.. How can I obtain the new SPI code with the above issues fixed?&amp;nbsp;&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Dec 2012 04:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/MQX-3-8-1-SPI-does-not-work/m-p/190482#M3651</guid>
      <dc:creator>Ali2006</dc:creator>
      <dc:date>2012-12-29T04:49:19Z</dc:date>
    </item>
  </channel>
</rss>

