<?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: PE DMA Controller Issues</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487992#M3989</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, i also think so with you , hope the next version of PE can fix this problem.&lt;/P&gt;&lt;P&gt;Sorry for the inconvenient to you .&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, 09 May 2016 02:09:37 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-05-09T02:09:37Z</dc:date>
    <item>
      <title>PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487983#M3980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have K60F120M tower board.&lt;/P&gt;&lt;P&gt;I have issues with ISR event callback problem and want to remove the DMA controller and regenerate through PE. But after I removed DMA controller, I couldn't put it back as the same as before. I copied back the saved version, but The order of the channels in the Property page (attached) is not Chan 0 to Chan 3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148211_148211.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121503i91947B3538647670/image-size/large?v=v2&amp;amp;px=999" role="button" title="148211_148211.png" alt="148211_148211.png" /&gt;&lt;/span&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/55540i3A623CF740A16E75/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;which creates a huge problem for me after PE generated code.&lt;/P&gt;&lt;P&gt;All channel numbers are reassigned into a different number, e.g. DMACH1 should be DMA1_STATIC_CHANNEL_1, but it reassigned to DMA1_STATIC_CHANNEL_3 even the Channel is chan 1 in the DMA1 controller as shown above.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="148212_148212.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121504i6D90CEECCF1F2069/image-size/large?v=v2&amp;amp;px=999" role="button" title="148212_148212.png" alt="148212_148212.png" /&gt;&lt;/span&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/55553iA5ECD9400B798998/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 style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The green line is new code generated by PE and the red line is removed/changed from previously generated code.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to fix it?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 14:54:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487983#M3980</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-28T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487984#M3981</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;You can change the Channel settings for chan 3 to chan 1, then generate code to have a try.&lt;/P&gt;&lt;P&gt;&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/55981iE3E3B71651C8C896/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;If still can not work well , please tell me which IDE do you use , and which DMA component ,&lt;/P&gt;&lt;P&gt;please take a screenshot . Then you'd better how to reproduce your error , i will check on&lt;/P&gt;&lt;P&gt;my side .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope&amp;nbsp; it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 02:34:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487984#M3981</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-29T02:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487985#M3982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Those parameters are not editable. They are fixed.&lt;/P&gt;&lt;P&gt;Is there any way to enable for editing?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 12:26:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487985#M3982</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-29T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487986#M3983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Send your project to me , or take a screenshot about which DMA component do you add.&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>Tue, 03 May 2016 02:42:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487986#M3983</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-03T02:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487987#M3984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;The screen dump of PE compoents: (This is before generating code)&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/56855iC3531B9E0CC0A082/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;&lt;/P&gt;&lt;P&gt;After regenerating code:&amp;nbsp; ( - Red Code Lines are removed, and + Green Code Lines are added into the new code) (Screen Dump From GIT)&lt;/P&gt;&lt;P&gt;From DMA1_DevConst, Channel 0&amp;nbsp; is changed from (DMA_Channel_0)&amp;nbsp; (- Red Line ) to Channel 0 (DMA_Channel 2) ( Green Line), and so on.&lt;/P&gt;&lt;P&gt;&lt;BR /&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/56913iAD51DC36B4BD1F1F/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;In AD1_DMA0.c, before regenerating, the ChInit data has DMA1_STATIC_CHANNEL_0, but now it is DMA1_STATIC_CHANNEL_2&lt;/P&gt;&lt;P&gt;and&amp;nbsp; for other channels in DMACH1, DMACH2, etc.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/57017i7457F031F2E28618/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to manually make changes, for example, if I want to enable interrupt for a DMA channel, which was disabled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also zipped my bsp_ project. I cannot attach to this thread. May I send it to you by email?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2016 15:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487987#M3984</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-05-04T15:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487988#M3985</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;About the DMA channel configuration , please configure the component of "DMAChannel_LDD":&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/56523iFA4F53CC4665F14B/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;Not on the DMAConroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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, 05 May 2016 03:10:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487988#M3985</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-05T03:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487989#M3986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;All DMA_Channels in DMALDD_Components are selected with correct channel numbers:&lt;/P&gt;&lt;P&gt;For example DMA_Channel3 is selected as DMA_Channel3:&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/56530iECEE960EC8134A86/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;&lt;/P&gt;&lt;P&gt;But generated channel number changed from CHANNEL3 to CHANNEL1 for DMACH3&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56594i02FD3E30FB883055/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 12:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487989#M3986</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-05-05T12:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487990#M3987</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;This is just one logical channel, not the actual physical channel.&lt;/P&gt;&lt;P&gt;It meaning, this is just stand for the sequence of configure the DMA channel,&lt;/P&gt;&lt;P&gt;for example , we add three channel , at start , in turn to configuration : DMACH1 ,2, 3,then&lt;/P&gt;&lt;P&gt;from the DMACHx.c file , we can see they are in turn :&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/56624i32E8969AC7C67832/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;&lt;/P&gt;&lt;P&gt;If then you change one , for example the component of DMACH2， we will see that ,&lt;/P&gt;&lt;P&gt;in the DMACH2.C file , the logical channel number become 2, not 1 , while in the DMACH3.C file ,&lt;/P&gt;&lt;P&gt;is "DMA1_STATIC_CHANNEL_1, ", the reason is we last configure the DMACH2, so the his logical nummber&lt;/P&gt;&lt;P&gt;is the last :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56774i96FF10CF28C6788E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While it doesn't matter , the actual channel control is at the DMA1.C FILE :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/56836i66BE076E32BE3F05/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;they are one to one correspondence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you think this is confused , i recommend you if change one channles configure, you can from the first one ,then change all of them one by one , only need change one place on each channel, for the do not need changed&lt;/P&gt;&lt;P&gt;channel , you&amp;nbsp; change it to other , then change it back .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it hleps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&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>Fri, 06 May 2016 06:26:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487990#M3987</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-06T06:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487991#M3988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alice,&lt;/P&gt;&lt;P&gt;Thank you for your input.&lt;/P&gt;&lt;P&gt;I think if the program only uses the code generated by PE, this is OK and it will work. I know these numbers are logical. But if logical matches physical will be less confusion and less prone to error/bugs, because if the code is modified and using the macros, such as DMA_TCD1_CS,&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pDMA-&amp;gt;SERQ = DMA_SERQ_SERQ(DMA_CHANNEL1); &lt;/P&gt;&lt;P&gt;then all these codes need to be modified again. The logical numbers are shuffled by PE.&amp;nbsp; I think I need to make such modifications for my customized code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2016 12:35:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487991#M3988</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-05-06T12:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: PE DMA Controller Issues</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487992#M3989</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, i also think so with you , hope the next version of PE can fix this problem.&lt;/P&gt;&lt;P&gt;Sorry for the inconvenient to you .&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, 09 May 2016 02:09:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/PE-DMA-Controller-Issues/m-p/487992#M3989</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-05-09T02:09:37Z</dc:date>
    </item>
  </channel>
</rss>

