<?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: K64 SPI0 Sout not Working in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64-SPI0-Sout-not-Working/m-p/589309#M5975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are using another MCU as master, aren't you? Also, are you using a custom board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a simple test on TWR-K64F120M board (cannot use FRDM-K64F because PTA16 and PTA17 are used for Ethernet's PHY) and I configured TWR-K64F120M as SLAVE, I used same SPI pins that your configuration and another MCU as master. I could receive data on Master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suggest to disconnect your SOUT and SIN pins from master and connect them each other (SCK and SLAVE select pins will be connected to master), this way, you must receive the data that you are trying to send to master. If after running this test you find that data is being sent/received correctly on slave, then probably there is an error on your connection to Master MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jul 2016 21:18:10 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2016-07-25T21:18:10Z</dc:date>
    <item>
      <title>K64 SPI0 Sout not Working</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64-SPI0-Sout-not-Working/m-p/589308#M5974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have K64&amp;nbsp; SPI0 configured has Slave using Below PINs of Port A&lt;/P&gt;&lt;P&gt;PTA 14 - Slave Select&lt;/P&gt;&lt;P&gt;PTA 15 - SPI0 SCK&lt;/P&gt;&lt;P&gt;PTA 16 - SPI0 SOUT&lt;/P&gt;&lt;P&gt;PTA 17 - SPI0 SIN&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using MQX OS&lt;/P&gt;&lt;P&gt;i am running the below code for SPI Transfer, I am able to receive(SIN) the data from Master.&lt;/P&gt;&lt;P&gt;But I dont see any data sent out of the SOUT. i have attached the Processor Expert screenshot for I/O's used and configured&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/************************************************************************************/&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void Task1_task(os_task_param_t task_init_data)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Write your local variable definition here */&lt;/P&gt;&lt;P&gt;&amp;nbsp; uint8_t counter;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(counter =0;counter&amp;lt;200;counter++)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; txbuff[counter] = counter;&lt;/P&gt;&lt;P&gt;#ifdef PEX_USE_RTOS&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (1) {&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Write your code here ... */&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; // OSA_TimeDelay(10);&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; /* Example code (for task release) */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if(DSPI_DRV_SlaveTransferBlocking(dspiCom1_IDX,txbuff,rxbuff,200, OSA_WAIT_FOREVER)&amp;nbsp; ==&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kStatus_DSPI_Success)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter++;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;#ifdef PEX_USE_RTOS&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;#endif&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*************************************************************************************************************************/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 18:57:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64-SPI0-Sout-not-Working/m-p/589308#M5974</guid>
      <dc:creator>niranjanbc</dc:creator>
      <dc:date>2016-07-19T18:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: K64 SPI0 Sout not Working</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64-SPI0-Sout-not-Working/m-p/589309#M5975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose you are using another MCU as master, aren't you? Also, are you using a custom board?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a simple test on TWR-K64F120M board (cannot use FRDM-K64F because PTA16 and PTA17 are used for Ethernet's PHY) and I configured TWR-K64F120M as SLAVE, I used same SPI pins that your configuration and another MCU as master. I could receive data on Master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suggest to disconnect your SOUT and SIN pins from master and connect them each other (SCK and SLAVE select pins will be connected to master), this way, you must receive the data that you are trying to send to master. If after running this test you find that data is being sent/received correctly on slave, then probably there is an error on your connection to Master MCU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jul 2016 21:18:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/K64-SPI0-Sout-not-Working/m-p/589309#M5975</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-07-25T21:18:10Z</dc:date>
    </item>
  </channel>
</rss>

