BDM multilink does not communicate with target board

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

BDM multilink does not communicate with target board

Jump to solution
9,350 Views
narayanansubram
Contributor II

I bought by mistake a couple of years back, PEMicro BDM multilink. Now I tried to program a brand new MC9S08SE8. I used Codewarrior v6.3 to program the chip on my circuit board. The chip uses internal clock. When I tried, Codewarrior tried to get the clock frequency and displayed 0 Hz. Then it gave the error message "cannot enter background debug mode. The window opened by the debugger for USB connection said that it is unable to communicate with the target. The blue light on the BDM multilink is on but the yellow light does not come on. I tried removing Codewarrior, removing associated dll and then reinstall codewarrior. Still it would not work. Can anyone guide me as to what I should do?

Labels (1)
Tags (3)
1 Solution
2,460 Views
tom_thompson
Contributor III

Try the following:

1) Download the latest multlink drivers from P&E Microsystems at www.pemicro.com. Do not install it just yet.

2) With the board plugged in, Go to the Windows Device Manager and find the Jungo driver. Remove or disable it.

3) Unplug the board. Install the the P&E multilink driver software.

4) Plug in the board. You should have Windows say that it recognizes new hardware. When it wants to find the drivers, say no to Internet and yes to search your machine. This should install the proper driver from the P&E installation.

5) At this point, the hardware should be properly recognized. If not, unplug the board and plug it back in again. It should recognize the board and the yellow LED should light up.

---Tom

View solution in original post

11 Replies
2,460 Views
anjum
Contributor II

hello friends,

iam trying to program MK60FX512VLQ12 processor using multilink universal fx jtag.But iam getting  the error "Can not enter background mode     Unable to initialize PEDebug          PE-ERROR: Failed to Initialize Target.How can i rectify this problem.Please help

0 Kudos
2,460 Views
Jack_at_Oxigraf
Contributor III

Even though the answer marked correct is good info,  it was not the solution.

The one mentioning Power from your target board is the correct one, as you said that you did not know and when you powered your target, it worked.

  So you should change  that to the "Correct Answer"  and the other about re installing to "helpful"

0 Kudos
2,460 Views
tektronix
Contributor II

I tried flashing a code in internal flash it is download but when now i try to connect to the board it says

CAnnot enter background mode. Is there a problem to burn to Flash? I read on forum that driver may be a problem. But I checked drivers are ok I believe that after burning in flash some thing is holding flash. I am using TRK-USB-MPC5643L

flash problem.jpg

0 Kudos
2,460 Views
tom_thompson
Contributor III

The lack of a yellow light indicates a driver/communications failure. When you connect the computer to the board via USB cable, does Windows display a notice that it has recognized the USB hardware?

---Tom

0 Kudos
2,460 Views
narayanansubram
Contributor II

Tom,

I am using CodeWarrior Development Studio v6.3 on windows XP. When I clicked on the debugger on it, I got the PEMicro Connection manager window which displayed the following:

Interface - USB HCS08/HCS12/CFV1 Multilink – USB Port.

Port – USB-ML-12-RevC on USB1 (Name = PE5515881) (autodetect)

When I pressed “Refresh”, it scaned and gave the same information. So the Computer is recognizing the USB Multilink Interface.

I selected the USB BDM Multilink to supply power to the chip. The chip is on a breadboard with just 4 lines coming out – VDD (pin 5 of MC9S08SE8), Gnd (pin 8), Reset (pin 3) and BGND (pin 4). This I connected to the ribbon cable from USB BDM Multilink. When I pressed “Connect (Reset)”, on CodeWarrior command window, I got the message “Frequency change to ~ 0hz” about 4 or 5 times and then gave the error message “can not enter background mode”. On the PEMicro connection manager window, I got the message “can’t communicate with the target processor. Please check your connections between the cable and the target and make sure the target has power”.

So looks like probably the dll for interpreting the signal from the chip is corrupted. I tried with 2 new chips and the results are the same. I even reinstalled CodeWarrior Development Studio.

with regards,

Narayanan Subramanian

VP., R&D

Invention Dynamics, LLC

www.invention-dynamics.com

(678)343-7039

From: tom_thompson

Sent: Monday, October 01, 2012 8:46 AM

To: Narayanan Subramanian

Subject: Re: 8-bit Microcontrollers - BDM multilink does not communicate with target board

Freescale Community

BDM multilink does not communicate with target board

created by tom_thompson in 8-bit Microcontrollers - View the full discussion

0 Kudos
2,461 Views
tom_thompson
Contributor III

Try the following:

1) Download the latest multlink drivers from P&E Microsystems at www.pemicro.com. Do not install it just yet.

