<?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>MQX Software SolutionsのトピックRe: SPI example is not working</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609842#M16802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yadhukrishnan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you solve this issue with TWR-K65F180 ?&lt;/P&gt;&lt;P&gt;I noticed you opened another thread&amp;nbsp; for K60n512 &lt;A href="https://community.nxp.com/thread/435491"&gt;Unknown error in spi example&lt;/A&gt; , I answered your question in that thread.&lt;/P&gt;&lt;P&gt;K60n512 is a very old chip, are you sure you will use it in your products?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2016 14:24:21 GMT</pubDate>
    <dc:creator>danielchen</dc:creator>
    <dc:date>2016-09-27T14:24:21Z</dc:date>
    <item>
      <title>SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609836#M16796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;SPI example in the mqx folder is not working in my TWR-K65F180M. I think there is no EEPROM in my board that is why the example is not working.When I run the example it runs as below I don't know why is this happening. Anybody please help me...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-------------- SPI driver example -------------- &lt;BR /&gt; &lt;BR /&gt;This example application demonstrates usage of SPI driver. &lt;BR /&gt;It transfers data to/from external memory over SPI bus. &lt;BR /&gt;The default settings in memory.h apply to TWR-MEM flash memory. &lt;BR /&gt;Current baud rate ... 10000000 Hz &lt;BR /&gt;Changing the baud rate to 500000 Hz ... OK &lt;BR /&gt;Current baud rate ... 468750 Hz &lt;BR /&gt;Setting clock mode to SPI_CLK_POL_PHA_MODE0 ... OK &lt;BR /&gt;Getting clock mode ... SPI_CLK_POL_PHA_MODE0 &lt;BR /&gt;Setting endian to SPI_DEVICE_BIG_ENDIAN ... OK &lt;BR /&gt;Getting endian ... SPI_DEVICE_BIG_ENDIAN &lt;BR /&gt;Setting transfer mode to SPI_DEVICE_MASTER_MODE ... OK &lt;BR /&gt;Getting transfer mode ... SPI_DEVICE_MASTER_MODE &lt;BR /&gt;Clearing statistics ... OK &lt;BR /&gt;Getting statistics: &lt;BR /&gt;Rx packets: 0 &lt;BR /&gt;Tx packets: 0 &lt;BR /&gt; &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Write unprotect memory ... OK &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Write unprotect memory ... OK &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Erase whole memory chip: &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff &lt;BR /&gt;Read memory status ... 0xff&lt;/P&gt;&lt;P&gt;............................................&lt;/P&gt;&lt;P&gt;............................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Sep 2016 04:28:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609836#M16796</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2016-09-12T04:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609837#M16797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;In folder spi, C:\Freescale\Freescale_MQX_4_2\mqx\examples\spi&lt;/P&gt;&lt;P&gt;The application example creates one task for spi master, which is responsible for configuring the SPI protocol, erasing memory in memory board and reading data from and writing data to the memory board. The MCU is the master and the SPI serial flash memory is the slave in the SPI data transfer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each example is also included Readme file, which desribed the example.&lt;/P&gt;&lt;P&gt;According to the readme file, the MCU board and the memory board are connected via the 4-wire SPI connection. The SPI_CLK, SPI_DOUT, SPI_DIN,SPI_CS pins are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 08:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609837#M16797</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-13T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609838#M16798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielchen@fsl"&gt;danielchen@fsl&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;I understand what you said, but my spi example code show an error.Reading the byte is showing an error I couldn't find out the error.&lt;/P&gt;&lt;P&gt;please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-------------- SPI driver example -------------- &lt;BR /&gt; &lt;BR /&gt;This example application demonstrates usage of SPI driver. &lt;BR /&gt;It transfers data to/from external memory over SPI bus. &lt;BR /&gt;The default settings in memory.h apply to TWR-MEM flash memory. &lt;BR /&gt;Current baud rate ... 9600000 Hz &lt;BR /&gt;Changing the baud rate to 500000 Hz ... OK &lt;BR /&gt;Current baud rate ... 500000 Hz &lt;BR /&gt;Setting clock mode to SPI_CLK_POL_PHA_MODE0 ... OK &lt;BR /&gt;Getting clock mode ... SPI_CLK_POL_PHA_MODE0 &lt;BR /&gt;Setting endian to SPI_DEVICE_BIG_ENDIAN ... OK &lt;BR /&gt;Getting endian ... SPI_DEVICE_BIG_ENDIAN &lt;BR /&gt;Setting transfer mode to SPI_DEVICE_MASTER_MODE ... OK &lt;BR /&gt;Getting transfer mode ... SPI_DEVICE_MASTER_MODE &lt;BR /&gt;Clearing statistics ... OK &lt;BR /&gt;Getting statistics: &lt;BR /&gt;Rx packets: 0 &lt;BR /&gt;Tx packets: 0 &lt;BR /&gt; &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Write unprotect memory ... OK &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Write unprotect memory ... OK &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Erase whole memory chip: &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Erase chip ... OK &lt;BR /&gt; &lt;BR /&gt;Enable write latch in memory ... OK &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Write byte 0xba to location 0x000000f0 in memory ... done &lt;BR /&gt;Read memory status ... 0x00 &lt;BR /&gt;Read byte from location 0x000000f0 in memory ... 0x00 &lt;BR /&gt;Byte test ... ERROR &lt;BR /&gt;Getting statistics: &lt;BR /&gt;Rx packets: 8 &lt;BR /&gt;Tx packets: 25 &lt;BR /&gt; &lt;BR /&gt;IO_IOCTL_SPI_READ_WRITE ... OK &lt;BR /&gt;Simultaneous write and read - memory read from 0x000000f0 (10): &lt;BR /&gt;Write: 0x03 0x00 0x00 0xf0 0x00 0x00 0x00 0x00 0x00 0x00 &lt;BR /&gt;Read : 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 &lt;BR /&gt;Simultaneous read/write (data == 0x00) ... ERROR &lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;-------------- End of example -------------- &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 09:03:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609838#M16798</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2016-09-13T09:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609839#M16799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you need to check the jumper settings in your TWR-MEM board.&lt;/P&gt;&lt;P&gt;J4:&amp;nbsp; Serial Flash Configuration options 1-2&lt;/P&gt;&lt;P&gt;J14:&amp;nbsp; Serial Flash Chip-select&amp;nbsp; 1-2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see my console output. I tested with TWR-K65F180M and TWR-MEM board&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/5779iA93F6C35B1C91C68/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;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:18:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609839#M16799</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-14T07:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609840#M16800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the TWR-MEM User's Manual for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/files/32bit/doc/user_guide/TWRMEMUM.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://www.nxp.com/files/32bit/doc/user_guide/TWRMEMUM.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://www.nxp.com/files/32bit/doc/user_guide/TWRMEMUM.pdf?fasp=1&amp;amp;WT_TYPE=Users%20Guides&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FOR…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:52:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609840#M16800</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-14T07:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609841#M16801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielchen@fsl"&gt;danielchen@fsl&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Now I am working with my k60n512 cusom board. It has W25Q64FV spi flash.Here also I am getting the same read error. Could you please tell me what are the possible problems for this situations. Also If you could please tell me the solutions. I am asking you all these because I am new to embedded world.Excuse me for my silly questions. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Sep 2016 10:07:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609841#M16801</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2016-09-24T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609842#M16802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yadhukrishnan:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you solve this issue with TWR-K65F180 ?&lt;/P&gt;&lt;P&gt;I noticed you opened another thread&amp;nbsp; for K60n512 &lt;A href="https://community.nxp.com/thread/435491"&gt;Unknown error in spi example&lt;/A&gt; , I answered your question in that thread.&lt;/P&gt;&lt;P&gt;K60n512 is a very old chip, are you sure you will use it in your products?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 14:24:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609842#M16802</guid>
      <dc:creator>danielchen</dc:creator>
      <dc:date>2016-09-27T14:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: SPI example is not working</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609843#M16803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/danielchen@fsl"&gt;danielchen@fsl&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Ofcourse I am using K60N512 in the product.Yes I openen another thread because I didn't got a reply from this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 04:00:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/SPI-example-is-not-working/m-p/609843#M16803</guid>
      <dc:creator>yadhukrishnanvm</dc:creator>
      <dc:date>2016-09-28T04:00:56Z</dc:date>
    </item>
  </channel>
</rss>

