Load Code in 68EVB9SC32

Started by fhgrossi October 31, 2005
Hi everybody!

I have just begun learning 68HC12 and I can't upload my assembly code
in my EVB (COM2 nor USB BDM multilink).

My EVB jumpers are setted:
RX_EN: In
RTS_EN: Open
CTS_EN: Open
MODA: 5V
MODB: 5V
MODC: gnd
OSC_SEL1: EXTERNAL
OSC_SEL2: EXT_CLOCK
SW1_EN: In

I change MODC to +5V when BDM USB is used, as writted in board user
manual, but I haven't any success. There is no comunication between
EVB and my PC.

I'm usin Metrowerks Code Warrior software and True-Time Simulator &
Real-Time Debugger.

Could someone give a help on this?

Thanks



Hi.

Please try the settings here below:

>AXIOM M68EVB9S12C32 - AXM-0303 Rev. A: Jumpers starting setup (example):
>-CTS_EN -> open
>-RTS_EN -> open
>-RX_EN -> close
>-ROM_EN -> GND
>-TEST -> GND
>-MODC -> +5V to debug with HCS12 Serial Monitor via COM1 port, ->GND to
>debug via BDM PORT
>-MODB -> GND
>-MODA -> GND
>-OSC_SEL2 -> CLOCK
>-OSC_SEL1 -> CLOCK
>-SW1_EN -> closed
>-LED_EN -> close
>-CAN_RXEN -> open
>-CAN_TXEN -> open
>-and the SW7 switch (not SW6 as written is some specs) must be in OFF
>position. This is required for Serial Monitor mode only.
Regards,
Gilles

========================================
CodeWarrior Online Community and Support
========================================

<http://www.codewarrior.com/community> features the ability to submit and
track service requests online and to search the CodeWarrior Knowledge Base,
as well as participate in online developer forums (open to everyone).
Community: <http://www.codewarrior.com/community
At 05:51 PM 10/31/2005, you wrote:
>Hi everybody!
>
>I have just begun learning 68HC12 and I can't upload my assembly code
>in my EVB (COM2 nor USB BDM multilink).
>
>My EVB jumpers are setted:
>RX_EN: In
>RTS_EN: Open
>CTS_EN: Open
>MODA: 5V
>MODB: 5V
>MODC: gnd
>OSC_SEL1: EXTERNAL
>OSC_SEL2: EXT_CLOCK
>SW1_EN: In
>
>I change MODC to +5V when BDM USB is used, as writted in board user
>manual, but I haven't any success. There is no comunication between
>EVB and my PC.
>
>I'm usin Metrowerks Code Warrior software and True-Time Simulator &
>Real-Time Debugger.
>
>Could someone give a help on this?
>
>Thanks >
>Yahoo! Groups Links >
>




A few thoughts..

Do you have all the correct BDM drivers installed?
Do you have the usb updates for codewarrior?
Are both lights on the BDM box lit up when its connected to the
computer and the board?



Thanks, joss

Once installed the correct drivers, I see my board 'talking'.

But another question: I've tried communicate PC and HC12 by COM port,
but I've had bad results.

On "True-Time Simulator & Real-Time Debugger" I clicl on Component ->
Set Target and on the dialog box in 'Target Interface' I
choose 'Motorola Motosil Target Interface'. Neither COM1 and COM2 works
properly. Is it selected correctly my interface communication protocol?

Best regards, --- In 68HC12@68HC..., "joss_scholten2000"
<joss_scholten2000@y...> wrote:
>
> A few thoughts..
>
> Do you have all the correct BDM drivers installed?
> Do you have the usb updates for codewarrior?
> Are both lights on the BDM box lit up when its connected to the
> computer and the board?
>





Hi.

Choose "HCS12 Serial Monitor".

However, if you already contacted the board in BDM, you might have erased
the monitor stored in flash. The monitor code should be available from the
Axiom CD-ROM matching the board.
But you do not need it, if you debug in BDM.

Regards,
Gilles At 11:19 AM 11/3/2005, you wrote:
>Thanks, joss
>
>Once installed the correct drivers, I see my board 'talking'.
>
>But another question: I've tried communicate PC and HC12 by COM port,
>but I've had bad results.
>
>On "True-Time Simulator & Real-Time Debugger" I clicl on Component ->
>Set Target and on the dialog box in 'Target Interface' I
>choose 'Motorola Motosil Target Interface'. Neither COM1 and COM2 works
>properly. Is it selected correctly my interface communication protocol?
>
>Best regards, >--- In 68HC12@68HC..., "joss_scholten2000"
><joss_scholten2000@y...> wrote:
> >
> > A few thoughts..
> >
> > Do you have all the correct BDM drivers installed?
> > Do you have the usb updates for codewarrior?
> > Are both lights on the BDM box lit up when its connected to the
> > computer and the board?
> >Yahoo! Groups Links >
>




