EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

M68HC912B32

Started by Rivan Rivaldy February 2, 2009
Hi all,
Currently I'm a bit confused in using the M68HC912B32 MCU.
I got a few questions regarding this MCU.
1. After successfully uploading all the necessary program into the MCU EEPROM, how do we
start the MCU to actually execute all the program that we've uploaded? Is it done by simply
resetting the MCU? I've uploaded the program into $0D00 (EEPROM) and I've put the address
into the RESET register (which is located at $FFFE-$FFFF)

2. For instance, after the program run, is it possible to monitor the change in value of a
certain memory address by connecting the BDM of the EVB?

Your help is greatly appreciated. Looking forward to hearing from you soon.

Best Regards
Rivan
Oh almost forgot to mention, I'm using the EVB in POD mode and the M68HC912B32 as
the target processor. After finished uploading all the programs, I don't want to have the
EVB connected anymore to the MCU. How do I actually start the MCU to execute the user
code? Is resetting the MCU before disconnecting the EVB will start the program that I've
uploaded?

--- In 6..., "Rivan Rivaldy" wrote:
>
> Hi all,
> Currently I'm a bit confused in using the M68HC912B32 MCU.
> I got a few questions regarding this MCU.
> 1. After successfully uploading all the necessary program into the MCU EEPROM, how do
we
> start the MCU to actually execute all the program that we've uploaded? Is it done by
simply
> resetting the MCU? I've uploaded the program into $0D00 (EEPROM) and I've put the
address
> into the RESET register (which is located at $FFFE-$FFFF)
>
> 2. For instance, after the program run, is it possible to monitor the change in value of a
> certain memory address by connecting the BDM of the EVB?
>
> Your help is greatly appreciated. Looking forward to hearing from you soon.
>
> Best Regards
> Rivan
>

Hi Rivan,

If you are putting your program into EE (as opposed to Flash) then
after you have loaded it you simply jumper the target board for JMP-EE
mode (PAD0 = 1, PAD1 = 0). Then, whenever you reset it, the code in
EE will start executing automatically.

If instead you are using one board as a pod and the other as a target,
you can use the pod to erase the Flash in the target (use the FBULK
command) and then load your code into the target flash (use the FLOAD
command). In this case, you will need to make sure your program
handles things like the COP watchdog, initializing the stack, and
defining the Reset Vector, because D-Bug12 will not be there anymore.

If the above doesn't solve your problem, take a look at this document
(Adapt912B32 Manual):
http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/912Man1g.pdf
and examples in this folder:
http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/

Best regards,
Carl Barnes
www.technologicalarts.com
, you simply jumper the target board to
--- In 6..., "Rivan Rivaldy" wrote:
>
> Oh almost forgot to mention, I'm using the EVB in POD mode and the
M68HC912B32 as
> the target processor. After finished uploading all the programs, I
don't want to have the
> EVB connected anymore to the MCU. How do I actually start the MCU to
execute the user
> code? Is resetting the MCU before disconnecting the EVB will start
the program that I've
> uploaded?
>
> --- In 6..., "Rivan Rivaldy" wrote:
> >
> > Hi all,
> > Currently I'm a bit confused in using the M68HC912B32 MCU.
> > I got a few questions regarding this MCU.
> > 1. After successfully uploading all the necessary program into the
MCU EEPROM, how do
> we
> > start the MCU to actually execute all the program that we've
uploaded? Is it done by
> simply
> > resetting the MCU? I've uploaded the program into $0D00 (EEPROM)
and I've put the
> address
> > into the RESET register (which is located at $FFFE-$FFFF)
> >
> > 2. For instance, after the program run, is it possible to monitor
the change in value of a
> > certain memory address by connecting the BDM of the EVB?
> >
> > Your help is greatly appreciated. Looking forward to hearing from
you soon.
> >
> > Best Regards
> > Rivan
>

Hi Ms.
We need to work on the EEPROM after the serial prot is done. Please keep this email so that we can use it later.

Best regards,

Prof. A. R. Al-Ali, Ph.D.
Professor, Computer Engineering Department
American University of Sharjah,
P. O. Box. 26666, Sharjah, UAE
Tel: 00971-6-515-2939
Fax: 00971-6-515-2979
Mobile: 00971-50-631-5499
URL: http://www.aus.edu/engr/coe/people/Al-Ali.php

