<?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>topic Re: Syntax Errors on Lines in C Program in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520755#M12985</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BOB,&lt;/P&gt;&lt;P&gt;After you send email to me , please mentioned me at here, or maybe i will ignore your email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your project, your interrupt vector have not write to the vector table ,&amp;nbsp; while it also have other&lt;/P&gt;&lt;P&gt;errors, so i refer to your demand create one new project , add two component.&lt;/P&gt;&lt;P&gt;The TimerInt component is usd for timer interrupt , the BitIO component is used for gpio to toggle LED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure the Timer interrupt period to 10ms :&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/60122i0DBD50B500F04BB3/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;For i have not the board, so i have not test it , you can test it on your side , check whether it can enter&lt;/P&gt;&lt;P&gt;the interrupt function :&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/60149iF01FC53036C11306/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;I use the port A-3, if i'm wrong , you can change it on the BITIO component .&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>Fri, 17 Jun 2016 10:50:07 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2016-06-17T10:50:07Z</dc:date>
    <item>
      <title>Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520750#M12980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am an old assembler guy, just getting started in C using CodeWarrior 10.6.4 on an MC9S08QB8 device.&amp;nbsp; I have had the target up and running using an assembly program, but now I wish to try changing over to C.&amp;nbsp; A simple sample program is shown below in the IDE debugger.&amp;nbsp; The code is supposed to set up a 10mSec Modulo Timer and just toggle a microprocessor pin high/low on each 10mSec interrupt.&amp;nbsp; I am getting two syntax errors: one on the Initialize_CPU call, (with that routine also shown), and the other on the ISR for my Modulo Timer.&amp;nbsp; The ISR format was taken from NXP/Freescale's "HCS08QRUG Rev. 1" document in the "Implementing Interrupt Service Routines" section.&amp;nbsp; Does anyone know why I'm getting the Syntax Errors?&amp;nbsp; Does either syntax error deal with the need for Function Prototypes that I've seen, like in C++ ?&amp;nbsp; Also, if I were to have several separate .c source files, is there anything I need to do to allow one source file to "see" the functions in the other source files?&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="153564_153564.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/121793iCCD4F2D1EE6989A9/image-size/large?v=v2&amp;amp;px=999" role="button" title="153564_153564.jpg" alt="153564_153564.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Syntax Errors in Simple C Program for HCS08.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59550i35D5E3086E5B8B85/image-size/large?v=v2&amp;amp;px=999" role="button" title="Syntax Errors in Simple C Program for HCS08.jpg" alt="Syntax Errors in Simple C Program for HCS08.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 20:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520750#M12980</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-06-14T20:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520751#M12981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BOB,&lt;/P&gt;&lt;P&gt;Could you please show the console windows of the CW and send your project to me ,&lt;/P&gt;&lt;P&gt;then it is facilitate to check 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>Wed, 15 Jun 2016 01:42:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520751#M12981</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-15T01:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520752#M12982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice:&lt;/P&gt;&lt;P&gt;Here is a screenshot of the Console Windows showing "CodeWarrior Projects", "main.c", the "Project Explorer" with as many items expanded as possible, and the Console window:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="TST_C0000 Console Windows 160615 830AM.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59562i0EA71D80177BD468/image-size/large?v=v2&amp;amp;px=999" role="button" title="TST_C0000 Console Windows 160615 830AM.jpg" alt="TST_C0000 Console Windows 160615 830AM.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have also Zipped my project, but I do not see any capability to upload that ZIP file to you.&amp;nbsp; I tried to use "Insert Image" for my ZIP file, but it said that that type of file was not allowed.&amp;nbsp; I tried using the "Upload Files" part of the "Create" Menu (the Pencil icon), but I don't understand what needs to be done for creating a space for things.&lt;/P&gt;&lt;P&gt;If you can provide an e-mail address or an explanation of the "Upload Files" process, I can send the ZIP file of my project to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Bob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 13:00:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520752#M12982</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-06-15T13:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520753#M12983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way... Shall I assume after much digging into the Codewarrior menus and trying to find Help on Generating Code (automatically) that the "free" version of CW 10.6.4 does NOT allow me to "Add to project" anything that can be found in the "Components Library", as can be seen here:&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Components Library - Add to Project Not Available.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59501i6FE9282DB4CA3A75/image-size/large?v=v2&amp;amp;px=999" role="button" title="Components Library - Add to Project Not Available.jpg" alt="Components Library - Add to Project Not Available.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 14:27:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520753#M12983</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-06-15T14:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520754#M12984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BOB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- You can click the "Actions", then " Edit” , then "Attach"&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/60088i3010D2231F09C6E5/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;&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/60046i53802953D8B3115A/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;SPAN&gt;If on your side , you can not find these buttons ,you can send it to&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:alice.yang@nxp.com"&gt;alice.yang@nxp.com&lt;/A&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The free CW can also add the component , you should first create one Processor Expert project :&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/60174iDCADF2B88F264D1F/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;then you can double click the component you want to use&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/60145i2BC80363EF94E3FE/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;Also in the&amp;nbsp; help on component, there is the demo about how to use the component and the detail information .&lt;/P&gt;&lt;P&gt;I also attached the project&amp;nbsp; i create .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 09:06:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520754#M12984</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-16T09:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520755#M12985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello BOB,&lt;/P&gt;&lt;P&gt;After you send email to me , please mentioned me at here, or maybe i will ignore your email.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your project, your interrupt vector have not write to the vector table ,&amp;nbsp; while it also have other&lt;/P&gt;&lt;P&gt;errors, so i refer to your demand create one new project , add two component.&lt;/P&gt;&lt;P&gt;The TimerInt component is usd for timer interrupt , the BitIO component is used for gpio to toggle LED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configure the Timer interrupt period to 10ms :&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/60122i0DBD50B500F04BB3/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;For i have not the board, so i have not test it , you can test it on your side , check whether it can enter&lt;/P&gt;&lt;P&gt;the interrupt function :&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/60149iF01FC53036C11306/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;I use the port A-3, if i'm wrong , you can change it on the BITIO component .&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>Fri, 17 Jun 2016 10:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520755#M12985</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-06-17T10:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Errors on Lines in C Program</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520756#M12986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice:&lt;/P&gt;&lt;P&gt;Thank you for your responses. Unfortunately, I was not able to get your version of s08_test to work.&lt;/P&gt;&lt;P&gt;After much fumbling about and researching other sample HCS08 code, I was finally able to get my simple 10mSec interrupt to toggle an output bit on the processor.&lt;/P&gt;&lt;P&gt;I consider this thread closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jul 2016 12:32:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Syntax-Errors-on-Lines-in-C-Program/m-p/520756#M12986</guid>
      <dc:creator>bpaehr</dc:creator>
      <dc:date>2016-07-12T12:32:52Z</dc:date>
    </item>
  </channel>
</rss>

