<?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>MCUXpresso SDKのトピックRe: In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is 1 word more than caller specifies in 'size' parameter in some cases</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816978#M1029</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am the LPC and kinetis engineer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have the I.MX technical issue, please create the question in the I.MX area:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/community/imx/content?sortKey=contentstatus%5Bpublished%5D~creationDateDesc&amp;amp;sortOrder=0" title="https://community.nxp.com/community/imx/content?sortKey=contentstatus%5Bpublished%5D~creationDateDesc&amp;amp;sortOrder=0"&gt;i.MX Processors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There will have have the according engineer to help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Besides, next time, when you create the question post, please add the chip part number,&amp;nbsp; thank you!&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2018 05:26:54 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-07-19T05:26:54Z</dc:date>
    <item>
      <title>In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is 1 word more than caller specifies in 'size' parameter in some cases</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816975#M1026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is&amp;nbsp; 1 word more than caller specifies in 'size' parameter in certain cases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In attached image, you can see how 'size' parameter, which specifies transfer size in bytes is divided by 4 then increased by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if caller specifies:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Write 2 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;b)&amp;nbsp;&lt;/SPAN&gt;Write 3 bytes : 1 word is copied into caller's buffer (Ok, as long as caller allocates in word multiples)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;c)&amp;nbsp;&lt;/SPAN&gt;Write 4 bytes : 2 words are copied into caller's buffer! (Buffer overflow!)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;d)&amp;nbsp;&lt;/SPAN&gt;Write 5 bytes : 2 words are copied into caller's buffer! (&lt;SPAN&gt;Ok, as long as caller allocates in word multiples&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why&amp;nbsp;this code does not account for case (c)?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 20:04:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816975#M1026</guid>
      <dc:creator>stephenschwartz</dc:creator>
      <dc:date>2018-07-16T20:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is 1 word more than caller specifies in 'size' parameter in some cases</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816976#M1027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Please tell me what the chip, board and sample code you are using?&amp;nbsp; This is useful to analysis the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your reply!&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 10:31:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816976#M1027</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-17T10:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is 1 word more than caller specifies in 'size' parameter in some cases</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816977#M1028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, here is the information:&lt;/P&gt;&lt;TABLE style="color: #333333; background-color: #ffffff; margin-bottom: 20px;"&gt;&lt;TBODY style="border-top: 2px solid #dddddd;"&gt;&lt;TR class="" data-configuration-name="MIMXRT1052xxxxB" data-type="SDK"&gt;&lt;TD class="" style="border-top: 1px solid #dddddd; padding: 20px 8px 8px;"&gt;&lt;A data-original-title="Download SDK archive and documentation" data-pk="108102" data-sdk-version="2.4.1" href="https://mcuxpresso.nxp.com/en/dashboard" style="color: #337ab7; background-color: transparent; text-decoration: none; font-size: 16px; margin-right: 6px;" tabindex="-1" title=""&gt;MIMXRT1052xxxxB&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;A data-original-title="Edit SDK Archive Name" href="https://mcuxpresso.nxp.com/en/dashboard" style="color: #337ab7; background-color: transparent; text-decoration: none; font-size: 16px; margin-right: 15px;" title=""&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class="" style="color: #ffffff; background-color: #777777; font-weight: bold; font-size: 12px; margin-left: 8px; padding: 3px 7px;"&gt;NEW&lt;/SPAN&gt;&lt;P class="" style="margin: 6px 0px 0px;"&gt;&lt;SPAN class=""&gt;Build Date:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: 600;"&gt;2018-07-17&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Device:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: 600;"&gt;MIMXRT1052xxxxB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;OS:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: 600;"&gt;Windows&lt;/SPAN&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Toolchain:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: 600;"&gt;MCUXpresso IDE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Components:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(None)&lt;/P&gt;&lt;DIV class="" style="padding-top: 4px;"&gt;&lt;P&gt;&lt;SPAN class=""&gt;SDK Version:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: 600;"&gt;KSDK 2.4.1&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(2018-06-18)&lt;/P&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t dest[4];&lt;/P&gt;&lt;P&gt;flexspi_transfer_t flashXfer;&lt;/P&gt;&lt;P&gt;flashXfer.deviceAddress = address;&lt;BR /&gt; flashXfer.port = kFLEXSPI_PortA1;&lt;BR /&gt; flashXfer.cmdType = kFLEXSPI_Read;&lt;BR /&gt; flashXfer.SeqNumber = 1u;&lt;BR /&gt; flashXfer.seqIndex = SEQ_IDX_READ_FAST_QUAD;&lt;BR /&gt; flashXfer.data = (uint32_t *)dest;&lt;BR /&gt; flashXfer.dataSize = sizeof(dest);&lt;/P&gt;&lt;P&gt;FLEXSPI_TransferBlocking(FLEXSPI, &amp;amp;flashXfer)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2018 13:33:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816977#M1028</guid>
      <dc:creator>stephenschwartz</dc:creator>
      <dc:date>2018-07-17T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: In FLEXSPI_TransferHandleIRQ(), FLEXSPI_WriteBlocking(), and FLEXSPI_ReadBlocking() input/output from/to RFDR/TFDR is 1 word more than caller specifies in 'size' parameter in some cases</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816978#M1029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I am the LPC and kinetis engineer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If you have the I.MX technical issue, please create the question in the I.MX area:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/community/imx/content?sortKey=contentstatus%5Bpublished%5D~creationDateDesc&amp;amp;sortOrder=0" title="https://community.nxp.com/community/imx/content?sortKey=contentstatus%5Bpublished%5D~creationDateDesc&amp;amp;sortOrder=0"&gt;i.MX Processors&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; There will have have the according engineer to help you.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Besides, next time, when you create the question post, please add the chip part number,&amp;nbsp; thank you!&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: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2018 05:26:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/In-FLEXSPI-TransferHandleIRQ-FLEXSPI-WriteBlocking-and-FLEXSPI/m-p/816978#M1029</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-07-19T05:26:54Z</dc:date>
    </item>
  </channel>
</rss>

