Byron Dally

Code runs in debugger but hanging when programmed

Discussion created by Byron Dally on Jun 17, 2010
Latest reply on Jun 19, 2010 by John Dowdell

Hi

 

Hardware: MS9SO8GT60 with 32.768 kHZ xtal

programmer: Cyclone Pro HC08 - HCS08

IDE: Freescale Codewarrior 5.9.0

I realize there is any one of multiple issues that could be causing my code to lock up. But when running through the debugger, (Cyclone Pro) it works fine, key interrupts, and writing to LCD display, but when I program the board, and run the same code, stand alone, it works for a few minutes, and then appears to get stuck in a loop.

I have a fast loop running, when its awake, to write to the display, and a slower one for asleep, and it'll 'hang' anywhere from accepting key inputs one minute and then not the next, or halfway through writing out to the screen.

 

I realise this is hard to debug, but if someone has encountered this, and a list of checkpoints I could go through.

(bearing  in mind I dont  own an oscilloscope!)

Cheers

Outcomes