AnsweredAssumed Answered

MC13213

Question asked by Joseph Kissell on Mar 11, 2015
Latest reply on Mar 11, 2015 by Joseph Kissell

Although I really hope you can point out something simple I may have missed, I have to call the IDE into question here.

 

Below is a code snippet I’ve simplified from the original version to make this conversation easier.

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.

Untitled.png

I’ve tried different hardware, different programmer (different model actually), and investigated the STACK and RAM usage. What else should I be looking at?

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?

 

This code is currently running from flash ROM address 0xCxxx  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?

Outcomes