<?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のトピックCan trigger a HC12 debug cmd from C code?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046919#M8256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are developing motor control project using CodeWorrior IDE based on &amp;nbsp;mc9s12vr64 &amp;nbsp;chip. &amp;nbsp;Can we trigger a HC12 Debugger command running from C source code? e.g. If running a command “ fprintf(“my.text”, “some text..”), how to trigger it from C code implementation? ( I can only trigger it from HC12 debugger IDE but not from C source code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;He Wei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2020 06:17:35 GMT</pubDate>
    <dc:creator>wei_w_he</dc:creator>
    <dc:date>2020-04-17T06:17:35Z</dc:date>
    <item>
      <title>Can trigger a HC12 debug cmd from C code?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046919#M8256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are developing motor control project using CodeWorrior IDE based on &amp;nbsp;mc9s12vr64 &amp;nbsp;chip. &amp;nbsp;Can we trigger a HC12 Debugger command running from C source code? e.g. If running a command “ fprintf(“my.text”, “some text..”), how to trigger it from C code implementation? ( I can only trigger it from HC12 debugger IDE but not from C source code).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and best regards&lt;/P&gt;&lt;P&gt;He Wei&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 06:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046919#M8256</guid>
      <dc:creator>wei_w_he</dc:creator>
      <dc:date>2020-04-17T06:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can trigger a HC12 debug cmd from C code?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046920#M8257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi He Wei&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;printf()/fprintf() is not possible since there is NO "standard output" in embedded system. User has to implement their own "pseudo" prinf() function, i.e. to format the output in memory and then print out through SCI or SPI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;HI-WAVE supports a command FPRINTF which can be used in that case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Syntax is pretty similar to ANSI C fprintf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can have a command as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;FPRINTF (MyLog.txt, "temp1 = %d&amp;nbsp;&amp;nbsp;&amp;nbsp; temp2= %d&amp;nbsp; temp3= %d\n", temp1, temp2, temp3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; "&gt;If you are using tabs between the different items, you should be able to read the file in a .xls spreadsheet without trouble.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; "&gt;Have a nice day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; "&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 04:32:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046920#M8257</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-04-20T04:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can trigger a HC12 debug cmd from C code?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046921#M8258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jennie,&lt;/P&gt;&lt;P&gt;Thanks a lot for the reply. So can we trigger a&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;HI-WAVE cmd or execute a &lt;SPAN&gt;HI-WAVE&lt;/SPAN&gt;.cmd file from C code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thanks and best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;He Wei&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 05:10:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046921#M8258</guid>
      <dc:creator>wei_w_he</dc:creator>
      <dc:date>2020-04-20T05:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can trigger a HC12 debug cmd from C code?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046922#M8259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. you can't trigger it from C code. You can only execute PRINTF from hiwave command window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2020 04:38:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Can-trigger-a-HC12-debug-cmd-from-C-code/m-p/1046922#M8259</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-04-21T04:38:42Z</dc:date>
    </item>
  </channel>
</rss>

