<?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: Porting CodeWarrior project to KDS: any suggestions?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341311#M1416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;yes, it is the FSL_USB_Stack component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Sep 2014 11:00:44 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2014-09-24T11:00:44Z</dc:date>
    <item>
      <title>Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341306#M1411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently working with CW 10.5 with a MCU Kinetis K60 (MK60DN256ZVLL100 precisely) and I planned to move to KDS.&lt;/P&gt;&lt;P&gt;In my project I'm using Processor Expert and various "complex" components such USB stack (Freescale V4.1.1), SDCard and FatFS (from the great Erich Styger :-)&amp;nbsp; ).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my porting experiments I solved a few problems regarding compiler/assembler (eg. the GCC Assembler wants __asm__("op") instead of asm("op"), compiler search paths, etc ) and don't use space in project folder names (this leads to file not found).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;SPAN style="color: #575757; text-decoration: underline;"&gt;I proceeded this way&lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;- I started a new KDS project with the same characteristics of the original CW project (MCU, PE-based project).&lt;/P&gt;&lt;P&gt;- I added and set the same PE components in KDS, copying the same parameters components have in CW.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I noticed a couple of fields more in the USB_DEVICE_STACK: Synchronization Type and a doubled Max Packet Size field (inside Configuration Descriptor).&lt;/P&gt;&lt;P&gt;&amp;nbsp; Moreover another Referenced_Component that wasn't there in CW: CS (CriticalSection - what's this?): it's needed by TimeOut and GenericTimeDate components used by FatFS.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently stuck on compiler problems on the USB stack sources.&lt;/P&gt;&lt;P&gt;I noticed that the PDD files from CW and KDS are different, but I'm not aware of what this implies (if someone can explain what these files are for).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;In another experiment&lt;/SPAN&gt; I hoped, somehow, that since the same MCU, once I include the Generated_Code from CW, everything would run correctly into KDS, but it's not (expected PE generated files would just set hardware registers directly).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you have any clues/suggestions let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luca O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 09:18:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341306#M1411</guid>
      <dc:creator>lucaognibene</dc:creator>
      <dc:date>2014-09-24T09:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341307#M1412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;CS (Critical Section) is a special component who can create critical sections (thus the name :-) ). See&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://mcuoneclipse.com/2014/01/26/entercritical-and-exitcritical-why-things-are-failing-badly/" title="http://mcuoneclipse.com/2014/01/26/entercritical-and-exitcritical-why-things-are-failing-badly/"&gt;EnterCritical() and ExitCritical(): Why Things are Failing Badly | MCU on Eclipse&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://mcuoneclipse.com/2014/02/08/criticalsection-component/" title="http://mcuoneclipse.com/2014/02/08/criticalsection-component/"&gt;CriticalSection Component | MCU on Eclipse&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you do not have that component, you probably not using the latest components set which are on GitHub (see &lt;A href="http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/" title="http://mcuoneclipse.com/2013/05/09/processor-expert-component-peupd-files-on-github/"&gt;Processor Expert Component *.PEupd Files on GitHub | MCU on Eclipse&lt;/A&gt;). If you have both *.PEupd files installed, you should have what you need. Keep in mind that CodeWarrior and KDS are using different folders (on Windows) where the components are installed (see &lt;A href="http://mcuoneclipse.com/2012/06/30/cde-hacking-where-is-my-stuff-a-dissection/" title="http://mcuoneclipse.com/2012/06/30/cde-hacking-where-is-my-stuff-a-dissection/"&gt;CDE Hacking: Where is my stuff? A dissection… | MCU on Eclipse&lt;/A&gt;):&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;CodeWarrior uses C:\ProgramData\Processor Expert\CWMCU_PE5_00&lt;/LI&gt;&lt;LI&gt;KDS uses C:\ProgramData\Processor Expert\PEXDRV_PE5_3&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So you probably have imported the *.PEupd files in only one tool chain: you need to import the components in both tool chains.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it is correct that 'in general' the generated code is the same (for the same CPU). However, the startup code/linker files are differenct between KDS and CW, so you would need to be aware of this at least.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps,&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:02:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341307#M1412</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-09-24T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341308#M1413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the fast reply Erich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, at the moment in CW I'm not using the lastest PE components: since the project is working right now I don't want to introduce possible problems in this "beta" stage : -)&amp;nbsp; Once everything is really stable, I'll try upgrading.&lt;/P&gt;&lt;P&gt;Instead I imported the lastest "beans" from GitHub on KDS: much probably that's the reason I got CriticalSection component in KDS (thanks for the links).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe for a proper porting to KDS I should use exactly the same outdated components used in CW: in this case I don't know how to deinstall the new ones just loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, I noticed that the linker files are different between CW and KDS: this leads to more headaches since I made some modifications to the CW .lcf file for making USB and FNET work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you aware of any incompatibilities between the Freescale USB stack V4.4.1 and PE components in KDS?&lt;/P&gt;&lt;P&gt;Should I switch to USB V5.0 beta? (far different in structure - I know USB "bare metal" and MQX have been joined)&lt;/P&gt;&lt;P&gt;BTW, my project is bare metal, no OS on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for info!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Luca O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341308#M1413</guid>
      <dc:creator>lucaognibene</dc:creator>
      <dc:date>2014-09-24T10:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341309#M1414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;to use the same components for both IDE's simply have the C:\ProgramData\Processor Expert\PEXDRV_PE5_3 and C:\ProgramData\Processor Expert\CWMCU_PE5_00 the same.&lt;/P&gt;&lt;P&gt;You can remove the folder and then re-install the components. There is a way to remove individual components, but not that straight forward unless you use CDE.&lt;/P&gt;&lt;P&gt;I'm using not the USB_DEVICE_STACK: I have created my own USB components (as you probably are aware) based on the V4.1.1 stack. I have not used the V5.0 for K60, so I cannot comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:49:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341309#M1414</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-09-24T10:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341310#M1415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks!&lt;BR /&gt;I try a few experiments and I'll tell the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding the USB_DEVICE_STACK, I've seen you created the FSL_USB_STACK (or named similary, right?), but I got this project from another (now ex) colleague, and I have to deal with the present (working) implementation.&lt;/P&gt;&lt;P&gt;I don't want to add too many variables to the already quite complex situation, so it's better to stick to the working basis and make changes when I'm in a stable situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for suggestions: now the whole thing it's a bit clearer.&amp;nbsp; :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luca O.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 10:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341310#M1415</guid>
      <dc:creator>lucaognibene</dc:creator>
      <dc:date>2014-09-24T10:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Porting CodeWarrior project to KDS: any suggestions?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341311#M1416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;yes, it is the FSL_USB_Stack component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Sep 2014 11:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Porting-CodeWarrior-project-to-KDS-any-suggestions/m-p/341311#M1416</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2014-09-24T11:00:44Z</dc:date>
    </item>
  </channel>
</rss>

