Hello.
I received my SX Tech Tool Kit in the mail a few days ago, and have been trying to get Debugging working properly. The STEP, WALK and RUN buttons in the Debugger are greyed out, and the debugger starts in RUNNING mode.
I've read through the SX FAQ posted by G
Comments
Try this one that JonnyMac wrote for debuging purposes.
I tried the attached Debug_Test.SXB program with the same results on both the SX Tech Board and the SX 48/52 Proto Board.
JonnyMac: Thanks for the response. I changed to various oscillators per other forums posts for testing and had the same results with all of them.
Thanks for the responses.
-Tim
-Tim
One more thing to try. Remove any "break" lines in the source code and then download the code via Debug. You don't need the break lines in the source since the debugger starts up (normally) with the clock stopped and ready for you to set breakpoints, hit run, step, etc.
Thanks,
PeterM
The original code had no breaks. I added that one to get a hard breakpoint to see if i could force the debugger into a idle state. no such luck.
Thanks,
-Tim
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Teacher: What is the difference between ignorance and apathy ?
Student: I don't know and I don't care
Teacher: Correct !
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
www.hittconsulting.com
Post Edited (Bean (Hitt Consulting)) : 8/23/2007 2:27:49 AM GMT
I lowered the frequency during troubleshooting to see if that may be the problem. Attached is a screenshot of the demo program in "Programming the SX Microcontroller"
Thanks for the suggestion, though. I'll have to remember that for future projects.
-Tim
in case you have an O-scope available, please connect the probe to the OSC1 pin (and ground to Vss), and check if a signal is available on that pin. In case the O-scope's bandwith is less than 50 MHz, simply change the FREQ directive in your program to some lower value, say 4 MHz.
To make sure that the SX does not cause trouble, you could also remove the SX from its socket but leave the SX-Key plugged on the 4-pin header. After you have powered the board, do a "Run - Clock", and select a clock frequency, like 4 MHz and click "Okay". This should activate the clock generator on the SX-Key, and the O-scope should display the clock signal when you touch the OSC1 pin with the probe. This would verify that the SX-Key's clock generator is working.
Although, as you've got the same bad results with two different SX28s on the Tech Board, and with different SX48/52 Proto Boards, it is most likely that the SX-Key is defective.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
· Thanks for the reply.· Unfortunately, I do not have an oscilloscope available.· From my testing, it seems as if the oscillator on the SX-Key is non functional.· If i set a short program to use the internal oscillator, program the sx and·remove the sx-key, it will function fine.· If i set it to use an external oscillator, program the sx, insert an external oscillator·and remove the sx-key, it functions fine as well.· However, if i set it to use an external oscillator, leave the sx-key attached and tell it to "Run", the program will not run (well, the LEDs won't blink..)
I'll call Parallax this afternoon for RMA information.· Thanks, all, for the troubleshooting tips and information.·
-Tim
too bad, but it seems as if you are right with your assumptions. When the SX works as expected with its internal oscillator, or an external resonator/crystal or clock device, it is most likely that the SX-Key is broken when neither debugging, or the "Run-Run", or "Run -Clock" options work as expected. So you better contact Parallax, and I'm pretty sure they will give you the support you need.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Greetings from Germany,
G
Thanks Again for the help.
--Tim
I'd like to thank you for keeping your cool during all of this. I know how annoying it is when your shiny new gizmo doesn't work right, and there have been plenty of people on this (and other) forums who get angry first when this happens. That never helps anyone. You've been very cool during all of this, and willing to try the various suggestions.
Thanks,
PeterM