<?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 How to handle exception ,when run in tcl progress with codewarrior? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-handle-exception-when-run-in-tcl-progress-with/m-p/511046#M12896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Miss/Sir:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have two questions about TCL Script for auto-programming.Could u help? thanks in advanced.&lt;/P&gt;&lt;P&gt;1) How to handle the exception in following tcl code ,when running tcl in codewarrior.&lt;/P&gt;&lt;P&gt;When error occurs, the execution will stop. How to go end,if error occurs&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fl::disconnect&lt;/P&gt;&lt;P&gt;fl::target -lc "LC&lt;BR /&gt;for Simple Flash"&lt;/P&gt;&lt;P&gt;fl::target -b 0xf400&lt;BR /&gt;0xc00&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d&lt;BR /&gt;"MC56F82748_P_FLASH" -o "32kx16x1" -a 0x0 0x7fff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x0 0x7fff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase all&lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "MC56F82748_X_FLASH" -o "32kx16x1" -a 0x4000 0xbfff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x4000 0xbfff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase all&lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt;fl::disconnect&lt;/P&gt;&lt;P&gt;#End:&lt;/P&gt;&lt;P&gt;log s c:\\resultlog.txt&lt;/P&gt;&lt;P&gt;quitIDE&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Could I replace “f1:erase image” with “f1::erase all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; “f1::erase all” takes less time&amp;nbsp; than "f1::erase image".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 09:12:24 GMT</pubDate>
    <dc:creator>hillzzhao2016</dc:creator>
    <dc:date>2016-03-29T09:12:24Z</dc:date>
    <item>
      <title>How to handle exception ,when run in tcl progress with codewarrior?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-handle-exception-when-run-in-tcl-progress-with/m-p/511046#M12896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Miss/Sir:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have two questions about TCL Script for auto-programming.Could u help? thanks in advanced.&lt;/P&gt;&lt;P&gt;1) How to handle the exception in following tcl code ,when running tcl in codewarrior.&lt;/P&gt;&lt;P&gt;When error occurs, the execution will stop. How to go end,if error occurs&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fl::disconnect&lt;/P&gt;&lt;P&gt;fl::target -lc "LC&lt;BR /&gt;for Simple Flash"&lt;/P&gt;&lt;P&gt;fl::target -b 0xf400&lt;BR /&gt;0xc00&lt;/P&gt;&lt;P&gt;fl::target -v off -l off&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d&lt;BR /&gt;"MC56F82748_P_FLASH" -o "32kx16x1" -a 0x0 0x7fff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x0 0x7fff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase all&lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt;cmdwin::fl::device -d "MC56F82748_X_FLASH" -o "32kx16x1" -a 0x4000 0xbfff&lt;/P&gt;&lt;P&gt;cmdwin::fl::image -f “c:\\FW.s" -t "Auto Detect" -re on -r 0x4000 0xbfff -oe off&lt;/P&gt;&lt;P&gt;cmdwin::fl::erase all&lt;/P&gt;&lt;P&gt;cmdwin::fl::write&lt;/P&gt;&lt;P&gt;fl::disconnect&lt;/P&gt;&lt;P&gt;#End:&lt;/P&gt;&lt;P&gt;log s c:\\resultlog.txt&lt;/P&gt;&lt;P&gt;quitIDE&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Could I replace “f1:erase image” with “f1::erase all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; “f1::erase all” takes less time&amp;nbsp; than "f1::erase image".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 09:12:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-handle-exception-when-run-in-tcl-progress-with/m-p/511046#M12896</guid>
      <dc:creator>hillzzhao2016</dc:creator>
      <dc:date>2016-03-29T09:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to handle exception ,when run in tcl progress with codewarrior?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-handle-exception-when-run-in-tcl-progress-with/m-p/511047#M12897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hillz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;In Classic CodeWarrior for DSC, the debugger shell supports using “config” command to control whether the script will continue after an error.&amp;nbsp; The command is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;config onScriptError abort | continue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;However I tested on Eclipse CodeWarrior, this command is not supported and I cannot find the equivalent command.&amp;nbsp; All the commands supported are listed in Chapter 4 &amp;lt;Debugger Shell&amp;gt; in CodeWarrior Development Studio Common Features Guide:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;&lt;A href="http://cache.nxp.com/files/soft_dev_tools/doc/user_guide/CWCFUG.pdf"&gt;http://cache.nxp.com/files/soft_dev_tools/doc/user_guide/CWCFUG.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial','sans-serif';"&gt;For the second question, there is no any problem to replace “f1:erase image” with “f1::erase all”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Fiona Kuang&lt;/P&gt;&lt;P&gt;Technical Information &amp;amp; Commercial Support&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Mark Correct button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Apr 2016 11:06:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-to-handle-exception-when-run-in-tcl-progress-with/m-p/511047#M12897</guid>
      <dc:creator>TICS_Fiona</dc:creator>
      <dc:date>2016-04-01T11:06:15Z</dc:date>
    </item>
  </channel>
</rss>

