Problem A comment: I have often seen programs that run fine from a
monitor program fail when auto running. I always look for things that
the monitor initialized (like the Stack Pointer) that the autorun
program does not contain.
Problem B comment: Double check the memory map for the CML12 so you know
where the EEPROM is. From memory EEPROM was at $D00-$FFF on the
68HC12B32 and RAM is at $800-$BFF.
$FFFE-F on the B32 was FLASH memory and could not be reprogrammed from
the monitor, but the BDM could.
HTH
Emmett Redd Ph.D. mailto:E...@missouristate.edu
Professor (417)836-5221
Department of Physics, Astronomy, and Materials Science
Missouri State University Fax (417)836-6226
901 SOUTH NATIONAL Dept (417)836-5131
SPRINGFIELD, MO 65897 USA
A bad day doing research is better than a good day doing something else.
> -----Original Message-----
> From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]
> On Behalf Of j...@yahoo.com
> Sent: Wednesday, December 05, 2007 11:58 AM
> To: 6...@yahoogroups.com
> Subject: [68HC12] CML12-DP256 AUTORUN OR START PROGRAM
> AUTOMATICALLY HELP
>
> Hi,
>
> I am having some problems running my program in CML12-DP256
> development board.
>
> I want the program to run automatically when the development
> board is booted up. I am running into 2 problems. I use Axide
> Monitor software that i downloaded from the Axman
> website.(www.axman.com).
>
> Problem A)
> Auto-run feature does not work. I load the program into
> EEPROM starting at $8000. If i use monitor and call the
> program by typing " call 8000" the program runs fine. But if
> i try to use Auto run by typing "AUTO 8000", and then i
> disable the NO_AUTO pin and restart the micro-controller, the
> program does not run on startup.( ECS pin is ON.MEMORY PIN IS
> ON.JP1 AND JP2 PINS ARE ON.). I do not understand it. Also
> the EEPROM at $4000 does not work. I cannot load the program
> to $4000.Axide gives me a Bad-checksum error.???
>
> Problem B)
> If i turn off power supply the eeprom gets erased. Isn't it
> supposed to be nonvolatile and be permanently stored
> OPTIONS I HAVE--- I was thinking of disabling monitor and
> writing my program start address to $FFFE. I cannot change it
> now using Axide because the $FFFE address is locked. Does
> anyone know if i can change it using any other method?
>
> Regarding the other problems i am encountering, please help
> me out. Any help is appreciated.
> Thank you
> Jobin
>
>

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )
I will certainly look into solution for Problem A.I already
initialized the stack in the program. Forget my program, I couldn't
even get a simple "Hello world" program running though" but i will
look into program again.
Regarding Problem B, I already know the memory map. The development
board CML12-DP256 has eeproms at $8000 and $4000. I was able to load
the program into eeprom starting at $8000 but every time i turned off
the machine, the program would be ruined. Dont know why.
--- In 6...@yahoogroups.com, "Redd, Emmett R"
wrote:
>
> Problem A comment: I have often seen programs that run fine from a
> monitor program fail when auto running. I always look for things that
> the monitor initialized (like the Stack Pointer) that the autorun
> program does not contain.
>
> Problem B comment: Double check the memory map for the CML12 so you know
> where the EEPROM is. From memory EEPROM was at $D00-$FFF on the
> 68HC12B32 and RAM is at $800-$BFF.
>
> $FFFE-F on the B32 was FLASH memory and could not be reprogrammed from
> the monitor, but the BDM could.
>
> HTH
>
> Emmett Redd Ph.D. mailto:EmmettRedd@...
> Professor (417)836-5221
> Department of Physics, Astronomy, and Materials Science
> Missouri State University Fax (417)836-6226
> 901 SOUTH NATIONAL Dept (417)836-5131
> SPRINGFIELD, MO 65897 USA
>
> A bad day doing research is better than a good day doing something else.
>
>
> > -----Original Message-----
> > From: 6...@yahoogroups.com [mailto:6...@yahoogroups.com]
> > On Behalf Of jobin007007@...
> > Sent: Wednesday, December 05, 2007 11:58 AM
> > To: 6...@yahoogroups.com
> > Subject: [68HC12] CML12-DP256 AUTORUN OR START PROGRAM
> > AUTOMATICALLY HELP
> >
> > Hi,
> >
> > I am having some problems running my program in CML12-DP256
> > development board.
> >
> > I want the program to run automatically when the development
> > board is booted up. I am running into 2 problems. I use Axide
> > Monitor software that i downloaded from the Axman
> > website.(www.axman.com).
> >
> > Problem A)
> > Auto-run feature does not work. I load the program into
> > EEPROM starting at $8000. If i use monitor and call the
> > program by typing " call 8000" the program runs fine. But if
> > i try to use Auto run by typing "AUTO 8000", and then i
> > disable the NO_AUTO pin and restart the micro-controller, the
> > program does not run on startup.( ECS pin is ON.MEMORY PIN IS
> > ON.JP1 AND JP2 PINS ARE ON.). I do not understand it. Also
> > the EEPROM at $4000 does not work. I cannot load the program
> > to $4000.Axide gives me a Bad-checksum error.???
> >
> > Problem B)
> > If i turn off power supply the eeprom gets erased. Isn't it
> > supposed to be nonvolatile and be permanently stored
> >
> >
> > OPTIONS I HAVE--- I was thinking of disabling monitor and
> > writing my program start address to $FFFE. I cannot change it
> > now using Axide because the $FFFE address is locked. Does
> > anyone know if i can change it using any other method?
> >
> > Regarding the other problems i am encountering, please help
> > me out. Any help is appreciated.
> > Thank you
> > Jobin
> >
> >
> >
> >

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )