<?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: Freemaster 2.0.2 problem with transformed variables in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606449#M5028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Agostino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood correctly, modifications made to a real-transformed variable are not allowed (Freemaster prompts an error message about being unable to translate value back to its raw format), right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you define your variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a quick test on a basic project. In this basic project, I added a volatile float variable:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;volatile float test_value = 327681;
volatile uint32_t interrupts = 0;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on FreeMaster, I defined these values as follows:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="default variable.jpg"&gt;&lt;IMG alt="default variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/5867i7C8F473FB7ADEFF4/image-size/large?v=v2&amp;amp;px=999" title="default variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="transformed-variable.jpg"&gt;&lt;IMG alt="transformed-variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/5926iF81D7CA6EBF4BC94/image-size/large?v=v2&amp;amp;px=999" title="transformed-variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;This test_value variable is not used in the embedded application.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Once I tried to change test_value wether the normal test_value or through test_value_transformed it worked:&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-align: justify;"&gt;Modifying test_value directly (test_value_transformed is updated correctly):&lt;/LI&gt;&lt;/UL&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="modify test_value variable.jpg"&gt;&lt;IMG alt="modify test_value variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/6017iED696A9313E642D6/image-size/large?v=v2&amp;amp;px=999" title="modify test_value variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-align: justify;"&gt;Modifying test_value_transformed (test_value is updated correctly):&lt;/LI&gt;&lt;/UL&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Modify test_value_transformed variable.jpg"&gt;&lt;IMG alt="Modify test_value_transformed variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/6106iE992C01290529E6C/image-size/large?v=v2&amp;amp;px=999" title="Modify test_value_transformed variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;How did you configure your variables? Is there any special setting that I didnt use?&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I am attaching my KDS project for FRDM-K64F so you can validate and compare with your configuration. I am using FreeMaster Version 2.0.2.4 (comm.protocol v3+).&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I hope this helps!&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Regards,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2020 13:51:14 GMT</pubDate>
    <dc:creator>isaacavila</dc:creator>
    <dc:date>2020-11-02T13:51:14Z</dc:date>
    <item>
      <title>Freemaster 2.0.2 problem with transformed variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606448#M5027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I faced a problem with Freemaster 2.0.2 using transformed variables.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The FMSTR project used is attached. I use Freemaster ver. 2.0.2.4 (comm.protocol v3+). The target is connected with a serial link.&lt;/P&gt;&lt;P&gt;You'll se two representation of the same variable (an ACC32 viewed as INT32): the first is real-transformed and multiplied by 3.051758e-5 to ease reading/writing; the last is showed as DEC.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Steps causing the error are the following: i try to write a number (e.g. "9" or something decimal "9.1") to the real-transformed variable and Freemaster says "Could not translate value back to its raw format" (see image no.2).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I change the decimal-viewed variable all is ok: in the example i changed it from 327681 to 317681 and the real-transformed one correctly changed from "10" to "9.69486" (see image no.3).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I experienced the same error even with INT16 or Frac16 variable viewed as REAL.&lt;/P&gt;&lt;P&gt;Another point maybe linked: a project saved with the new Freemaster version is not able to be opened with the previous version (2.0.0.0).&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;agostino&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337769"&gt;Project.pmp.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 15:08:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606448#M5027</guid>
      <dc:creator>agostinofacotti</dc:creator>
      <dc:date>2016-09-23T15:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster 2.0.2 problem with transformed variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606449#M5028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Agostino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I understood correctly, modifications made to a real-transformed variable are not allowed (Freemaster prompts an error message about being unable to translate value back to its raw format), right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you define your variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made a quick test on a basic project. In this basic project, I added a volatile float variable:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;volatile float test_value = 327681;
