<?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>CodeWarrior Development ToolsのトピックRe: DMA_LDD transfer complete ISR uses wrong user data</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463039#M3487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The channel 0 and channel 16 of DMA hold the same interrupt vector :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34706i4BB6CA086A7E2D9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You check the register of "DMA_INT" to check the interrupt source is channel 0 or channel 16 .&lt;/P&gt;&lt;P&gt;2) Do you want disable the DMA complete interrupt ? If yes, you can disable it on here :&lt;/P&gt;&lt;P&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/34826i66A566DF81539023/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;if not , you can tell me your purpose in detail.&lt;/P&gt;&lt;P&gt;3)About this question , this is the restriction of the hardware , i also can not accurate to say&lt;/P&gt;&lt;P&gt;what unpredictable behaviour it will be ,&amp;nbsp; while this is ture , please refer to it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- And you said from your project you send to me , i can find the bug , sorry , please point out&lt;/P&gt;&lt;P&gt;where is the bug ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it hleps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jan 2016 08:17:24 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-01-05T08:17:24Z</dc:date>
    <item>
      <title>DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463035#M3483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My Processor Expert K20 project uses Codewarrior for MCU version 10.6.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; The DMA_LDD component attached is meant to generate a DMA transfer completion interrupt, for DMA channels 0 and 16. The PE generated code erroneously passes the User Data pointer for DMA channel 0 to the ISR, when it should reference DMA channel 16 instead.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. The DMA completion interrupt stops after a while if both DREQ and INTMAJOR bits are set in the DMA TCD. However if the DMA is left enabled after transfer completion, the interrupt is never lost.&amp;nbsp; Could this be caused by a hardware race condition where the disable request stops the interrupt being generated?&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. My application needs a large number of hardware DMA triggers, but the sub family reference manual K20P144M120SF3RM says a trigger source should not be used to trigger more than one DMA channel, as it could cause "unpredictable behaviour". I have tested using one FTM channel to trigger multiple DMA channels and did not find any problems. Exactly what is meant by "unpredictable behaviour" in this case?&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-337883"&gt;DMA1.c.zip&lt;/A&gt;&lt;/STRONG&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-337883"&gt;DMA1.h.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jan 2016 11:30:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463035#M3483</guid>
      <dc:creator>davidnemes</dc:creator>
      <dc:date>2016-01-01T11:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463036#M3484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please show your project , and it can clearly see the configuration of PE.&lt;/P&gt;&lt;P&gt;Or it hard to find the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 09:34:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463036#M3484</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-04T09:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463037#M3485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached a cut down project that shows the code generation bug. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 10:44:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463037#M3485</guid>
      <dc:creator>davidnemes</dc:creator>
      <dc:date>2016-01-04T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463038#M3486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be clear, I am only after a general answer for questions 2 and 3, where 2 was asking when a DMA channel simultaneously disables itself and generates a transfer done interrrupt, is the interrupt request latched or can it be disabled and never generated due to the disabling of the DMA channel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 11:23:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463038#M3486</guid>
      <dc:creator>davidnemes</dc:creator>
      <dc:date>2016-01-04T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463039#M3487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The channel 0 and channel 16 of DMA hold the same interrupt vector :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34706i4BB6CA086A7E2D9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You check the register of "DMA_INT" to check the interrupt source is channel 0 or channel 16 .&lt;/P&gt;&lt;P&gt;2) Do you want disable the DMA complete interrupt ? If yes, you can disable it on here :&lt;/P&gt;&lt;P&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/34826i66A566DF81539023/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;if not , you can tell me your purpose in detail.&lt;/P&gt;&lt;P&gt;3)About this question , this is the restriction of the hardware , i also can not accurate to say&lt;/P&gt;&lt;P&gt;what unpredictable behaviour it will be ,&amp;nbsp; while this is ture , please refer to it .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- And you said from your project you send to me , i can find the bug , sorry , please point out&lt;/P&gt;&lt;P&gt;where is the bug ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it hleps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2016 08:17:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463039#M3487</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-05T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463040#M3488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached file for further explanation of the bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:51:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463040#M3488</guid>
      <dc:creator>davidnemes</dc:creator>
      <dc:date>2016-01-06T11:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463041#M3489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;Yes, you are right .&lt;/P&gt;&lt;P&gt;On one hand , you can change it by hand&amp;nbsp; , then enable the "don't write generated component modules",&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/52231i9322671C17B5799B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;on the other hand ,&amp;nbsp; only use the channels which sharing the same interrupt vector table will&lt;/P&gt;&lt;P&gt;have this error,&amp;nbsp; so you can use the channels which do not use the same interrupt vector.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 09:34:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463041#M3489</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-07T09:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463042#M3490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only reason for my reporting the issue is so that the bug can be fixed.  Is there any commitment to fix the bug in a future CodeWarrior release?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jan 2016 12:14:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463042#M3490</guid>
      <dc:creator>davidnemes</dc:creator>
      <dc:date>2016-01-07T12:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: DMA_LDD transfer complete ISR uses wrong user data</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463043#M3491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;So far ,&amp;nbsp; i don't know when this bug will be fixed ,&lt;/P&gt;&lt;P&gt;and now , for development your project , the&amp;nbsp; workaround is change it by hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2016 03:18:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/DMA-LDD-transfer-complete-ISR-uses-wrong-user-data/m-p/463043#M3491</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-01-08T03:18:41Z</dc:date>
    </item>
  </channel>
</rss>

