Load Code in 68EVB9SC32

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load Code in 68EVB9SC32

2,270 Views
khumphri
NXP Employee
NXP Employee

This message contains an entire topic ported from a separate forum. The original message and all replies are in this single message. We have seeded this new forum with selected information that we expect will be of value to you as you search for answers to your questions.

 

Posted: Mon Oct 31, 2005  4:51 pm

 

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 set:

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 using Metrowerks Code Warrior software and True-Time Simulator & Real-Time Debugger.

 

Could someone give a help on this?

 


 

Date: Tue Nov 1, 2005  8:28 am

 

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,

 


 

Date: Thu Nov 3, 2005  5:38 am

 

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?

 


 

Date: Thu Nov 3, 2005  10:19 am

 

Thanks.

 

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,

 


 

Date: Thu Nov 3, 2005  11:28 am

 

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,

 


 

Date: Fri Nov 4, 2005  3:47 pm

 

Thanks.

 

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

 


 

Date: Mon Nov 7, 2005  2:54 pm

 

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@...> (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&nodeId=0162468636K100

 

Regards,

 


 

Date: Mon Nov 7, 2005  7:12 pm

 

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.

Labels (1)
0 Kudos
Reply
0 Replies