To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 8539
8538  |  8540
Subject: 
Re: JRM code and Reset
Newsgroups: 
lugnet.robotics.handyboard
Date: 
Wed, 2 Jan 2002 05:58:45 GMT
Viewed: 
5273 times
  
OK, I looked at the source code to try to understand what could be the
problem.  If anyone wants to download the source themselves, go to
http://handyboard.com/software/base.html and click on the link at the
bottom of the page.

The following is true of the open-source (free) version of IC.  I don't
think it's changed in Newton Labs' IC, but I could be wrong.

The very first byte of battery-backed RAM, 0x8000, marks whether or not
an auto-start program is in place.

If this byte is 0, there is no auto-start program.
If this byte is 1, there is an auto-start program, and compiled code
beginning at 0x8001 is executed.

So, given this, I'd check that you can properly read and write to
location 0x8000 of your RAM.

I haven't heard of this problem before so I too am curious as to what's
going on.  Definitely try things with the open-source IC that's
distributed from the HB site.

Fred



On Tuesday, January 1, 2002, at 11:03 PM, John McDaniel wrote:

> Dan,
> 
> Thanks for hanging tough on this problem.....I'm feeling really
> inadequate
> on this one.
> 
> I downloaded your revision of my program and it did not help.  Of
> course, if
> I do type " main() " on the PC, it does give your "Press Start....."
> message
> and waits for me to press START.  After pressing START, the HB beeps and
> starts running "my" program.
> 
> Yes, I'm downloading the Pcode version 3.1.  However, per your earlier
> suggestion, I downloaded the "PWM Pcode" to my HB and then downloaded
> my "
> main()  " file......no joy!.... same problem.
> 
> I will download the 'free' IC version and try everything from a DOS
> prompt,
> although that'll have to wait until tomorrow.
> 
> Incidentally, I just reattached the battery pack after resoldering every
> connection on the HB.....no change.
> 
> Well, I've got 103 fewer Toshiba 68HC11's than you, but I'm glad to hear
> that you don't think that the Toshiba is the problem -- or maybe I wish
> it
> were that.
> 
> Please feel free to post any/all of this discussion on the other
> board....I'll take any help I can get.  You can probably tell that I'm
> really frustrated with this problem.  I'm ready to get on with my robot
> project, but I have to get past this problem first......arrrrgh.   If I
> can't get this squared away, I'm going to have a very expensive
> paperweight.
> 
> Regards,
> John
> 
> 
> 
> In lugnet.robotics.handyboard, Dan Gates writes:
> > John,
> > I added a little sub routine to your program, see if you can use it
> > this way.
> > Probably not, but hey it's worth a try. Also, if you don't mind I'd
> > like to
> > post it to the yahoo handyboard files too at
> > http://groups.yahoo.com/group/handyboard/files/
> > -Dan
> > 
> > /* filename: jrm1.c    John R. McDaniel */
> > 
> >   void main()
> >              {
> > 
> >   init();         /* Run initialize routine */
> > 
> >   while(1){ /*do this loop endlessly*/
> > 
> > 
> >   printf("Test Motors !!\n");   /*print 'Test Motors !!' on LCD*/
> > 
> >   ao(); /*both motor off for 2 seconds*/
> >   sleep(2.0); /*delay start so can unplug cable*/
> > 
> >   /*go forward*/
> >   printf("Forward\n"); /*print 'Forward' on LCD*/
> >   fd(0); /*left motor forward*/
> >   fd(2); /*right motor forward*/
> >   sleep(3.0); /*do this for 3 seconds*/
> >   alloff(); /*let motors coast to stop*/
> >   sleep(1.0);
> > 
> >   /*turn right*/
> >   printf("Right\n"); /*print 'Right' on LCD*/
> >   fd(0); /*left motor forward*/
> >   bk(2); /*right motor backwards*/
> >   sleep(2.0); /*do this for 2 seconds*/
> >   alloff(); /*let motors coast to stop*/
> >   sleep(1.0);
> > 
> >   /*turn left*/
> >   printf("Left\n"); /*print 'Left' on LCD*/
> >   bk(0); /*left motor backwards*/
> >   fd(2); /*right motor forward*/
> >   sleep(2.0); /*do this for 2 seconds*/
> >   alloff(); /*let motors coast to stop*/
> >   sleep(1.0);
> > 
> >   /*go backward*/
> >   printf("Back\n"); /*print 'Back' on LCD*/
> >   bk(0); /*left motor backwards*/
> >   bk(2); /*right motor backwards*/
> >   sleep(3.0); /*do this for 3 seconds*/
> > 
> > 
> >   alloff(); /*all motors off, rest until next loop*/
> >   printf("Loop Done\n"); /*print 'Loop Done' on LCD*/
> > 
> >   sleep(5.0); /*pause before doing loop again*/
> > 
> >   }
> >   }
> > 
> >   /* end */
> > 
> >   /* ****************** Subroutines ************************* */
> > 
> > 
> >   void init()
> >   {
> >        printf("Press Start to  Go!\n");
> >        while(!start_button()){}
> >        tone(800.,1.);
> >  }
> 



Message has 1 Reply:
  Re: JRM code and Reset
 
Fred, Thanks for the info on how IC determines whether to auto-start a program or not. Based on your suggestions ---- I just finished downloading the open-source (free) version of IC. I had been running Newton Labs 3.1 and most recently 3.2. I (...) (25 years ago, 2-Jan-02, to lugnet.robotics.handyboard)

Message is in Reply To:
  Re: JRM code and Reset
 
Dan, Thanks for hanging tough on this problem.....I'm feeling really inadequate on this one. I downloaded your revision of my program and it did not help. Of course, if I do type " main() " on the PC, it does give your "Press Start....." message and (...) (25 years ago, 2-Jan-02, to lugnet.robotics.handyboard)

16 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR