why:memory read/write fine, but debugger halts

Hi, I have a powerpc embedded system, in it there is a sdram chip on the bus, if I run memory test on the sdram and the test program is loaded from powerpc cache, the test passes. But if I use the debugger through JTAG for powerpc to load the program into sdram, the debugger just halts there. Without going into the details, could you think of any reason for this? I am sure the debugger is fine... What memory test program does is read/write, what debugger does is also read/write, seems there are some subtle difference between the two way, but can not figure out. Any light?

Reply to
John Black
Loading thread data ...

Simple question first: Are you trying to test the memory that your test program is running from? If so, it won't work unless you put in special provisions. Also, does your test code use the memory being tested for variables, or does the debugger use that memory?

Assuming that's not the problem, use you debugger to debug the problem. ;-) Find our where/when it crashes. You will probably have to do restarts when you place the breakpoint beyond the crash point.

Thad

>
Reply to
Thad Smith

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.