<?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 Urgent Help Needed with Debugger Command Scripts Assigning Values to Type double in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Urgent-Help-Needed-with-Debugger-Command-Scripts-Assigning/m-p/130476#M1022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Greetings,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am writing some command scripts for our verification process when I ran into a stumbling block.&amp;nbsp; In the script we need to set some variables to specific values and then execute the program.&amp;nbsp; Everything works pretty well, except I am unable to set program variables that are declared as type double.&amp;nbsp; I.e.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;double mumbo;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In the command script I have:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A mumbo = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;or&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A mumbo = 0.0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;all generate the same error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #FF3300;"&gt;Error: unknown variable&amp;nbsp;&amp;nbsp; ^&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;The ^ sign is placed after the equal sign in the expression and seems to point to an issue with the assignment.&amp;nbsp; Furthermore, I can examine the variable fine from the command script, so I think it recognizes the variables, but I can not assign any values to type double.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;I tried doubles that are global and local and the results are the same, so it does not appear to be a scope issue.&amp;nbsp; I have structures that contain mixed types and I can set any member as long as it is not a double.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;How do I do this?&amp;nbsp; We are just getting ready for verification of our program and are up against a schedule crunch.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2007 18:21:17 GMT</pubDate>
    <dc:creator>marv</dc:creator>
    <dc:date>2007-04-13T18:21:17Z</dc:date>
    <item>
      <title>Urgent Help Needed with Debugger Command Scripts Assigning Values to Type double</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Urgent-Help-Needed-with-Debugger-Command-Scripts-Assigning/m-p/130476#M1022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Greetings,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am writing some command scripts for our verification process when I ran into a stumbling block.&amp;nbsp; In the script we need to set some variables to specific values and then execute the program.&amp;nbsp; Everything works pretty well, except I am unable to set program variables that are declared as type double.&amp;nbsp; I.e.,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;double mumbo;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In the command script I have:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A mumbo = 0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;or&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;A mumbo = 0.0&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;all generate the same error:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style=": ; color: #FF3300;"&gt;Error: unknown variable&amp;nbsp;&amp;nbsp; ^&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;The ^ sign is placed after the equal sign in the expression and seems to point to an issue with the assignment.&amp;nbsp; Furthermore, I can examine the variable fine from the command script, so I think it recognizes the variables, but I can not assign any values to type double.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;I tried doubles that are global and local and the results are the same, so it does not appear to be a scope issue.&amp;nbsp; I have structures that contain mixed types and I can set any member as long as it is not a double.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;How do I do this?&amp;nbsp; We are just getting ready for verification of our program and are up against a schedule crunch.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; font-family: Arial; font-size: 2;"&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 18:21:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Urgent-Help-Needed-with-Debugger-Command-Scripts-Assigning/m-p/130476#M1022</guid>
      <dc:creator>marv</dc:creator>
      <dc:date>2007-04-13T18:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Urgent Help Needed with Debugger Command Scripts Assigning Values to Type double</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Urgent-Help-Needed-with-Debugger-Command-Scripts-Assigning/m-p/130477#M1023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hello&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Try&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A mumbo= "0.0"&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;If this does not work, make sure the variable mumbo is a global variable and that it has been linked to the application.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;CrasyCat&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2007 20:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Urgent-Help-Needed-with-Debugger-Command-Scripts-Assigning/m-p/130477#M1023</guid>
      <dc:creator>CrasyCat</dc:creator>
      <dc:date>2007-04-13T20:08:05Z</dc:date>
    </item>
  </channel>
</rss>

