Leo Schwab

HCS08 Prototype Appears to Hang Without Debugger

Discussion created by Leo Schwab on Nov 13, 2006
Latest reply on Nov 14, 2006 by David Payne
I'm developing on an MC9S08RG60 (HCS08 variant) using the CodeWarrior tools. My development cycle has been to have the prototype connected to a BDM debugger, which loads the software, resets the CPU and then stops it at main(). I press F5 and test. Last week, someone else tried using the prototype without the benefit of the debugger, and nothing worked. The behavior is quite odd, and after some testing and extensive searching here, I'm no wiser. Here's what I've learned so far.

If the prototype is powered up with nothing attached, nothing works.

If the prototype is powered up with the BDM already attached, but no debugger running, nothing works.

If the prototype is powered up, and then the BDM is attached (no debugger), then it seems to work correctly.

If the prototype is powered up with the BDM already attached, and then the debugger is launched using "Hotsync", then it will sometimes work. (If I then have the debugger stop the prototype, the debugger shows the prototype in a sane place, suggesting it is/was executing code correctly.)

Can anyone offer insights as to what we might have done wrong?

Schwab

Outcomes