<?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: port example bare-metal source code to codewarrior project</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306428#M743</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not take a look at the uTasker project? : &lt;A href="http://www.utasker.com/forum/index.php?topic=1721.0" title="http://www.utasker.com/forum/index.php?topic=1721.0"&gt;http://www.utasker.com/forum/index.php?topic=1721.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It contains Kl and K support and takes a different approach. Instead of having a large number of demo projects for various device types and various IDEs, where there will always be missing combinations and is a huge task to maintain, it is a single project which will build with CW, IAR, Keil, Atollic, Rowley Crossworks or stand-along GCC. It will build on virtually all Freescale (and other) boards by setting just 4 project defines (the processor type, eg KL25, the board type, eg FRDM-KL25Z, whether it is an M4 or M0+ core and which linker script to use (mainly for the SRAM size and location needed by the linker).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has its own Kinetis device and board simulator so once configured the simulator can be run to check that everthing has been set up correctly and then simply load to the HW with whichever compiler you prefer to work with. In case of difficulies it is intensively supported so users lose no time trying to unnecessarily work out problems on there own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Mar 2014 02:41:34 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2014-03-29T02:41:34Z</dc:date>
    <item>
      <title>port example bare-metal source code to codewarrior project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306427#M742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;I am a beginner to the kinetis microcontroller and have gotten a few KL25Z dev boards to use in an upcoming project.&amp;nbsp; I plan on using codewarrior and have version 10.5 installed.&amp;nbsp; I have downloaded the quickstart guide and the sample code for the project.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;In order to quickstart using the KL25Z for my projects I need to get started using&amp;nbsp; working with bare metal projects.&amp;nbsp; I would like to use existing project code from the basic projects source found in “KL25 Sample Code\kl25_sc_rev10\klxx-sc-baremetal\src\projects”&amp;nbsp; But, I am having problems getting the demo projects to properly build in CW10.5.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;I am disappointed that there was not an already pre-built codewarrior project for the "demo"&amp;nbsp; projects that the board shipped with and the majority of the other projects for bare-metal.&amp;nbsp; I am not completely new to codewarrior/eclipse nor MCUs, but have spent numerous hours trying to build the project with no success.&amp;nbsp; I would think that this would be a direct problem other freedom board users and hope to get a decently documented set of instructions on creating the codewarrior project for&amp;nbsp; "FRDM_KL25ZDemo" the default running demo or any of the "demo" projects in the sample code download.&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr" style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; &lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;The only instructions that I can find are found in readme.txt at the root of "kl25_sc_rev10/readme.txt"&amp;nbsp; The instructions state:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Codewarrior Bare-metal projects&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;-----------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;“The klxx-sc-baremetal\build\cw\make_new_cw_project.exe file can be used to clone the platinum project. The script will prompt you for a name to use for the new project, then creates copies of all needed compiler specific files and folders.&amp;nbsp; The main source file and klxx-sc-baremetal\src\cw\{proj name} files will need to be manually created.”&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;There seems to be a lot missing in the instructions to actually make this work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;1) What is the platinum project supposed to be?&amp;nbsp; A template project?&amp;nbsp; It appears that this project is a template with include paths to all of the dependent source in “klxx-sc-baremetal\src”. &lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;2) The current source appears to have setup and interrupt code for IAR or other IDE’s than code warrior.&amp;nbsp; I can manage to get the code to build, but the interrupts are not setup correctly&amp;nbsp; and it jumps to the following interrupt handler which I believe is the default exception handler. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;“void Default_Handler()&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;__asm("bkpt");&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;3)&amp;nbsp; So can someone provide instructions on how to actually re-create these “demo” projects in codewarrior?&amp;nbsp; Maybe I am overlooking something very obvious...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;Note: It looks like this thread tried to address this same issue:&amp;nbsp; &lt;/SPAN&gt;&lt;A _jive_internal="true" data-containerid="2019" data-containertype="14" data-objectid="307884" data-objecttype="1" href="https://community.nxp.com/thread/307884"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #1155cc; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://community.freescale.com/thread/307884" target="test_blank"&gt;https://community.freescale.com/thread/307884&lt;/A&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; and has the “solution” of:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;“see: FRDM_KL25ZSCG_CW.pdf found in “Kinetis L Sample Code\kl25_sc_rev6\klxx-sc-baremetal\build\cw” in the sample code directory.”&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P dir="ltr"&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt; Too bad this pdf file no longer exists.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 21:32:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306427#M742</guid>
      <dc:creator>mbjvfx</dc:creator>
      <dc:date>2014-03-28T21:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: port example bare-metal source code to codewarrior project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306428#M743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why not take a look at the uTasker project? : &lt;A href="http://www.utasker.com/forum/index.php?topic=1721.0" title="http://www.utasker.com/forum/index.php?topic=1721.0"&gt;http://www.utasker.com/forum/index.php?topic=1721.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It contains Kl and K support and takes a different approach. Instead of having a large number of demo projects for various device types and various IDEs, where there will always be missing combinations and is a huge task to maintain, it is a single project which will build with CW, IAR, Keil, Atollic, Rowley Crossworks or stand-along GCC. It will build on virtually all Freescale (and other) boards by setting just 4 project defines (the processor type, eg KL25, the board type, eg FRDM-KL25Z, whether it is an M4 or M0+ core and which linker script to use (mainly for the SRAM size and location needed by the linker).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has its own Kinetis device and board simulator so once configured the simulator can be run to check that everthing has been set up correctly and then simply load to the HW with whichever compiler you prefer to work with. In case of difficulies it is intensively supported so users lose no time trying to unnecessarily work out problems on there own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 02:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306428#M743</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2014-03-29T02:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: port example bare-metal source code to codewarrior project</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306429#M744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the case you mention about migrating example projects from IAR to CodeWarrior was not considered. Instead, the &lt;STRONG&gt;make_new_cw_project.exe&lt;/STRONG&gt; can be used. You are correct, the platinum project is a template project. If you run the executable, you will have a project with the paths already set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, from the folders in (&lt;SPAN style="color: #000000; font-size: 15px; font-family: Arial;"&gt;klxx-sc-baremetal\src)&lt;/SPAN&gt; 4 of them (common, cpu, drivers, platforms), only contain general or common code, such as module drivers, MCU/platform header files, etc, that can be used by any project that you create. These files do not change from one application to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as the instructions mention, you need to have source files for your application, starting from "main.c". This file among with any other application specific files need to be added to the corresponding project folder in &lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;klxx-sc-baremetal\src\projects. &lt;/SPAN&gt;Here you need to add a new folder for your project specific files (e.g. &lt;SPAN style="font-size: 15px; font-family: Arial; color: #000000;"&gt;klxx-sc-baremetal\src\projects\my_project\)&lt;/SPAN&gt; and in such folder you will add your project source files. In this case that you want to migrate one of the IAR examples, just copy the files from &lt;STRONG&gt;klxx-sc-baremetal\src\projects\FRDM_KL25ZDemo&lt;/STRONG&gt; to &lt;STRONG&gt;klxx-sc-baremetal\src\projects\my_project)&lt;/STRONG&gt;. The necessary interrupt vectors are defined in the file isr.h, and that is why you are falling in the default interrupt handler, because the ISR are not defined by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this explanation helps clafifying. Please do not hesitate to reply if you still have doubts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;Jorge Gonzalez&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, 01 Apr 2014 17:41:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/port-example-bare-metal-source-code-to-codewarrior-project/m-p/306429#M744</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-04-01T17:41:43Z</dc:date>
    </item>
  </channel>
</rss>