Thanks, Gilles.

But what I really want to see my COM port working. I really did what
you wrote; I tried to use BGI and D-Bugger12 target; I closed and
opened RX_EN, RTS_EN, CTS_EN jumpers, but still COM port doesn't work.

What else can I do or try? Downloading some driver from FreeScale? Thanks and best regards --- In 68HC12@68HC..., Gilles Blanquin <gilles.blanquin@f...>
wrote:
>
>
> Hi.
>
> Choose "HCS12 Serial Monitor".
>
> However, if you already contacted the board in BDM, you might have
erased
> the monitor stored in flash. The monitor code should be available
from the
> Axiom CD-ROM matching the board.
> But you do not need it, if you debug in BDM.
>
> Regards,
> Gilles > At 11:19 AM 11/3/2005, you wrote:
> >Thanks, joss
> >
> >Once installed the correct drivers, I see my board 'talking'.
> >
> >But another question: I've tried communicate PC and HC12 by COM
port,
> >but I've had bad results.
> >
> >On "True-Time Simulator & Real-Time Debugger" I clicl on
Component ->
> >Set Target and on the dialog box in 'Target Interface' I
> >choose 'Motorola Motosil Target Interface'. Neither COM1 and COM2
works
> >properly. Is it selected correctly my interface communication
protocol?
> >
> >Best regards,
> >
> >
> >--- In 68HC12@68HC..., "joss_scholten2000"
> ><joss_scholten2000@y...> wrote:
> > >
> > > A few thoughts..
> > >
> > > Do you have all the correct BDM drivers installed?
> > > Do you have the usb updates for codewarrior?
> > > Are both lights on the BDM box lit up when its connected to the
> > > computer and the board?
> > >
> >
> >
> >
> >
> >
> >
> >
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
>





Hi.

If you want to see the COM port working, I propose you to write an
application sending ascii bytes, link your board to the PC with a serial
cable, open a terminal window and check the text.

On another side, your chip might be blank => no chance to run any flashed
Serial Monitor => nothing on COM port.