----- Original Message -----
From: mculater12
Date: Friday, February 6, 2009 4:24 am
Subject: [68HC12] Re: M68HC912B32
To: 6...
> Hi Rivan,
>
> If you are putting your program into EE (as opposed to Flash) then
> after you have loaded it you simply jumper the target board for JMP-EE
> mode (PAD0 = 1, PAD1 = 0). Then, whenever you reset it, the code in
> EE will start executing automatically.
>
> If instead you are using one board as a pod and the other as a target,
> you can use the pod to erase the Flash in the target (use the FBULK
> command) and then load your code into the target flash (use the FLOAD
> command). In this case, you will need to make sure your program
> handles things like the COP watchdog, initializing the stack, and
> defining the Reset Vector, because D-Bug12 will not be there anymore.
>
> If the above doesn't solve your problem, take a look at this document
> (Adapt912B32 Manual):
> http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/912Man1g.pdf
> and examples in this folder:
> http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/
>
> Best regards,
> Carl Barnes
> www.technologicalarts.com
>
>
> , you simply jumper the target board to
> --- In 6..., "Rivan Rivaldy" wrote:
> >
> > Oh almost forgot to mention, I'm using the EVB in POD mode and the
> M68HC912B32 as
> > the target processor. After finished uploading all the programs, I
> don't want to have the
> > EVB connected anymore to the MCU. How do I actually start the MCU to
> execute the user
> > code? Is resetting the MCU before disconnecting the EVB will start
> the program that I've
> > uploaded?
> >
> >
> >
> > --- In 6..., "Rivan Rivaldy" wrote:
> > >
> > > Hi all,
> > > Currently I'm a bit confused in using the M68HC912B32 MCU.
> > > I got a few questions regarding this MCU.
> > > 1. After successfully uploading all the necessary program into the
> MCU EEPROM, how do
> > we
> > > start the MCU to actually execute all the program that we've
> uploaded? Is it done by
> > simply
> > > resetting the MCU? I've uploaded the program into $0D00 (EEPROM)
> and I've put the
> > address
> > > into the RESET register (which is located at $FFFE-$FFFF)
> > >
> > > 2. For instance, after the program run, is it possible to monitor
> the change in value of a
> > > certain memory address by connecting the BDM of the EVB?
> > >
> > > Your help is greatly appreciated. Looking forward to hearing from
> you soon.
> > >
> > > Best Regards
> > > Rivan
> > >
> >
>
>
>
Hi Carl,
Thanks for your suggestions. Btw, I'm using the EVB in POD mode and M68HC912B32 as
the target processor.
Currently I'm loading my codes into the EEPROM instead of the Flash, since my code is
quite lengthy.
I've initialized the stack, and I've loaded the starting address of the EEPROM ($0D00) into
the Reset Vector ($FFFE-$FFFF). However, when I reset my target processor or when I first
power it up, the processor didn't directly execute the code which I've loaded into the
EEPROM.
I'm not sure why this happened. Perhaps you could give my other suggestion and possibly
solution for this matter.

Thank you very much for your help.

Best Regards,
Rivan
--- In 6..., "mculater12" wrote:
>
> Hi Rivan,
>
> If you are putting your program into EE (as opposed to Flash) then
> after you have loaded it you simply jumper the target board for JMP-EE
> mode (PAD0 = 1, PAD1 = 0). Then, whenever you reset it, the code in
> EE will start executing automatically.
>
> If instead you are using one board as a pod and the other as a target,
> you can use the pod to erase the Flash in the target (use the FBULK
> command) and then load your code into the target flash (use the FLOAD
> command). In this case, you will need to make sure your program
> handles things like the COP watchdog, initializing the stack, and
> defining the Reset Vector, because D-Bug12 will not be there anymore.
>
> If the above doesn't solve your problem, take a look at this document
> (Adapt912B32 Manual):
>
http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/912Man1g.p
df
> and examples in this folder:
> http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/
>
> Best regards,
> Carl Barnes
> www.technologicalarts.com
> , you simply jumper the target board to
> --- In 6..., "Rivan Rivaldy" wrote:
> >
> > Oh almost forgot to mention, I'm using the EVB in POD mode and the
> M68HC912B32 as
> > the target processor. After finished uploading all the programs, I
> don't want to have the
> > EVB connected anymore to the MCU. How do I actually start the MCU to
> execute the user
> > code? Is resetting the MCU before disconnecting the EVB will start
> the program that I've
> > uploaded?
> >
> >
> >
> > --- In 6..., "Rivan Rivaldy" wrote:
> > >
> > > Hi all,
> > > Currently I'm a bit confused in using the M68HC912B32 MCU.
> > > I got a few questions regarding this MCU.
> > > 1. After successfully uploading all the necessary program into the
> MCU EEPROM, how do
> > we
> > > start the MCU to actually execute all the program that we've
> uploaded? Is it done by
> > simply
> > > resetting the MCU? I've uploaded the program into $0D00 (EEPROM)
> and I've put the
> > address
> > > into the RESET register (which is located at $FFFE-$FFFF)
> > >
> > > 2. For instance, after the program run, is it possible to monitor
> the change in value of a
> > > certain memory address by connecting the BDM of the EVB?
> > >
> > > Your help is greatly appreciated. Looking forward to hearing from
> you soon.
> > >
> > > Best Regards
> > > Rivan
> > >
>

