In SX Microcontrollers, SX/B Compiler and SX-Key Tool, g_daubach wrote: Flash, recently, I ended in a "Sleeping" state with the debugger with no resonator installed. Finally, I noticed that there was a 10 kOhm resistor installed in the circuit between the OSC pins. After removing it, debugging worked as expected. In general, when the debugger is active, the SX-Key monitors the target's OSC2 pin for signal edges generated with different timing, depending on wether the target is running, or in idle mode (for single-stepping), or no signal edges at all when the device is sleeping. IOW, when the Debugger displays "Sleeping", this means that the SX-Key does not "see" any pulses on the target's OSC2 pin. Reasons may be that the target is really sleeping, that the connection to the target's OSC2 pin is broken, or that some load on the OSC2 pin pulls down the signal. Another reason may be that you try to debug a chip that has been programmed with no debug code. This may be the case when you program the chip with "Pun -Program", and then launch the debugger with "Run - Debug (reenter)". In this case, the target SX does not "know" about debugging, and thus does not generate status signals on OSC2 at all, making the SX-Key "believe" the target is sleeping. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=279040#m285760 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)