USB Multilink

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

USB Multilink

11,975 Views
Batscap
Contributor I
Hello,
 
I have a problem when i connect my usb multilink with my µ, the message:
"Error can not background mode"
 
Can you explain me this ?
 
Thanks
Labels (1)
0 Kudos
Reply
14 Replies

2,375 Views
RedMountain
Contributor I
More information would be very helpful in making us able to help you. A few basic things to check right off the bat:

- Check that your chip is properly powered. (To begin with, just make sure that it's plugged in. Later, if it is still misbehaving, you could also check the power connections going into the mcu with a multimeter to make sure that it isn't a board fab issue)

- Check that the multilink is properly connected, and drivers are installed. When it is connected to the computer and drivers are running, the blue LED should come on. Later, when connected to the chip and the chip is powered, a yellow LED should come on.

- Make sure that you only have one instance of the debugger open at once. The hardware for debugging is locked to the first project that tries to use it, and will refresh for that project. However, if another project is attempting to enter debug, it won't read a multilink pod as being attached.

- If you have access to another multilink pod, try that. If that doesn't work either, then you have largely ruled out the possibility that this is hardware failure on the part of the pod.

Other than that, can you give any more info? The connection manager should come up at the beginning of attempted debugging - does it say anything in red, such as MCU reset line is low or voltage is low?

Good luck, and let us know what you find out.
0 Kudos
Reply

2,375 Views
Cmux
Contributor II

I have made a very simple board consisting of just MC9S08SG8 with its RESET pin pulled up (10k), BKGD pulled up (10k) and a decoupling capacitor (0.1u) across Vdd and GND. Apart from this there is a BDM header through which I am trying to program the microcontroller. While programming the connection manager tells me that the RESET line is low inspite of the pullup I have connected. Is there something more that I need to add to the programming circuit? Another piece of debugging information is that when I connect the programmer to the BDM header, the RESET voltage falls to 0.65V from 5V.

 

Kindly help.

 

-- 

Cmux

0 Kudos
Reply

2,375 Views
peg
Senior Contributor IV

Hello Cmux,

 

Are you using a P&E Multilink (USB-ML-12)?

Are you using Codewarrior on the PC?

Does the yellow LED light when Multilink is plugged in to PC on its own?

Does the blue LED light when the poawered board is then plugged into the Multilink?

Is the Multilink/PC combination known to function with some other device or is this all new to you?

 

0 Kudos
Reply

2,375 Views
Cmux
Contributor II

peg wrote:

Hello Cmux,

 

Are you using a P&E Multilink (USB-ML-12)?

Are you using Codewarrior on the PC?

Does the yellow LED light when Multilink is plugged in to PC on its own?

Does the blue LED light when the poawered board is then plugged into the Multilink?

Is the Multilink/PC combination known to function with some other device or is this all new to you?

 


 

Yes I am using P&E Multilink (USB-ML-12)

Yes I am using CodeWarrior on the PC

The blue light glows when the Multilink is plugged into the PC and the yellow light glows when the powered board is connected to it.

The Multilink/PC combination works with S12P and S12XS microcontrollers which I have been programming successfully since a long time.

 

Any ideas why the connection manager for the programmer shows the MCU reset line to be low and why does the programmer pull the reset line low inspite of a pullup?

 

-- 

Cmux

0 Kudos
Reply

2,375 Views
peg
Senior Contributor IV

Hello Cmux,

 

Woops, I got my LED colours mixed up in my questions.

This seems strange.

Just to check some more:

You power up the device on its own and the reset pin is at 5 volts.

You connect the Multilink and it pulls the reset permanently low.

Then Codewarrior complains about the reset line being low.

Is this correct?

What if you disconnect the reset line and try to connect like this.

Also test the reset line (both sides of break) while trying this.

 

0 Kudos
Reply

2,375 Views
Batscap
Contributor I

On the ICD Connection Manager

CPU : HCS08 Processor autodetected

MCU Reset line : High.

MCU voltage : 4.98V.

Note: failure connecting to device power cycle the hcs08 processor (with debug cable attached) and try connecting again.

 

 

 

 

0 Kudos
Reply

2,375 Views
Batscap
Contributor I
and :
 
Loading Target ...
Windows NT detected.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.28
Frequency change to ~269184hz.
USB HCS08/HCS12 MULTILINK detected - Flash Version 5.28
 
Error: Can not enter background mode .
0 Kudos
Reply

2,375 Views
J2MEJediMaster
Specialist I
I think the board is trying to tell you that the processor can't enter the background debug mode. Check your documentation and board jumpers to see if the board is configured for debug mode.

---Tom
0 Kudos
Reply

2,375 Views
Batscap
Contributor I
I work with the µ but i don't find this family on the CodeWarrior 5.1 family can you explain me ?
0 Kudos
Reply

2,375 Views
Truk
Contributor I

You have to use the MCS08AW32xxx and modify the MC9S08AW32.inc file.

ROMStart is at $0c0000

RAMEnd is at $046F

Thats all.

regards

Truk

 

0 Kudos
Reply

2,375 Views
RedMountain
Contributor I
Yeah, I can't find the MC9S08AW16 as a provided processor setting in Codewarrior either. Which header file are you currently using right now? The header file for the AW32 should be almost, if not exactly, identical.

What are you programming onto the chip and trying to debug? It might be good to try a very simple program that does something like initialize a single port as output and toggle it, just to see if what you are programming is interfering with debugger operation.

Good luck.
0 Kudos
Reply

2,375 Views
admin
Specialist II

I use the -S08AW16, and I think I had the same problem.  Use the -AW32 setting in CodeWarrior, then modify the ROM setting in the project.prm file according to the -AW16's data sheet.

Also, see if the attached helps.  Change the filename to *.ppt

 

-Tomahawk

 

 

Message Edited by t.dowe on 2009-08-31 03:31 PM
0 Kudos
Reply

2,375 Views
RedMountain
Contributor I

Or pdf if you don't have powerpoint:

 

TN247.pdf

Message Edited by t.dowe on 2009-08-31 03:29 PM
0 Kudos
Reply

2,375 Views
mjcoury
Contributor I
Also - try not to put the multilink through a USB hub.. I had erratic behavior having my BDM connected through one.
0 Kudos
Reply