2) With the board plugged in, Go to the Windows Device Manager and find the Jungo driver. Remove or disable it.

3) Unplug the board. Install the the P&E multilink driver software.

4) Plug in the board. You should have Windows say that it recognizes new hardware. When it wants to find the drivers, say no to Internet and yes to search your machine. This should install the proper driver from the P&E installation.

5) At this point, the hardware should be properly recognized. If not, unplug the board and plug it back in again. It should recognize the board and the yellow LED should light up.

---Tom

2,460 Views
narayanansubram
Contributor II

Thanks Tom. I reinstalled the driver and then it started working.

with regards,

Narayanan Subramanian

VP., R&D

Invention Dynamics, LLC

www.invention-dynamics.com

(678)343-7039

From: tom_thompson

Sent: Wednesday, October 03, 2012 7:45 AM

To: Narayanan Subramanian

Subject: Re: https://community.freescale.com/8-bit Microcontrollers - BDM multilink does not communicate with target board

            Freescale Community

            BDM multilink does not communicate with target board

            created by tom_thompson in 8-bit Microcontrollers - View the full discussion

2,460 Views
eckhard
Contributor V

Hello,

the blue LED is for the connection to the PC.

The yellow LED shows if target power is detected.

It seems that the BDM connector is not connected the right way, see recomended System connections on page 23 of the reference Manual.

Because the BKGD Pin is  shared with PTA4, there may be the need for a power cycle before entereing Backgraund Debug.

Eckhard

0 Kudos
2,460 Views
narayanansubram
Contributor II

Hello Eckhard,

I am using CodeWarrior Development Studio v6.3 on windows XP. When I clicked on the debugger on it, I got the PEMicro Connection manager window which displayed the following:

Interface - USB HCS08/HCS12/CFV1 Multilink – USB Port.

Port – USB-ML-12-RevC on USB1 (Name = PE5515881) (autodetect)

When I pressed “Refresh”, it scaned and gave the same information. So the Computer is recognizing the USB Multilink Interface.

I selected the USB BDM Multilink to supply power to the chip. The chip is on a breadboard with just 4 lines coming out – VDD (pin 5 of MC9S08SE8), Gnd (pin 8), Reset (pin 3) and BGND (pin 4). This I connected to the ribbon cable from USB BDM Multilink. When I pressed “Connect (Reset)”, on CodeWarrior command window, I got the message “Frequency change to ~ 0hz” about 4 or 5 times and then gave the error message “can not enter background mode”. On the PEMicro connection manager window, I got the message “can’t communicate with the target processor. Please check your connections between the cable and the target and make sure the target has power”.

After seeing your email, I switched the connections on the ribbon cable so that connections on pins 1,3 and 5 on the ribbon cable from USB BDM Multilink are now pins 2, 4 and 6 (since power and ground are only on pins 2 and 6, this should not damage the chip) and pin 1 on BDM multilink is now pin 2. Still I got the same result.

So looks like probably the dll for interpreting the signal from the chip is corrupted. I tried with 2 new chips and the results are the same. I even reinstalled CodeWarrior Development Studio.

with regards,

Narayanan Subramanian

VP., R&D

Invention Dynamics, LLC

www.invention-dynamics.com

(678)343-7039

From: Eckhard Gosch

Sent: Tuesday, October 02, 2012 8:24 AM

To: Narayanan Subramanian

Subject: Re: https://community.freescale.com/8-bit Microcontrollers - BDM multilink does not communicate with target board

            Freescale Community

            BDM multilink does not communicate with target board

            created by Eckhard Gosch in 8-bit Microcontrollers - View the full discussion

0 Kudos
2,460 Views
kef
Specialist I

Narayanan,

USB Multilink can't power any board. VDD pin on Multilink connector is there not to supply your board, but to sense supply voltage and provide voltage level conversion between your board and Multilink.

I think supply target checkbox is relevant when using P&E Cyclone.

0 Kudos
2,460 Views
narayanansubram
Contributor II

Thanks Edward. I did not know that the USB link cannot provide power since the unit for mon08 can. I reinstalled the driver, provided power to the chip and it works.

with regards,

Narayanan Subramanian

VP., R&D

Invention Dynamics, LLC

www.invention-dynamics.com

(678)343-7039

From: Edward Karpicz

Sent: Tuesday, October 02, 2012 2:30 PM

To: Narayanan Subramanian

Subject: Re: https://community.freescale.com/8-bit Microcontrollers - BDM multilink does not communicate with target board

            Freescale Community

            BDM multilink does not communicate with target board

            created by Edward Karpicz in 8-bit Microcontrollers - View the full discussion

0 Kudos