<?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: 32-bit SPI framesize problem CW10.2 MQX 3.8</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193650#M3940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The value is set to CTAR FMSZ bits:&lt;/P&gt;&lt;P&gt;&amp;nbsp; case &lt;FONT size="2"&gt;IO_IOCTL_SPI_SET_FRAMESIZE:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dspi_ptr-&amp;gt;&lt;FONT color="#0000C0" size="2"&gt;&lt;FONT color="#0000C0" size="2"&gt;CTAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;[0] &amp;amp;= (~ (DSPI_CTAR_FMSZ(0x0F)));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dspi_ptr-&amp;gt;&lt;FONT color="#0000C0" size="2"&gt;&lt;FONT color="#0000C0" size="2"&gt;CTAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;[0] |= DSPI_CTAR_FMSZ(*param_ptr - 1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;There are only four bits for the value, so the max. value is 0x0f +1.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;~Mark&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Sep 2012 13:23:31 GMT</pubDate>
    <dc:creator>MarkP_</dc:creator>
    <dc:date>2012-09-02T13:23:31Z</dc:date>
    <item>
      <title>32-bit SPI framesize problem CW10.2 MQX 3.8</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193647#M3937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I set the SPI framesize to 32-bit throught the MQX SPI driver, it gets set to 16-bits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;param = 32; /* Set framesize to 32 bits for QLX SPI Slave*/&lt;BR /&gt;printf("Setting framesize to %d for QLX SPI Slave", param);&lt;BR /&gt;if (SPI_OK == ioctl(spi2File, IO_IOCTL_SPI_SET_FRAMESIZE, &amp;amp;param)) {&lt;BR /&gt;printf("OK\n");&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; 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(spi2File, IO_IOCTL_SPI_GET_FRAMESIZE, &amp;amp;param)) {&lt;BR /&gt;printf("%d\n", param);&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; printf("ERROR\n");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result is this:&amp;nbsp;&lt;SPAN&gt;Getting framesize ... 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It should be 32.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone seen this and is there a work around?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 00:51:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193647#M3937</guid>
      <dc:creator>cavebiker</dc:creator>
      <dc:date>2012-09-01T00:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: 32-bit SPI framesize problem CW10.2 MQX 3.8</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193648#M3938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is param a 32 bit integer type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 03:42:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193648#M3938</guid>
      <dc:creator>drummer</dc:creator>
      <dc:date>2012-09-01T03:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: 32-bit SPI framesize problem CW10.2 MQX 3.8</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193649#M3939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;P&gt;uint_32 param;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2012 04:31:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193649#M3939</guid>
      <dc:creator>cavebiker</dc:creator>
      <dc:date>2012-09-01T04:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: 32-bit SPI framesize problem CW10.2 MQX 3.8</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193650#M3940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The value is set to CTAR FMSZ bits:&lt;/P&gt;&lt;P&gt;&amp;nbsp; case &lt;FONT size="2"&gt;IO_IOCTL_SPI_SET_FRAMESIZE:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dspi_ptr-&amp;gt;&lt;FONT color="#0000C0" size="2"&gt;&lt;FONT color="#0000C0" size="2"&gt;CTAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;[0] &amp;amp;= (~ (DSPI_CTAR_FMSZ(0x0F)));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dspi_ptr-&amp;gt;&lt;FONT color="#0000C0" size="2"&gt;&lt;FONT color="#0000C0" size="2"&gt;CTAR&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;[0] |= DSPI_CTAR_FMSZ(*param_ptr - 1);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;There are only four bits for the value, so the max. value is 0x0f +1.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;~Mark&lt;/FONT&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Sep 2012 13:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/32-bit-SPI-framesize-problem-CW10-2-MQX-3-8/m-p/193650#M3940</guid>
      <dc:creator>MarkP_</dc:creator>
      <dc:date>2012-09-02T13:23:31Z</dc:date>
    </item>
  </channel>
</rss>

