Subject:
|
Re: Reset & running Main ( )
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Sun, 30 Dec 2001 06:12:30 GMT
|
Viewed:
|
1888 times
|
| |
| |
John, a couple things.
1. when you quit and restart IC, it forgets what programs you may have
loaded into the HB. so that explains your #4 case below.
2. IC has its own way of storing vectors for user code like your main()
program, so you should not expect the hardware reset vector to change
when you load your IC user code. so this explains your case #8.
what should work is the following:
a. you download a program containing a function named main().
b. turn the handy board off and unplug it from the desktop machine.
c. turn the HB on, and it should run main().
does this not work?
fred
On Saturday, December 29, 2001, at 05:29 PM, John McDaniel wrote:
> Dear "Group",
>
> ....what are we? Lugnetters? Lugheads? Lugnuts?
>
> Regardless, I need some guidance on getting my Handyboard to run a
> downloaded Main( ) program upon powerup/reset. Here are some facts
> regarding my problem.
>
> 1. The Handyboard downloads the Pcode properly and the LCD displays the
> "IC
> v3.1 Handy Board 1.2" message plus a pulsing heartbeat.
>
> 2. I can execute the various IC commands from my PC.... beep( ), read
> memory
> locations with peek( ), turn motors on and off, read Knob, etc.
>
> 3. I can download a Main( ) program (filename jrm1.c) to the Handy
> Board and
> them make it run by typing " main ( )" on the PC. I can unplug the
> serial
> cable and the Handy Board will continue to execute the " main( )"
> program
> sequences.
>
> 4. I leave the serial cable plugged into the HB and I do not turn off
> the HB
> power switch. If I quit IC (on the PC) and restart, then type " list
> files"(after the IC initialization process with the HB), IC does not
> list
> my main( ) program (filename jrm1.c). If I try to run my main( )
> program
> (filename jrm1.c), IC displays "Function main undefined".
>
> 5. I unplug the serial cable from the HB, turn off the HB power switch,
> and
> leave IC running on the PC. Leave HB power off for 10 minutes. Plug
> serial
> cable back into the HB and turn on the HB power switch. Instead of
> executing my " main( )" program (filename jrm1.c), the LCD displays the
> "IC
> v3.1 Handy Board 1.2" message with heartbeat. Now, type " main( )" on
> the
> PC and my "main( )" program (filename jrm1.c) runs properly.
>
> 6. I have oscilloscoped the 62256 RAM chip's MEM-PWR pin and see no
> interruption of power when the HB power switch is turned off and on.
> Operation of the DS1233 (and subsequent 74HC132 gates) seems correct at
> the
> 62256's "/E" pin (20).
>
> 7. The red LED11 PWR LED (led 11) "winks" upon reset and the the
> oscilloscope shows a normal reset waveform at pin 17 on the 68HC11.
> Reset
> also seems to correctly influence the "/E" pin (20) on the 62256.
>
> 8. Before downloading any " main( )" program to the HB, using IC, I
> peek
> (49150) [$BFEE] and (49151) [$BFFF] and see a reset vector of $C500
> which, I
> believe, is the location of IC on the HB.
>
> If I download a " main( )" program to the HB and then peek (49150) and
> peek
> (49151) the reset vector has not changed.
>
>
> I'm about at wit's end trying to get my HB to run a " main( )" program
> upon
> powerup reset. Can anyone suggest additonal tests I might perform or
> provide some insight on what I am overlooking/misunderstanding?
>
> Any assistance is greatly appreciated.
>
> Going crazy in Columbus......John
>
|
|
Message has 1 Reply: | | Re: Reset & running Main ( )
|
| Fred, Thanks for the very prompt response. Your responses to queries on this board continue to provide very useful insights. With respect to your response #1, it is helpful to know that "list files" does not actually read the Handy Board and is (...) (23 years ago, 30-Dec-01, to lugnet.robotics.handyboard)
|
Message is in Reply To:
| | Reset & running Main ( )
|
| Dear "Group", ....what are we? Lugnetters? Lugheads? Lugnuts? Regardless, I need some guidance on getting my Handyboard to run a downloaded Main( ) program upon powerup/reset. Here are some facts regarding my problem. 1. The Handyboard downloads the (...) (23 years ago, 29-Dec-01, to lugnet.robotics.handyboard)
|
14 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
|
|
|
|