Debug problem (very strange)
gc3076
Posts: 44
Ok, here is something really weird. I recently transferred working code from my BS2 BOE to a proto board.
My circuit basically takes the output from a Grayhill optical encoder and displays positive or negative counts from CW or CCW rotations on a serial LCD display. I have also incorporated a BS2 reset button, serial port, and counter reset button.
Here is the strange thing I download the enclosed code to my finished proto board and my reset button, encoder, and BS2 reset didn’t work. So while trying to trouble shoot I added a debug statement (line 69) downloaded it to the stamp and everything started working displaying counts, counter reset and BS2 reset. But if the debug statement is commented out then and code reloaded then everything stops working. The LCD freezes and can’t be cleared by reset or power cycle.
I emulated the BS2 schematic when adding the BS2 reset and serial port. I have checked and rechecked all the voltages, grounds, soldier joints etc. but always the same result.
The key seems to be the debug statement, any ideas.
·
My circuit basically takes the output from a Grayhill optical encoder and displays positive or negative counts from CW or CCW rotations on a serial LCD display. I have also incorporated a BS2 reset button, serial port, and counter reset button.
Here is the strange thing I download the enclosed code to my finished proto board and my reset button, encoder, and BS2 reset didn’t work. So while trying to trouble shoot I added a debug statement (line 69) downloaded it to the stamp and everything started working displaying counts, counter reset and BS2 reset. But if the debug statement is commented out then and code reloaded then everything stops working. The LCD freezes and can’t be cleared by reset or power cycle.
I emulated the BS2 schematic when adding the BS2 reset and serial port. I have checked and rechecked all the voltages, grounds, soldier joints etc. but always the same result.
The key seems to be the debug statement, any ideas.
·
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
The LCD will likely need time to initialise first.
Cheers,
Chris