<?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 MC13213 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC13213/m-p/379174#M21218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I really hope you can point out something simple I may have missed, I have to call the IDE into question here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a code snippet I’ve simplified from the original version to make this conversation easier.&lt;/P&gt;&lt;P&gt;When I step to this line with the debugger, idx = 1 as expected. When I put my breakpoint on timeout (as shown), idx is equal to the stack value as shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20715_20715.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120218i3B2D2FD7E00AE6EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="20715_20715.png" alt="20715_20715.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51306i759F47EA26216FBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I’ve tried different hardware, different programmer (different model actually), and investigated the STACK and RAM usage. What else should I be looking at?&lt;/P&gt;&lt;P&gt;This is part of a flash driver that I'm writing for the MC13213. Are there any flashing gotchas I need to watch out for? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is currently running from flash ROM address 0xCxxx&amp;nbsp; immediately after and Page Erase at address 0x182C. I plan to move this code into RAM once I've proven it working. Is there any reason it can't run as-is? i.e. Must it be run from RAM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2015 00:09:19 GMT</pubDate>
    <dc:creator>ignisuti_</dc:creator>
    <dc:date>2015-03-12T00:09:19Z</dc:date>
    <item>
      <title>MC13213</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC13213/m-p/379174#M21218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although I really hope you can point out something simple I may have missed, I have to call the IDE into question here.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a code snippet I’ve simplified from the original version to make this conversation easier.&lt;/P&gt;&lt;P&gt;When I step to this line with the debugger, idx = 1 as expected. When I put my breakpoint on timeout (as shown), idx is equal to the stack value as shown.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20715_20715.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120218i3B2D2FD7E00AE6EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="20715_20715.png" alt="20715_20715.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Untitled.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/51306i759F47EA26216FBA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I’ve tried different hardware, different programmer (different model actually), and investigated the STACK and RAM usage. What else should I be looking at?&lt;/P&gt;&lt;P&gt;This is part of a flash driver that I'm writing for the MC13213. Are there any flashing gotchas I need to watch out for? &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code is currently running from flash ROM address 0xCxxx&amp;nbsp; immediately after and Page Erase at address 0x182C. I plan to move this code into RAM once I've proven it working. Is there any reason it can't run as-is? i.e. Must it be run from RAM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 00:09:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC13213/m-p/379174#M21218</guid>
      <dc:creator>ignisuti_</dc:creator>
      <dc:date>2015-03-12T00:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: MC13213</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/MC13213/m-p/379175#M21219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We'll I think it was the IDE crashing after all. I closed and reopened CodeWarrior and it was complaining about not being able to open my workspace. I had to delete my .metadata folder and rebuild my workspace. Since, then I've been unable to reproduce the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The IDE being unable to open my workspace happens to me on average once every few months, but I've never seen a debugger issue present itself like this before. Anyone else seen similar issues?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 01:29:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/MC13213/m-p/379175#M21219</guid>
      <dc:creator>ignisuti_</dc:creator>
      <dc:date>2015-03-12T01:29:53Z</dc:date>
    </item>
  </channel>
</rss>

