<?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>FreeMASTER中的主题 Re: Manually defined global variable value not updating</title>
    <link>https://community.nxp.com/t5/FreeMASTER/Manually-defined-global-variable-value-not-updating/m-p/1509420#M1129</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;mentioned SDK example UART Freemaster's code is using TSA feature (no need to load application's elf file), see definitions in "freemaster_cfg.h":&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// Target-side address translation (TSA)
#define FMSTR_USE_TSA           1   // Enable TSA functionality
#define FMSTR_USE_TSA_SAFETY    1   // Enable/Disable TSA memory protection&lt;/LI-CODE&gt;&lt;P&gt;It means that &lt;STRONG&gt;each variable must be defined with one of TSA macros&lt;/STRONG&gt; (e.g. FMSTR_TSA_RO_VAR or FMSTR_TSA_RW_VAR) defined in "freemaster_tsa.h" otherwise the "read" and "write" functionality for new variable is disabled (checked if macro FMSTR_USE_TSA_SAFETY set) - indicated as "?" in Freemaster.&lt;/P&gt;&lt;P&gt;Another approach is to disable TSA feature completely (macro FMSTR_USE_TSA) and load the application's elf file. Then all used variables are available for "read" and "write" and their values visible in Freemaster's variable watch window.&lt;/P&gt;&lt;P&gt;Mixing TSA and usage of elf file does not make sense and could be confusing, so please define the gobal variable with TSA macros or disable TSA.&lt;/P&gt;</description>
    <pubDate>Mon, 22 Aug 2022 09:34:57 GMT</pubDate>
    <dc:creator>TomasK</dc:creator>
    <dc:date>2022-08-22T09:34:57Z</dc:date>
    <item>
      <title>Manually defined global variable value not updating</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Manually-defined-global-variable-value-not-updating/m-p/1508129#M1122</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;One of our customer is using KV4x and taking SDK example UART Freemaster code as reference, they are adding a global variable in main file. The values of these global variable is not getting updated in 'Variable watch' while other pre-defined variables are getting updated properly.&lt;/P&gt;
&lt;P&gt;Please refer screenshot where value column is showing '?'.&lt;/P&gt;
&lt;P&gt;Any help is appreciated.&lt;/P&gt;
&lt;P&gt;Thanks..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2022 08:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Manually-defined-global-variable-value-not-updating/m-p/1508129#M1122</guid>
      <dc:creator>nxf64834</dc:creator>
      <dc:date>2022-08-18T08:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: Manually defined global variable value not updating</title>
      <link>https://community.nxp.com/t5/FreeMASTER/Manually-defined-global-variable-value-not-updating/m-p/1509420#M1129</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;mentioned SDK example UART Freemaster's code is using TSA feature (no need to load application's elf file), see definitions in "freemaster_cfg.h":&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;// Target-side address translation (TSA)
#define FMSTR_USE_TSA           1   // Enable TSA functionality
#define FMSTR_USE_TSA_SAFETY    1   // Enable/Disable TSA memory protection&lt;/LI-CODE&gt;&lt;P&gt;It means that &lt;STRONG&gt;each variable must be defined with one of TSA macros&lt;/STRONG&gt; (e.g. FMSTR_TSA_RO_VAR or FMSTR_TSA_RW_VAR) defined in "freemaster_tsa.h" otherwise the "read" and "write" functionality for new variable is disabled (checked if macro FMSTR_USE_TSA_SAFETY set) - indicated as "?" in Freemaster.&lt;/P&gt;&lt;P&gt;Another approach is to disable TSA feature completely (macro FMSTR_USE_TSA) and load the application's elf file. Then all used variables are available for "read" and "write" and their values visible in Freemaster's variable watch window.&lt;/P&gt;&lt;P&gt;Mixing TSA and usage of elf file does not make sense and could be confusing, so please define the gobal variable with TSA macros or disable TSA.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 09:34:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/FreeMASTER/Manually-defined-global-variable-value-not-updating/m-p/1509420#M1129</guid>
      <dc:creator>TomasK</dc:creator>
      <dc:date>2022-08-22T09:34:57Z</dc:date>
    </item>
  </channel>
</rss>

