Endless debug (newbie mistake)
Archiver
Posts: 46,084
I just got my basic stamp. To test it out i put in this code:
main:
if IN4 = 0 then doit
goto main
doit:
debug " It works"
goto main
well now all ny stamp does is spit out " It works" and i can't
reprogram it (ie Basic stamp found but no responding).
I tried bringing pin 4 high and programming it but still no luck.
Whats going on?
main:
if IN4 = 0 then doit
goto main
doit:
debug " It works"
goto main
well now all ny stamp does is spit out " It works" and i can't
reprogram it (ie Basic stamp found but no responding).
I tried bringing pin 4 high and programming it but still no luck.
Whats going on?
Comments
to verify it was working, and then had a hard time reloading a different code.
I never did come across a surefire way of reloading the code. And never
understood what was happening. I just kept trying, and was able to reload a
different code.
The only suggestions I can make. 1. Avoid short code that loops.
2. When you reload the code, make it a longer code that does things
or pauses for a second or so. Use a sample code that came with the
stamp. 3. Keep trying.
Sorry I couldn't help more.
Bruce
webwiz05 wrote:
> Is there a way to reset the eeprom that holds the code?
> The guy below understands the problem. My new stamp is usless.
>
> --- In basicstamps@y..., cholm@m... wrote:
> > Maybe I missed the issue here, but I think from the original post
> that the
> > stamp is becoming unprogrammable after loading that program, not
> that the
> > program loaded into the stamp is not working correctly. If the
> program is
> > not working, changing the program and re-programming as you suggest
> is easy.
> > However, If the stamp has become unprogrammable because of the code
> he
> > loaded (I didn't think this was possible), then unless there is a
> way to
> > reset, the stamp itself has become useless.
> >
> > I had problems downloading programs to the stamp when the battery
> voltage
> > was low. It would light the LED and might run the code, but was
> not taking
> > the download. You might try a fresh battery.
> >
> >
Original Message
> > From: christopher41877 [noparse][[/noparse]mailto:CHRIS@R...]
> > Sent: Sunday, September 22, 2002 9:57 AM
> > To: basicstamps@y...
> > Subject: [noparse][[/noparse]basicstamps] Re: Endless debug (newbie mistake)
> >
> >
> > Sorry, I saw you put goto main. Try putting if in4=1 then main
> after
> > if in4=0 then doit and put a pause 100 after debug "it works"
> >
> >
> > --- In basicstamps@y..., "webwiz05" <webwiz05@h...> wrote:
> > > I just got my basic stamp. To test it out i put in this code:
> > >
> > > main:
> > > if IN4 = 0 then doit
> > > goto main
> > >
> > > doit:
> > > debug " It works"
> > >
> > > goto main
> > >
> > > well now all ny stamp does is spit out " It works" and i can't
> > > reprogram it (ie Basic stamp found but no responding).
> > > I tried bringing pin 4 high and programming it but still no luck.
> > >
> > > Whats going on?
> >
> >
> > To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@y...
> > from the same email address that you subscribed. Text in the
> Subject and
> > Body of the message will be ignored.
> >
> >
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> >
> >
> >
> > This e-mail message may contain legally privileged and/or
> confidential
> > information. If you are not the intended recipient(s), or the
> employee
> > or agent responsible for delivery of this message to the intended
> > recipient(s), you are hereby notified that any dissemination,
> > distribution or copying of this e-mail message is strictly
> prohibited.
> > If you have received this message in error, please immediately
> notify
> > the sender and delete this e-mail message from your computer.
> >
> >
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
suspect will work fine. Let me know if interested. No charge. See
http://www.emesystems.com/stache.htm for info on the Stache.
Regards,
Steve
On 22 Sep 02 at 3:32, webwiz05 wrote:
> I just got my basic stamp. To test it out i put in this code:
>
> main:
> if IN4 = 0 then doit
> goto main
>
> doit:
> debug " It works"
>
> goto main
>
> well now all ny stamp does is spit out " It works" and i can't
> reprogram it...
system you are using, but I am using XP. I didn't solve the problem,
I learned how to get around it. If anyone else knows how to solve
it, let me know. For me, it locks up when the debug screen has no
more executions left. For example, if you wanted to display "it
works" when IN4=0 and you had nothing after that, it will lock up.
Try putting goto main at the end and that should solve it. If the
stamp has nothing to do after that execution, then it will stay at
that one command and it won't look for anything else. When I try and
run a program I save it EVERYTIME before I go to run it!! This will
ensure that you will not lose any unsaved information, it saves a lot
of headaches!!
--- In basicstamps@y..., "webwiz05" <webwiz05@h...> wrote:
> I just got my basic stamp. To test it out i put in this code:
>
> main:
> if IN4 = 0 then doit
> goto main
>
> doit:
> debug " It works"
>
> goto main
>
> well now all ny stamp does is spit out " It works" and i can't
> reprogram it (ie Basic stamp found but no responding).
> I tried bringing pin 4 high and programming it but still no luck.
>
> Whats going on?
if in4=0 then doit and put a pause 100 after debug "it works"
--- In basicstamps@y..., "webwiz05" <webwiz05@h...> wrote:
> I just got my basic stamp. To test it out i put in this code:
>
> main:
> if IN4 = 0 then doit
> goto main
>
> doit:
> debug " It works"
>
> goto main
>
> well now all ny stamp does is spit out " It works" and i can't
> reprogram it (ie Basic stamp found but no responding).
> I tried bringing pin 4 high and programming it but still no luck.
>
> Whats going on?
stamp is becoming unprogrammable after loading that program, not that the
program loaded into the stamp is not working correctly. If the program is
not working, changing the program and re-programming as you suggest is easy.
However, If the stamp has become unprogrammable because of the code he
loaded (I didn't think this was possible), then unless there is a way to
reset, the stamp itself has become useless.
I had problems downloading programs to the stamp when the battery voltage
was low. It would light the LED and might run the code, but was not taking
the download. You might try a fresh battery.
Original Message
From: christopher41877 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Wn22Crsx8fJqQj1tSBEPtwLMBpr515J4gn8uKb_WwJ1QuovZ31iIcxdtuLcy-7W5Qn-PkupYr7Hmi_KVM7M16raly08]CHRIS@R...[/url
Sent: Sunday, September 22, 2002 9:57 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: Endless debug (newbie mistake)
Sorry, I saw you put goto main. Try putting if in4=1 then main after
if in4=0 then doit and put a pause 100 after debug "it works"
--- In basicstamps@y..., "webwiz05" <webwiz05@h...> wrote:
> I just got my basic stamp. To test it out i put in this code:
>
> main:
> if IN4 = 0 then doit
> goto main
>
> doit:
> debug " It works"
>
> goto main
>
> well now all ny stamp does is spit out " It works" and i can't
> reprogram it (ie Basic stamp found but no responding).
> I tried bringing pin 4 high and programming it but still no luck.
>
> Whats going on?
To UNSUBSCRIBE, just send mail to:
basicstamps-unsubscribe@yahoogroups.com
from the same email address that you subscribed. Text in the Subject and
Body of the message will be ignored.
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
This e-mail message may contain legally privileged and/or confidential
information. If you are not the intended recipient(s), or the employee
or agent responsible for delivery of this message to the intended
recipient(s), you are hereby notified that any dissemination,
distribution or copying of this e-mail message is strictly prohibited.
If you have received this message in error, please immediately notify
the sender and delete this e-mail message from your computer.
[noparse][[/noparse]Non-text portions of this message have been removed]
The guy below understands the problem. My new stamp is usless.
--- In basicstamps@y..., cholm@m... wrote:
> Maybe I missed the issue here, but I think from the original post
that the
> stamp is becoming unprogrammable after loading that program, not
that the
> program loaded into the stamp is not working correctly. If the
program is
> not working, changing the program and re-programming as you suggest
is easy.
> However, If the stamp has become unprogrammable because of the code
he
> loaded (I didn't think this was possible), then unless there is a
way to
> reset, the stamp itself has become useless.
>
> I had problems downloading programs to the stamp when the battery
voltage
> was low. It would light the LED and might run the code, but was
not taking
> the download. You might try a fresh battery.
>
>
Original Message
> From: christopher41877 [noparse][[/noparse]mailto:CHRIS@R...]
> Sent: Sunday, September 22, 2002 9:57 AM
> To: basicstamps@y...
> Subject: [noparse][[/noparse]basicstamps] Re: Endless debug (newbie mistake)
>
>
> Sorry, I saw you put goto main. Try putting if in4=1 then main
after
> if in4=0 then doit and put a pause 100 after debug "it works"
>
>
> --- In basicstamps@y..., "webwiz05" <webwiz05@h...> wrote:
> > I just got my basic stamp. To test it out i put in this code:
> >
> > main:
> > if IN4 = 0 then doit
> > goto main
> >
> > doit:
> > debug " It works"
> >
> > goto main
> >
> > well now all ny stamp does is spit out " It works" and i can't
> > reprogram it (ie Basic stamp found but no responding).
> > I tried bringing pin 4 high and programming it but still no luck.
> >
> > Whats going on?
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@y...
> from the same email address that you subscribed. Text in the
Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
>
>
>
> This e-mail message may contain legally privileged and/or
confidential
> information. If you are not the intended recipient(s), or the
employee
> or agent responsible for delivery of this message to the intended
> recipient(s), you are hereby notified that any dissemination,
> distribution or copying of this e-mail message is strictly
prohibited.
> If you have received this message in error, please immediately
notify
> the sender and delete this e-mail message from your computer.
>
>
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]