<?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 for MCUのトピックRe: Compiler error - CW10.1 for Kinetis</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172996#M5441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed - kind of - or maybe irrelevant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies - I'm new to CodeWarrior.&amp;nbsp;So, I went back to basics and built an example project following the steps in the readme.txt. I can build the example projects ok, and I can build / debug / run a project for the kinetis ok from scratch using a wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach previously, that caused the errors above, was to copy and paste source files and headers as needed, into a fresh project created by the wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, no...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wanted to do was create a fresh project, say, with the intention of communicating over SPI to a sensor, to the serial port (on which I had a USB&amp;gt;serial converter and realterm) or whatever. Basically, I just want to use the headers and create a bare metal app from scratch, using functionality that I'd code myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, when a file wants to include common.h, then it snowballs to needing half the peripheral support .c +.h files for the board, and that's where I was getting the error above. The example projects compile ok, but what if I want adc AND usb to work together? Or combinations of various functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I was trying to do was skip the example projects and go straight to some home brew coding and get my hands dirty. Instead, seems I got my fingers burnt, lol &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm used to PIC32MX + MPLAB 8 / X and being able to create C/H files and functionally work from a processor header file to build all the functionality I need. I appreciate it's a bit more complex here. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in essence, what's the best way to go from hello world to a data logger / LCD controller / custom app on a custom board? Apologies for not reading the readme.txt until half a dozen failed project attempts into building from scratch - I just like to know too much how things work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2011 23:11:43 GMT</pubDate>
    <dc:creator>Frost</dc:creator>
    <dc:date>2011-10-24T23:11:43Z</dc:date>
    <item>
      <title>Compiler error - CW10.1 for Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172994#M5439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not completely sure where to start, so forgive me if this is in the wrong area.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've built a project using the headers and C files from the kinetis example projects folders:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source:&lt;/P&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;01:13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3,015 alloc.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:30 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5,139 arm_cm4.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 702 assert.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:06 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,085 gpio.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 655 io.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:40 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,231 main.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:34 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9,823 mcg.c&lt;/DIV&gt;&lt;DIV&gt;08/10/2011 &amp;nbsp;23:03 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20,499 MCUinit.c&lt;/DIV&gt;&lt;DIV&gt;08/10/2011 &amp;nbsp;23:03 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2,989 MCUinit.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6,694 memtest.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17,116 printf.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2,585 queue.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3,178 startup.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,187 stdlib.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4,127 uart.c&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8,254 uif.c&lt;/DIV&gt;&lt;DIV&gt;Headers:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;01:13 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2,146 arm_cm4.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 546 assert.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:35 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,368 common.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:35 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,334 cw.h&lt;/DIV&gt;&lt;DIV&gt;08/10/2011 &amp;nbsp;22:56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 210 derivative.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 423 io.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:34 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,405 k60_tower.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;01:01 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,214 mcg.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,128 memtest.h&lt;/DIV&gt;&lt;DIV&gt;08/10/2011 &amp;nbsp;22:56 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 812,262 MK60N512VMD100.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 787 queue.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 369 startup.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1,121 stdlib.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:38 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 505 uart.h&lt;/DIV&gt;&lt;DIV&gt;09/10/2011 &amp;nbsp;00:37 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2,876 uif.h&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I'm getting several errors on the compiler:&lt;/DIV&gt;&lt;DIV&gt;C:/Program Files (x86)/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Error(E:\Kinetis Projects\TowerTest\Project_Headers\arm_cm4.h|69|32|1|1448|1)=typedef unsigned long int uint32; /* 32 bits */ &amp;nbsp;&amp;gt;illegal name overloadingC:/Program Files (x86)/Freescale/CW MCU v10.1/MCU/ARM_Tools/Command_Line_Tools/mwccarm|Compiler|Error(E:\Kinetis Projects\TowerTest\Project_Headers\arm_cm4.h|83|25|7|1954|7)=typedef volatile uint32 &amp;nbsp;vuint32; /* 32 bits */ &amp;nbsp;&amp;gt;illegal name overloading&lt;BR /&gt;Errors caused tool to abort.C:\Program Files (x86)\Freescale\CW MCU v10.1\gnu\bin\make: *** [Sources/main.obj] Error 1&lt;/DIV&gt;&lt;DIV&gt;Looking in the files, the errors are down to typedef declarations for "unsigned long int" and "volatile uint32" both in arm_cm4.h. Also, the set_sys_dividers function is causing the "illegal name overloading" - I can't see this declared anywhere else in my project except mcg.h.&lt;/DIV&gt;&lt;DIV&gt;What I'm trying to do is get a basepoint from which to start accessing peripherals such as the uart, GPIO, touch sense etc and so uart.c has required uart.h and common.h, otherwise the functions are declared illegal, and so on, until I've got the files you see above.&lt;/DIV&gt;&lt;DIV&gt;I'm using CW10.1, with PnE USB OS JTAG I believe, at least the USB debugger / programmer built into the K60 twr module.&lt;/DIV&gt;&lt;DIV&gt;Any suggestions?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2011 07:41:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172994#M5439</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2011-10-09T07:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler error - CW10.1 for Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172995#M5440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you are doing here. First, let's confirm that nothing is wrong with the tools. Can you build an example project using the CodeWarrior new project wizard and does it work? If not, something's wrong with the CodeWarrior installation. If the project builds and runs fine, then my next question is: how are you building your project? Did you use the wizard to set it up? How are you adding your source code files to the project?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 18:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172995#M5440</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2011-10-11T18:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler error - CW10.1 for Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172996#M5441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed - kind of - or maybe irrelevant.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies - I'm new to CodeWarrior.&amp;nbsp;So, I went back to basics and built an example project following the steps in the readme.txt. I can build the example projects ok, and I can build / debug / run a project for the kinetis ok from scratch using a wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My approach previously, that caused the errors above, was to copy and paste source files and headers as needed, into a fresh project created by the wizard.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, no...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I wanted to do was create a fresh project, say, with the intention of communicating over SPI to a sensor, to the serial port (on which I had a USB&amp;gt;serial converter and realterm) or whatever. Basically, I just want to use the headers and create a bare metal app from scratch, using functionality that I'd code myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, when a file wants to include common.h, then it snowballs to needing half the peripheral support .c +.h files for the board, and that's where I was getting the error above. The example projects compile ok, but what if I want adc AND usb to work together? Or combinations of various functionality.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All I was trying to do was skip the example projects and go straight to some home brew coding and get my hands dirty. Instead, seems I got my fingers burnt, lol &lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" id="smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm used to PIC32MX + MPLAB 8 / X and being able to create C/H files and functionally work from a processor header file to build all the functionality I need. I appreciate it's a bit more complex here. &lt;IMG alt=":smileyhappy:" class="emoticon emoticon-smileyhappy" id="smileyhappy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-happy.gif" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, in essence, what's the best way to go from hello world to a data logger / LCD controller / custom app on a custom board? Apologies for not reading the readme.txt until half a dozen failed project attempts into building from scratch - I just like to know too much how things work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 23:11:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172996#M5441</guid>
      <dc:creator>Frost</dc:creator>
      <dc:date>2011-10-24T23:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Compiler error - CW10.1 for Kinetis</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172997#M5442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a CodeWarrior project targeting a Kinetis MCU, you want start with the simple "Hello World" project and open the Project_Headers folder in the CodeWarrior Projects view. There will be a "derivative.h" file that simply references a MCU-specific header file, for example, MK60N512VMD100.h. This header file defines all of the MCU's peripheral ports and the bit-mappings for certain registers. All of the C libraries, at the lowest level, reference this file in some way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For USB and ADC peripherals, you might want to use Processor Expert in the tools to set up drivers for them. Sure, that puts a layer between you and the metal, but it also gives you working code to study.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;---Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 02:39:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Compiler-error-CW10-1-for-Kinetis/m-p/172997#M5442</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2011-10-26T02:39:30Z</dc:date>
    </item>
  </channel>
</rss>

