<?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 DMA GetRemainingBytes bug report in MCUXpresso SDK</title>
    <link>https://community.nxp.com/t5/MCUXpresso-SDK/DMA-GetRemainingBytes-bug-report/m-p/703794#M290</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Bug in &lt;STRONG&gt;fsl_dma.c&lt;/STRONG&gt; of LPC546xx SDK v2.2.0;&lt;/P&gt;&lt;P&gt;function &lt;SPAN style="color: #800080;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: 600; color: #00677c;"&gt;DMA_GetRemainingBytes&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;DMA_Type&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;*&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return statement doesn't perform masking and bit shifting as in other functions of same source file. Also "+1" performed for register value, instead of actual XFERCOUNT value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fix:&lt;/P&gt;&lt;PRE style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&lt;SPAN style="color: #808000;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;-&amp;gt;&lt;SPAN style="color: #800000;"&gt;CHANNEL&lt;/SPAN&gt;[&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;].&lt;SPAN style="color: #800000;"&gt;XFERCFG&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;1&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;change to&lt;/P&gt;&lt;PRE style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&lt;SPAN style="color: #808000;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;((&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;-&amp;gt;&lt;SPAN style="color: #800000;"&gt;CHANNEL&lt;/SPAN&gt;[&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;].&lt;SPAN style="color: #800000;"&gt;XFERCFG&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK&lt;/SPAN&gt;)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT&lt;/SPAN&gt;)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;1&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Oct 2017 15:47:22 GMT</pubDate>
    <dc:creator>mstumbra</dc:creator>
    <dc:date>2017-10-11T15:47:22Z</dc:date>
    <item>
      <title>DMA GetRemainingBytes bug report</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/DMA-GetRemainingBytes-bug-report/m-p/703794#M290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Bug in &lt;STRONG&gt;fsl_dma.c&lt;/STRONG&gt; of LPC546xx SDK v2.2.0;&lt;/P&gt;&lt;P&gt;function &lt;SPAN style="color: #800080;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: 600; color: #00677c;"&gt;DMA_GetRemainingBytes&lt;/SPAN&gt;(&lt;SPAN style="color: #800080;"&gt;DMA_Type&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;*&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;,&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080;"&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;return statement doesn't perform masking and bit shifting as in other functions of same source file. Also "+1" performed for register value, instead of actual XFERCOUNT value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fix:&lt;/P&gt;&lt;PRE style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&lt;SPAN style="color: #808000;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;-&amp;gt;&lt;SPAN style="color: #800000;"&gt;CHANNEL&lt;/SPAN&gt;[&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;].&lt;SPAN style="color: #800000;"&gt;XFERCFG&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;1&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;change to&lt;/P&gt;&lt;PRE style="-qt-block-indent: 0; text-indent: 0px; margin: 0px;"&gt;&lt;SPAN style="color: #808000;"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;((&lt;SPAN style="color: #092e64;"&gt;base&lt;/SPAN&gt;-&amp;gt;&lt;SPAN style="color: #800000;"&gt;CHANNEL&lt;/SPAN&gt;[&lt;SPAN style="color: #092e64;"&gt;channel&lt;/SPAN&gt;].&lt;SPAN style="color: #800000;"&gt;XFERCFG&lt;/SPAN&gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;amp;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;DMA_CHANNEL_XFERCFG_XFERCOUNT_MASK&lt;/SPAN&gt;)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&amp;gt;&amp;gt;&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;DMA_CHANNEL_XFERCFG_XFERCOUNT_SHIFT&lt;/SPAN&gt;)&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;+&lt;SPAN style="color: #c0c0c0;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000080;"&gt;1&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Oct 2017 15:47:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/DMA-GetRemainingBytes-bug-report/m-p/703794#M290</guid>
      <dc:creator>mstumbra</dc:creator>
      <dc:date>2017-10-11T15:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: DMA GetRemainingBytes bug report</title>
      <link>https://community.nxp.com/t5/MCUXpresso-SDK/DMA-GetRemainingBytes-bug-report/m-p/703795#M291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for reporting this, I have sent this report to the SDK development team.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards!&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 16:34:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-SDK/DMA-GetRemainingBytes-bug-report/m-p/703795#M291</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-10-19T16:34:53Z</dc:date>
    </item>
  </channel>
</rss>

