<?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>CodeWarrior Development ToolsのトピックRe: Memory locations being incorrectly written to?</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093675#M8422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know it. Thanks for the sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Aug 2020 02:16:03 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2020-08-17T02:16:03Z</dc:date>
    <item>
      <title>Memory locations being incorrectly written to?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093672#M8419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am reluctant to think this problem is with my processor, so I'm posting here under the assumption that it is perhaps a setting I am uninformed of when it comes to my dev environment / debugger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing an embedded application for a&amp;nbsp;&lt;SPAN style="font-size: 10.0pt; color: #3f4245; background: white;"&gt;MC9S08QE32 product used on a wireless radio product within CodeWarrior dev studio for MCU, v 10.2). When I compile my code and go into debug mode with my MultiLink Universal device, I am getting some strange behavior during the very basic initialization portion of my main() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f4245; background: white;"&gt;As you can see in the attached picture, when I step through the initialization line for line, everything is OK until I get to:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;prev_prs_avg=0;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f4245; background: white;"&gt;&amp;nbsp;... which is a u16. At this point, as you can see on the Variable tab on the right, it updates the value in prv_prs_avg to 0, but also updates drop_count in the process, presumably because the u16 is&amp;nbsp;&lt;EM&gt;spanning or overlapping this memory location.&amp;nbsp;&lt;/EM&gt;Does anyone know what causes this to occur, or why the system would assign a variable to a memory location that was already allocated? It also appears to be modifying 0x0725 and 0x0724, but shouldn't it be attempting to change 0x0725 and 0x0726 (U16 = 2B)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f4245; background: white;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #3f4245; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 18:10:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093672#M8419</guid>
      <dc:creator>r_howell</dc:creator>
      <dc:date>2020-07-27T18:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Memory locations being incorrectly written to?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093673#M8420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Richard&lt;/P&gt;&lt;P&gt;Please upload your demo project. Thus we can reproduce it and look into it directly.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 06:21:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093673#M8420</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-07-28T06:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory locations being incorrectly written to?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093674#M8421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for willing to help. I ended up reading about compiler optimization and this seems to be secondary to some of the events that get skipped over, perhaps if the compiler considers the process redundant. I ended up trying it with optimizations disabled and it seemed to thoroughly set every variable location in memory.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2020 20:29:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093674#M8421</guid>
      <dc:creator>r_howell</dc:creator>
      <dc:date>2020-08-15T20:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Memory locations being incorrectly written to?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093675#M8422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to know it. Thanks for the sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day,&lt;/P&gt;&lt;P&gt;Jun Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2020 02:16:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/Memory-locations-being-incorrectly-written-to/m-p/1093675#M8422</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2020-08-17T02:16:03Z</dc:date>
    </item>
  </channel>
</rss>