volatile uint32_t interrupts = 0;‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, on FreeMaster, I defined these values as follows:&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="default variable.jpg"&gt;&lt;IMG alt="default variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/5867i7C8F473FB7ADEFF4/image-size/large?v=v2&amp;amp;px=999" title="default variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="transformed-variable.jpg"&gt;&lt;IMG alt="transformed-variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/5926iF81D7CA6EBF4BC94/image-size/large?v=v2&amp;amp;px=999" title="transformed-variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;This test_value variable is not used in the embedded application.&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Once I tried to change test_value wether the normal test_value or through test_value_transformed it worked:&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-align: justify;"&gt;Modifying test_value directly (test_value_transformed is updated correctly):&lt;/LI&gt;&lt;/UL&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="modify test_value variable.jpg"&gt;&lt;IMG alt="modify test_value variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/6017iED696A9313E642D6/image-size/large?v=v2&amp;amp;px=999" title="modify test_value variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI style="text-align: justify;"&gt;Modifying test_value_transformed (test_value is updated correctly):&lt;/LI&gt;&lt;/UL&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Modify test_value_transformed variable.jpg"&gt;&lt;IMG alt="Modify test_value_transformed variable.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/6106iE992C01290529E6C/image-size/large?v=v2&amp;amp;px=999" title="Modify test_value_transformed variable.jpg" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;How did you configure your variables? Is there any special setting that I didnt use?&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I am attaching my KDS project for FRDM-K64F so you can validate and compare with your configuration. I am using FreeMaster Version 2.0.2.4 (comm.protocol v3+).&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;I hope this helps!&lt;/P&gt;&lt;P style="text-align: justify;"&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Regards,&lt;/P&gt;&lt;P style="text-align: justify;"&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:51:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606449#M5028</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2020-11-02T13:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster 2.0.2 problem with transformed variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606450#M5029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry for the late response;&lt;/P&gt;&lt;P&gt;You're right! Your setttings are correct;&lt;/P&gt;&lt;P&gt;I've tested your solution on the same project and with float no problems arise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I declared the variable as follows:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;acc32_t a32PGain&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Testing again I Found that my problem arises when i try to modify variables viewed as integer (32 or 16 bit) and than transformed as shown in the following picture:&lt;SPAN class="lia-inline-image-display-wrapper" image-alt="Variable property.jpg"&gt;&lt;IMG alt="Variable property.jpg" src="https://community.nxp.com/t5/image/serverpage/image-id/8648iF6B22C543D794F54/image-size/large?v=v2&amp;amp;px=999" title="Variable property.jpg" /&gt;&lt;/SPAN&gt;In this case i noted that &lt;STRONG&gt;I can still write&lt;/STRONG&gt; to the variable values as 0, 1.1, 2.2, 4.4, 8.8, 17.6 ecc.. seems &lt;STRONG&gt;all multiples of &lt;EM&gt;a &lt;/EM&gt;&lt;/STRONG&gt;but not any other numbers.&lt;/P&gt;&lt;P&gt;E.g. i can write to a32PGain the value 169.4 (169.4=1.1*154) but not the value 170.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same strategy above with the coefficent &lt;EM&gt;&lt;STRONG&gt;a = 3.01758e-5 &lt;/STRONG&gt; &lt;/EM&gt;and I confirm I can write values as 3.01758e-5, 6.03516e-5 (=2*3.01758e-5) but not numbers in the middle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that Freemaster doesn't know how to round numbers and accepts only multiple of the multiplier &lt;EM&gt;&lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your collaboration!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;agostino&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2020 13:51:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606450#M5029</guid>
      <dc:creator>agostinofacotti</dc:creator>
      <dc:date>2020-11-02T13:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Freemaster 2.0.2 problem with transformed variables</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606451#M5030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Agostino,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for reporting this issue, please wait for new&lt;SPAN style="font-size: 11.0pt;"&gt; minor release PC Host FreeMASTER where this bug will be fixed.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;We will keep you informed. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Iva&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2016 14:04:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Freemaster-2-0-2-problem-with-transformed-variables/m-p/606451#M5030</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2016-11-28T14:04:55Z</dc:date>
    </item>
  </channel>
</rss>

