<?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: Error in SPI data transfer after changing the frame size in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890989#M52650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have debug my code,&lt;/P&gt;&lt;P&gt;The register value&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; SPI0_CTAR0 is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SPI0_CTAR0_SPI0&amp;nbsp; 0x40005506&amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; DBR&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; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; FMSZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x8&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CPOL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CPHA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; LSBFE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PCSSCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PASC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PDT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PBR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CSSCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x5&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; ASC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x5&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; DT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; BR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x6&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;so the frame size changes in the register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also the frame size changes when set to 7 bit.The problem is when setting above 8 bit value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Apr 2019 05:04:37 GMT</pubDate>
    <dc:creator>anju1</dc:creator>
    <dc:date>2019-04-30T05:04:37Z</dc:date>
    <item>
      <title>Error in SPI data transfer after changing the frame size</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890987#M52648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;I&amp;nbsp;am currently working on frdm k64f board..&amp;nbsp;I am using MQX&amp;nbsp; 4.2 with IAR..&amp;nbsp; I&amp;nbsp;want to communicate with&amp;nbsp;SPI&amp;nbsp;in&amp;nbsp;9bit data transfer. The data transfer in frame size of 8 bit is ok. but when i change the frame size as&lt;/P&gt;&lt;P&gt;param = 9; /* Set framesize to 9*/&lt;BR /&gt;printf("Setting framesize to %d ", param);&lt;BR /&gt;if (SPI_OK == ioctl(spifd, IO_IOCTL_SPI_SET_FRAMESIZE, &amp;amp;param)) {&lt;BR /&gt;printf("OK\n");&lt;BR /&gt;} else {&lt;BR /&gt; printf("ERROR\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;printf("Getting framesize ... "); /* Get transfer mode */&lt;BR /&gt;if (SPI_OK == ioctl(spifd, IO_IOCTL_SPI_GET_FRAMESIZE, &amp;amp;param)) {&lt;BR /&gt;printf("%d\n", param);&lt;BR /&gt;} else {&lt;BR /&gt; printf("ERROR\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the data transfer is not happening..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have also tried changing the frame size in init_spi.c file , it was also unsuccessful.&lt;/P&gt;&lt;P&gt;anyone please help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 04:56:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890987#M52648</guid>
      <dc:creator>anju1</dc:creator>
      <dc:date>2019-04-25T04:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SPI data transfer after changing the frame size</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890988#M52649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANJU ANTONY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Do you debug your code, and check the SPI register?&lt;/P&gt;&lt;P&gt;&amp;nbsp; SPIx_CTARn[FRMSZ]= 8 if you want to send 9 bit data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Please debug, and check the register directly.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Maybe your register is not modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please send me your debug result.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:55:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890988#M52649</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-25T10:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SPI data transfer after changing the frame size</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890989#M52650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your reply,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have debug my code,&lt;/P&gt;&lt;P&gt;The register value&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; SPI0_CTAR0 is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;SPI0_CTAR0_SPI0&amp;nbsp; 0x40005506&amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; DBR&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; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; FMSZ&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x8&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CPOL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CPHA&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; LSBFE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&amp;nbsp; &amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PCSSCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PASC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PDT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; PBR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x0&amp;nbsp; &amp;nbsp; ReadWrite &lt;BR /&gt; CSSCK&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0x5&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; ASC&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x5&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; DT&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 0x0&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite &lt;BR /&gt; BR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x6&amp;nbsp; &amp;nbsp; &amp;nbsp;ReadWrite&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;so the frame size changes in the register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Also the frame size changes when set to 7 bit.The problem is when setting above 8 bit value.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 05:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890989#M52650</guid>
      <dc:creator>anju1</dc:creator>
      <dc:date>2019-04-30T05:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SPI data transfer after changing the frame size</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890990#M52651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANJU ANTONY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thank you for your updated information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Could you give me the SPI bus wave when you set the bit above 8 bit value, eg. 8 bit, 9bit. ect. Please also give me the 7 bit SPI bus wave, especially the SPI_CLK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Then I will help you to check it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; When you test it, please also give me the debug result picture about the &amp;nbsp; SPIx_CTARn[FRMSZ].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your updated information.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 07:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890990#M52651</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-30T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in SPI data transfer after changing the frame size</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890991#M52652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ANJU ANTONY,&lt;/P&gt;&lt;P&gt;BTW, I highly recommend you test this SPI bit function without the MQX, just use the baremetal code.&lt;/P&gt;&lt;P&gt;You can test it based on the K64 sdk code.&lt;/P&gt;&lt;P&gt;If you still have question about it, I will check it on my FRDM-K64 board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2019 07:02:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Error-in-SPI-data-transfer-after-changing-the-frame-size/m-p/890991#M52652</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-30T07:02:50Z</dc:date>
    </item>
  </channel>
</rss>