If now you want to get the Serial Monitor up and running, if your board got
designed by Axiom, you can contact <support@supp...> (http://www.axman.com).
I could not find the file to download for this board on their web page.

Otherwise:

http://www.freescale.com/files/microcontrollers/doc/app_note/AN2548.pdf

On freescale site, you also should be able to download:

AN2548SW1.zip
AN2548SW2.zip

and then rebuild the Serial Monitor project, then to flash it. http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32&nod
eId62468636K100 Regards,
Gilles
========================================
CodeWarrior Online Community and Support
========================================

<http://www.codewarrior.com/community> features the ability to submit and
track service requests online and to search the CodeWarrior Knowledge Base,
as well as participate in online developer forums (open to everyone).
Community: <http://www.codewarrior.com/community
At 04:47 PM 11/4/2005, you wrote:
>Thanks, Gilles.
>
>But what I really want to see my COM port working. I really did what
>you wrote; I tried to use BGI and D-Bugger12 target; I closed and
>opened RX_EN, RTS_EN, CTS_EN jumpers, but still COM port doesn't work.
>
>What else can I do or try? Downloading some driver from FreeScale? >Thanks and best regards >--- In 68HC12@68HC..., Gilles Blanquin <gilles.blanquin@f...>
>wrote:
> >
> >
> > Hi.
> >
> > Choose "HCS12 Serial Monitor".
> >
> > However, if you already contacted the board in BDM, you might have
>erased
> > the monitor stored in flash. The monitor code should be available
>from the
> > Axiom CD-ROM matching the board.
> > But you do not need it, if you debug in BDM.
> >
> > Regards,
> > Gilles
> >
> >
> > At 11:19 AM 11/3/2005, you wrote:
> > >Thanks, joss
> > >
> > >Once installed the correct drivers, I see my board 'talking'.
> > >
> > >But another question: I've tried communicate PC and HC12 by COM
>port,
> > >but I've had bad results.
> > >
> > >On "True-Time Simulator & Real-Time Debugger" I clicl on
>Component ->
> > >Set Target and on the dialog box in 'Target Interface' I
> > >choose 'Motorola Motosil Target Interface'. Neither COM1 and COM2
>works
> > >properly. Is it selected correctly my interface communication
>protocol?
> > >
> > >Best regards,
> > >
> > >
> > >--- In 68HC12@68HC..., "joss_scholten2000"
> > ><joss_scholten2000@y...> wrote:
> > > >
> > > > A few thoughts..
> > > >
> > > > Do you have all the correct BDM drivers installed?
> > > > Do you have the usb updates for codewarrior?
> > > > Are both lights on the BDM box lit up when its connected to the
> > > > computer and the board?
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >Yahoo! Groups Links
> > >
> > >
> > >
> > >
> >Yahoo! Groups Links >
>




Assuming you have Codewarrior, one of those sample programs has the
GETCHR and PUTCHR functions written for the 6812. You could just copy
those routines and use them in your program. Then, just use
Hyperterminal on the PC side to see if you're sending anything out of
the COM port.
S. Prince

Gilles Blanquin wrote:

>Hi.
>
>If you want to see the COM port working, I propose you to write an
>application sending ascii bytes, link your board to the PC with a serial
>cable, open a terminal window and check the text.
>
>On another side, your chip might be blank => no chance to run any flashed
>Serial Monitor => nothing on COM port.
>
>If now you want to get the Serial Monitor up and running, if your board got
>designed by Axiom, you can contact <support@supp...> (http://www.axman.com).
>I could not find the file to download for this board on their web page.
>
>Otherwise:
>
>http://www.freescale.com/files/microcontrollers/doc/app_note/AN2548.pdf
>
>On freescale site, you also should be able to download:
>
>AN2548SW1.zip
>AN2548SW2.zip
>
>and then rebuild the Serial Monitor project, then to flash it. >http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC9S12C32&nod
>eId62468636K100 >Regards,
>Gilles >
>========================================
>CodeWarrior Online Community and Support
>========================================
>
><http://www.codewarrior.com/community> features the ability to submit and
>track service requests online and to search the CodeWarrior Knowledge Base,
>as well as participate in online developer forums (open to everyone).
>Community: <http://www.codewarrior.com/community >
>At 04:47 PM 11/4/2005, you wrote: >>Thanks, Gilles.
>>
>>But what I really want to see my COM port working. I really did what
>>you wrote; I tried to use BGI and D-Bugger12 target; I closed and
>>opened RX_EN, RTS_EN, CTS_EN jumpers, but still COM port doesn't work.
>>
>>What else can I do or try? Downloading some driver from FreeScale?
>>
>>
>>Thanks and best regards
>>
>>
>>--- In 68HC12@68HC..., Gilles Blanquin <gilles.blanquin@f...>
>>wrote:
>>
>>
>>>Hi.
>>>
>>>Choose "HCS12 Serial Monitor".
>>>
>>>However, if you already contacted the board in BDM, you might have
>>>
>>>
>>erased
>>
>>
>>>the monitor stored in flash. The monitor code should be available
>>>
>>>
>>from the >>>Axiom CD-ROM matching the board.
>>>But you do not need it, if you debug in BDM.
>>>
>>>Regards,
>>>Gilles
>>>
>>>
>>>At 11:19 AM 11/3/2005, you wrote:
>>>
>>>
>>>>Thanks, joss
>>>>
>>>>Once installed the correct drivers, I see my board 'talking'.
>>>>
>>>>But another question: I've tried communicate PC and HC12 by COM
>>>>
>>>>
>>port,
>>
>>
>>>>but I've had bad results.
>>>>
>>>>On "True-Time Simulator & Real-Time Debugger" I clicl on
>>>>
>>>>
>>Component ->
>>
>>
>>>>Set Target and on the dialog box in 'Target Interface' I
>>>>choose 'Motorola Motosil Target Interface'. Neither COM1 and COM2
>>>>
>>>>
>>works
>>
>>
>>>>properly. Is it selected correctly my interface communication
>>>>
>>>>
>>protocol?
>>
>>
>>>>Best regards,
>>>>
>>>>
>>>>--- In 68HC12@68HC..., "joss_scholten2000"
>>>><joss_scholten2000@y...> wrote:
>>>>
>>>>
>>>>>A few thoughts..
>>>>>
>>>>>Do you have all the correct BDM drivers installed?
>>>>>Do you have the usb updates for codewarrior?
>>>>>Are both lights on the BDM box lit up when its connected to the
>>>>>computer and the board?
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
>>
>>
>>
>>
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
> >Yahoo! Groups Links >
>