Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: JTAG Debug --terminate without run, will the program run after terminate?

$
0
0

[quote user="yanli ma"]Well, when I first find this question is that: I has code which is to write my E2PROM and FLASH, then I set breakpoint, so that
    I only write E2PROM, then I Terminate, but I find my flash has changed. When I power-on in normal mode not JTAG-DEBUG mode, my program can not run normally.
    If my FLASH is OK, my program can run OK.[/quote]

Although I can't be sure, I suspect there is something in the code or you are running past a point where the code is writing to Flash. What you can do to inspect the FLash memory at each stage, is to manually launch the debugger and connect to target (without using the green bug button). The process to manually launch a debug confiuration is described in the quick tips videos here:

http://processors.wiki.ti.com/index.php/Quick_Tips#Target_Setup
See "Launching a project target configuration manually" or "Launching a shared target configuration manually" depending on whether your target configuration file (.ccxml) is in the project folder or shared folder.

After connecting to target you can open a memory view at the Flash region and observe it even before loading code. The go to menu Run->Load Program and load your .out file. Again observe the Flash region. And similarly do so prior to running till breakpoint, after running till breakpoint etc. to see if you can pinpoint exactly when it changes. At this point even if you Terminate debug session, next time you restart CCS, you can simply launch the debug session and connect to target (using the process mentioned above) without even loading the code and see what the Flash memory looks like now - this should confirm is something changed during the previous Terminate.


Viewing all articles
Browse latest Browse all 91752

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>