<?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: Executing CodeWarrior app from command line - DEMO9S12XEP100</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452631#M3286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent answer, Zhang Jun! Thanks to you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about passing parameters to main() function from command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate so much your comments!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Oct 2015 15:13:30 GMT</pubDate>
    <dc:creator>pabloestebancam</dc:creator>
    <dc:date>2015-10-12T15:13:30Z</dc:date>
    <item>
      <title>Executing CodeWarrior app from command line - DEMO9S12XEP100</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452629#M3284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, All.&lt;/P&gt;&lt;P&gt;I am working with a DEMO9S12XEP100, and using CodeWarrior 5.1 as IDE.&lt;/P&gt;&lt;P&gt;For the project specifications, I cannot upgrade to a more recent version of CodeWarrior: must be 5.1.&lt;/P&gt;&lt;P&gt;I need to:&lt;/P&gt;&lt;P&gt;- execute one application from command line.&lt;/P&gt;&lt;P&gt;- passing parameters to that applications.&lt;/P&gt;&lt;P&gt;The requirement is just like we do it in high level programming. For instance: my_app.exe param1 param2&lt;/P&gt;&lt;P&gt;My question:&lt;/P&gt;&lt;P&gt;Could this be done using CodeWarrior and, if possible, could you advise me how to do it?&lt;/P&gt;&lt;P&gt;Is it possible to pass parameters to main() function just like we do it in high level programming: "main (int argc, char** argv)" ?&lt;/P&gt;&lt;P&gt;One of my doubts is that I cannot figure out which kind of interface should I use, since we do not have the command line api like in Linux or Windows (I am not thinking in a GUI).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 06:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452629#M3284</guid>
      <dc:creator>pabloestebancam</dc:creator>
      <dc:date>2015-10-11T06:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: Executing CodeWarrior app from command line - DEMO9S12XEP100</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452630#M3285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command line executable are located in the installation PROG directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The HCS12 compiler is called CHC12.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The HCS12 assembler is called AHC12.exe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The HCS12 linker is called linker.exe&lt;/P&gt;&lt;P&gt;The Burner unit called burner.exe. This tool can be used to generate a S record file.&lt;/P&gt;&lt;P&gt;To generate an object library use libmaker.exe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While using our tools in batch mode, we would advise you to avoid any use of space in directory specification.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;the HC12 compiler can be run in batchmode. That’s to say, we can put the compile command into a .bat file. And run .bat file in command line mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To have a project that will compile from different locations and for multiple users, we advise you to use a project.ini file while starting or calling our tools. This will give you a calling chain like following:&lt;/P&gt;&lt;P&gt;drive:\{CW install directory}\prog\maker.exe -Prod="path to project root"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If -Prod only option is used, the current directory is the directory the project file (project.ini) is in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If -Prod option is used with a directory, the project.ini file in this directory is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If -Prod option is used with a directory and a project file (for example pro.ini), pro.ini file in this directory is loaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please also refer to attached technical note tn100 for more detailed information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can also check The HC12 makefile sample code can be found in &lt;/P&gt;&lt;P&gt;{your CW install directory}\(CodeWarrior_Examples)\MakeFileSample_HC12.&lt;/P&gt;&lt;P&gt;This sample code is available for all HC(S)12 derivatives and can work under command line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sample code, you need change INSTALL PATH in build.bat, corresponding to your own CW installation. NOTE: blank character is forbidden for path!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attachment is TN83 on how to use the Make utility. Please FYI.&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;Zhang Jun&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>Mon, 12 Oct 2015 06:13:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452630#M3285</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2015-10-12T06:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Executing CodeWarrior app from command line - DEMO9S12XEP100</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452631#M3286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent answer, Zhang Jun! Thanks to you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What about passing parameters to main() function from command line?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate so much your comments!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again in advance!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pablo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Oct 2015 15:13:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Executing-CodeWarrior-app-from-command-line-DEMO9S12XEP100/m-p/452631#M3286</guid>
      <dc:creator>pabloestebancam</dc:creator>
      <dc:date>2015-10-12T15:13:30Z</dc:date>
    </item>
  </channel>
</rss>

