PDA

View Full Version : Autostart


brian
09-21-07, 09:04 AM
I'm having trouble getting AUTOSTART to work on my IsoPod v2. I am able to get my app into flash, and it's still there after a power cycle along with the startup word to install the machine. I can cycle power, type my startup word, and the app runs. When I try to install the starup word with AUTOSTART, it doesn't seem to take. I've tried the SAVE-RAM both before and after the AUTOSTART command. My startup word is called MAIN, and I do a:

HEX 7C00 AUTOSTART MAIN

I do NOT have the autostart bypassed with the jumper.

I've tried scrubbing and loading this several times. Also, the autostart app example in the app notes on this site does not seem to work when I load it as is.

I've read over all the autostart and reset sequence stuff in the manual several times. Any suggestions?

nmitech
09-21-07, 09:39 AM
1. Remove the autostart address - On IsoMax V0.61 or newer, you do not need to specify the autostart address. Instead of HEX 7C00 AUTOSTART MAIN, just use AUTOSTART MAIN

2. If the problem is still exist, besure nothing is connecting to PE4/SCLK pin which is J5 pin 4. If this pin is pulling low on power up or reset. It will bypass the autostart

3. If nothing is connecting to PE4/SCLK pin and the problem is still there. Most likely PE4/SCLK pin is damaged.

brian
09-21-07, 02:28 PM
I get:

AUTOSTART MAIN
MAIN ? STACK EMPTY

Doesn't seem to like the missing argument. My board matches the connectors for a V2 in section 201 of the appendix, so I'm pretty sure it's a V2. It is more than a year old however. Maybe I have down-rev firmware. How can I check it? Anyway, even if it does expect the old version of the command, it doesn't seem to work. I'll put a scope on SCLK when I get a chance and see if anything looks weird. The pins look ok, and I've never had anything connected to them.

nmitech
09-21-07, 05:12 PM
I would SCRUB it first to erase any bad code in the flash memory

Each time you do a reset or power up the Pod will display the firmware version on the Terminal

Knowing the Pod firmware version. Reload the program with SAVE-RAM , and simply use one of the autostart option below that matches your firmware version ,

HEX 7C00 AUTOSTART MAIN ( For IsoMax V0.5 or earlier )
HEX 3C00 AUTOSTART MAIN ( For IsoMax V0.6 and V0.61 )
AUTOSTART MAIN (For IsoMax V0.65 or newer)

Where MAIN is the startup word in your program

Hint: If your Pod is communicating at 115200 baud, you should have V0.76 or latest. If it is communicating at 9600 baud, it is most likely V0.6 or earlier.

brian
09-21-07, 08:28 PM
It is indeed a V0.6. Using the the 3C00 start vector did the trick. THANKS!


- Brian -