<?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: The address that the value of a global variable is stored is in Code flash memory ,not in SRAM in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1221381#M7763</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for your report.&lt;/P&gt;
&lt;P&gt;I haven't tried to reproduce but I'd suggest you to compile your project using the latest compiler version.&lt;/P&gt;
&lt;P&gt;Please try to install CodeWarrior for MCUs v11.x evaluation version (&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-MCU-PROED-EX_11-1)&amp;nbsp;" target="_blank"&gt;https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-MCU-PROED-EX_11-1)&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Create a new project in project wizard and copy/paste the source code that reproduces the problem from your original project.&lt;/P&gt;
&lt;P&gt;Do you still observe the issue?&lt;/P&gt;
&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
    <pubDate>Tue, 26 Jan 2021 17:59:23 GMT</pubDate>
    <dc:creator>stanish</dc:creator>
    <dc:date>2021-01-26T17:59:23Z</dc:date>
    <item>
      <title>The address that the value of a global variable is stored is in Code flash memory ,not in SRAM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1219145#M7762</link>
      <description>&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ordinary-span-edit"&gt;As shown in the figure，There are two program debug diagrams(&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;wrong version&lt;/SPAN&gt; and &lt;SPAN class="high-light-bg ordinary-span-edit"&gt;Correct version&lt;/SPAN&gt;).&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;The two versions of the program are similar,the only difference is at F red box.&amp;nbsp; &lt;SPAN class="high-light-bg ordinary-span-edit"&gt;The wrong version is the first figure,The&amp;nbsp;correct version is the&amp;nbsp;second figure.&amp;nbsp;&amp;nbsp; The error appears at C&amp;nbsp;( D) red box.(&lt;SPAN class="high-light-bg"&gt;C red box is expressed by assembly, D red box&amp;nbsp;is expressed in C language;the two are the same.&amp;nbsp;&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ordinary-span-edit"&gt;&lt;SPAN&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The location of the error is the value of the global variable&amp;nbsp;USART2_RX_STA ,in the first figure.&amp;nbsp;&amp;nbsp; The value of the global variable is stored in the address that R29 points to&amp;nbsp;,in the first figure.The address (R29 000020E4)that R29 points to is in the Code flash memory region in the first figure; It is error.&amp;nbsp;&amp;nbsp; The address (R30 40001348)that R30 points to is in the SRAM region in the&amp;nbsp;second figure; It is correct.&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ordinary-span-edit"&gt;&lt;SPAN&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&amp;nbsp;&amp;nbsp; The only difference between the two programs is at F,&amp;nbsp;Why does the&amp;nbsp;error version of the program go wrong ? Why is the value of a global variable stored USART2_RX_STA in the Code flash memory region&amp;nbsp;?&amp;nbsp; The actual value is error and fixed.&amp;nbsp; But The values you see through the debug window are correct&amp;nbsp;(E red box).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="ordinary-span-edit"&gt;&lt;SPAN&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;(The code is attached,&amp;nbsp; software version: CodeWarrior IDE 2.10)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4连续发送3次有问题.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/135490i1FEE9DB96D9E5E74/image-size/large?v=v2&amp;amp;px=999" role="button" title="4连续发送3次有问题.JPG" alt="4连续发送3次有问题.JPG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.1.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/135491iF1944AC29493E1A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.1.JPG" alt="4.1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="memory map.JPG" style="width: 679px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/135495i78FCE926BC915217/image-size/large?v=v2&amp;amp;px=999" role="button" title="memory map.JPG" alt="memory map.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 04:42:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1219145#M7762</guid>
      <dc:creator>ycgxy1650601</dc:creator>
      <dc:date>2021-01-22T04:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: The address that the value of a global variable is stored is in Code flash memory ,not in SRAM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1221381#M7763</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Thank you for your report.&lt;/P&gt;
&lt;P&gt;I haven't tried to reproduce but I'd suggest you to compile your project using the latest compiler version.&lt;/P&gt;
&lt;P&gt;Please try to install CodeWarrior for MCUs v11.x evaluation version (&lt;A href="https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-MCU-PROED-EX_11-1)&amp;nbsp;" target="_blank"&gt;https://www.nxp.com/webapp/swlicensing/sso/downloadSoftware.sp?catid=CWX-MCU-PROED-EX_11-1)&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Create a new project in project wizard and copy/paste the source code that reproduces the problem from your original project.&lt;/P&gt;
&lt;P&gt;Do you still observe the issue?&lt;/P&gt;
&lt;P&gt;Thanks&amp;amp;Regards,&lt;/P&gt;
&lt;P&gt;Stan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:59:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1221381#M7763</guid>
      <dc:creator>stanish</dc:creator>
      <dc:date>2021-01-26T17:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: The address that the value of a global variable is stored is in Code flash memory ,not in SRAM</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1224677#M7764</link>
      <description>&lt;P&gt;Hi stanish:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;Thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;There seems to be something wrong with your download link. &lt;SPAN&gt;I downloaded&amp;nbsp;the new&amp;nbsp;CW version&amp;nbsp;from other link. My Download link:&lt;A href="https://www.nxp.com.cn/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-for-mcus-eclipse-ide-coldfire-56800-e-dsc-qorivva-56xx-rs08-s08-s12z-11-1:CW-MCU10" target="_self"&gt;https://www.nxp.com.cn/design/software/development-software/codewarrior-development-tools/codewarrior-legacy/codewarrior-for-mcus-eclipse-ide-coldfire-56800-e-dsc-qorivva-56xx-rs08-s08-s12z-11-1:CW-MCU10&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&lt;SPAN&gt;Is the version OK?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&lt;SPAN&gt;And &amp;nbsp;I created a new project in project wizard and copy/paste the source code&amp;nbsp;, all going well.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&lt;SPAN&gt;The problem is solved.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="high-light-bg"&gt;&lt;SPAN class="high-light-bg ordinary-span-edit"&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 11:15:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/The-address-that-the-value-of-a-global-variable-is-stored-is-in/m-p/1224677#M7764</guid>
      <dc:creator>ycgxy1650601</dc:creator>
      <dc:date>2021-02-02T11:15:10Z</dc:date>
    </item>
  </channel>
</rss>