I'm puzzled, Rivan: you said your program is quite lengthy, so you
are loading it into EEPROM instead of Flash. But EEPROM is only 768
bytes whereas Flash is 32K bytes.

Also, you imply you have a blank target 912B32, and that you are
loading your program into EEPROM. So how are you loading the starting
address into the reset vector location? $FFFE-$FFFF is in the Flash
memory block, and is not byte-writable.

One more thing-- make sure your code clears the COPCTL register or
services the COP regularly.

Carl

--- In 6..., "Rivan Rivaldy" wrote:
>
> Hi Carl,
> Thanks for your suggestions. Btw, I'm using the EVB in POD mode and
M68HC912B32 as
> the target processor.
> Currently I'm loading my codes into the EEPROM instead of the Flash,
since my code is
> quite lengthy.
> I've initialized the stack, and I've loaded the starting address of
the EEPROM ($0D00) into
> the Reset Vector ($FFFE-$FFFF). However, when I reset my target
processor or when I first
> power it up, the processor didn't directly execute the code which
I've loaded into the
> EEPROM.
> I'm not sure why this happened. Perhaps you could give my other
suggestion and possibly
> solution for this matter.
>
> Thank you very much for your help.
>
> Best Regards,
> Rivan
> --- In 6..., "mculater12" wrote:
> >
> > Hi Rivan,
> >
> > If you are putting your program into EE (as opposed to Flash) then
> > after you have loaded it you simply jumper the target board for JMP-EE
> > mode (PAD0 = 1, PAD1 = 0). Then, whenever you reset it, the code in
> > EE will start executing automatically.
> >
> > If instead you are using one board as a pod and the other as a target,
> > you can use the pod to erase the Flash in the target (use the FBULK
> > command) and then load your code into the target flash (use the FLOAD
> > command). In this case, you will need to make sure your program
> > handles things like the COP watchdog, initializing the stack, and
> > defining the Reset Vector, because D-Bug12 will not be there anymore.
> >
> > If the above doesn't solve your problem, take a look at this document
> > (Adapt912B32 Manual):
> http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/912Man1g.p
> df
> > and examples in this folder:
> >
http://support.technologicalarts.ca/docs/Adapt912%20Family/Adapt912B32/
> >
> > Best regards,
> > Carl Barnes
> > www.technologicalarts.com
> >
> >
> > , you simply jumper the target board to
> > --- In 6..., "Rivan Rivaldy" wrote:
> > >
> > > Oh almost forgot to mention, I'm using the EVB in POD mode and the
> > M68HC912B32 as
> > > the target processor. After finished uploading all the programs, I
> > don't want to have the
> > > EVB connected anymore to the MCU. How do I actually start the MCU to
> > execute the user
> > > code? Is resetting the MCU before disconnecting the EVB will start
> > the program that I've
> > > uploaded?
> > >
> > >
> > >
> > > --- In 6..., "Rivan Rivaldy" wrote:
> > > >
> > > > Hi all,
> > > > Currently I'm a bit confused in using the M68HC912B32 MCU.
> > > > I got a few questions regarding this MCU.
> > > > 1. After successfully uploading all the necessary program into the
> > MCU EEPROM, how do
> > > we
> > > > start the MCU to actually execute all the program that we've
> > uploaded? Is it done by
> > > simply
> > > > resetting the MCU? I've uploaded the program into $0D00 (EEPROM)
> > and I've put the
> > > address
> > > > into the RESET register (which is located at $FFFE-$FFFF)
> > > >
> > > > 2. For instance, after the program run, is it possible to monitor
> > the change in value of a
> > > > certain memory address by connecting the BDM of the EVB?
> > > >
> > > > Your help is greatly appreciated. Looking forward to hearing from
> > you soon.
> > > >
> > > > Best Regards
> > > > Rivan
> > > >
> > >
>


The 2024 Embedded Online Conference