<?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: Freedom Board KL25Z SPI SLAVE sending problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228580#M4748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martyn,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are right. Device that is trying to read from FRDM Board is Kinetis K60 in TOWER and MQX 4.0.1. I don't know why it is not toggling CS after each byte reading. I'll try to divide fread() to single bytes and let You know how it works.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Filip Jankun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Jul 2013 20:46:05 GMT</pubDate>
    <dc:creator>FJankun</dc:creator>
    <dc:date>2013-07-30T20:46:05Z</dc:date>
    <item>
      <title>Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228578#M4746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm trying to send 4 bytes block using SS1_SendBlock() function generated from PE. Problem is, that only first byte from 4 is send with data, rest 3 is 0xFF.&lt;/P&gt;&lt;P&gt;I'm trying to send 1,2,3,4 and i get (repetable):&lt;/P&gt;&lt;P&gt;0x01 0xFF 0xFF 0xFF&lt;/P&gt;&lt;P&gt;500ms delay&lt;/P&gt;&lt;P&gt;0x02 0xFF 0xFF 0xFF&lt;/P&gt;&lt;P&gt;500ms delay&lt;/P&gt;&lt;P&gt;0x03 0xFF 0xFF 0xFF&lt;/P&gt;&lt;P&gt;500ms delay&lt;/P&gt;&lt;P&gt;0x04 0xFF 0xFF 0xFF&lt;/P&gt;&lt;P&gt;500ms delay&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using CW 10.4 and Freedom Board with KL25Z 1N97F. Do You have any ideas ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Filip Jankun&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="5364_5364.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/119629i12C104266DC8BE5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="5364_5364.png" alt="5364_5364.png" /&gt;&lt;/span&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/40103iE4BAE887E9759F33/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;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337332"&gt;SPI_FRDM.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jul 2013 14:46:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228578#M4746</guid>
      <dc:creator>FJankun</dc:creator>
      <dc:date>2013-07-29T14:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228579#M4747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From looking at your screenshot of your SPI signals, I see that you are not toggling the SS line after each byte transfer. Unless the slave receives a high SS input after the byte is sent, it will send whatever is present in the SPI data register, which is the received data from the MOSI line. If SPI MOSI is high by default, the slave will transmit 0xFF after the first byte transfer. Let me know if toggling the SS line after each byte transfer solves your issues. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228579#M4747</guid>
      <dc:creator>martynhunt</dc:creator>
      <dc:date>2013-07-30T15:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228580#M4748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martyn,&lt;/P&gt;&lt;P&gt;&amp;nbsp; You are right. Device that is trying to read from FRDM Board is Kinetis K60 in TOWER and MQX 4.0.1. I don't know why it is not toggling CS after each byte reading. I'll try to divide fread() to single bytes and let You know how it works.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Filip Jankun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jul 2013 20:46:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228580#M4748</guid>
      <dc:creator>FJankun</dc:creator>
      <dc:date>2013-07-30T20:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228581#M4749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the K60 DSPI to drive the CS to idle after each byte transfer, SPIx_PUSHR[CONT] = 0. Check if that bit is zero in your MQX application. Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 03:54:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228581#M4749</guid>
      <dc:creator>martynhunt</dc:creator>
      <dc:date>2013-07-31T03:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228582#M4750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martyn,&lt;/P&gt;&lt;P&gt;&amp;nbsp; thank You for Your help. Where in KL25Z documentation is mentioned that each SPI byte has to be separated with CS idle state ?&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Filip Jankun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jul 2013 20:46:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228582#M4750</guid>
      <dc:creator>FJankun</dc:creator>
      <dc:date>2013-07-31T20:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Freedom Board KL25Z SPI SLAVE sending problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228583#M4751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Filip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad I could help! As far as where in the documentation, section 37.4.5 'SPI Clock Formats' of the &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/KL25P80M48SF0RM.pdf?fpsp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation"&gt;KL25 Reference Manual&lt;/A&gt; explains that SS must go high after each transfer for SPIx_C1[CPHA] = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Martyn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Aug 2013 16:04:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Freedom-Board-KL25Z-SPI-SLAVE-sending-problem/m-p/228583#M4751</guid>
      <dc:creator>martynhunt</dc:creator>
      <dc:date>2013-08-05T16:04:24Z</dc:date>
    </item>
  </channel>
</rss>

