CW10.5 debug problem >  Cannot enter background mode. Check connections.

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

CW10.5 debug problem >  Cannot enter background mode. Check connections.

Jump to solution
2,484 Views
cavebiker
Contributor V

I just installed 10.5 and when I try to debug, everything looks good until the end when I get these messages, and then it pukes:

INF: Cannot enter background mode. Check connections. 

ERR: Error Erasing flash of device

ERR: Error occured during Flash programming.

 

Everything works with CW10.3 with the same setup.

 

Has anyone else had this issue? If so, how did you solve it?

 

Thank you in advance,

Tom

Labels (1)
Tags (3)
1 Solution
1,260 Views
panpwr
Contributor IV

Something that worked for me:

Debug configurations->in "Target settings" choose your connection and "Edit"->in "target Communication Speed" check the "Delay after reset..."  checkbox, and add some delay (I've added 50mSec).

It allows the chip enough time to reset and enter background mode.

I hope it'll help you as well.

Lior.

View solution in original post

0 Kudos
10 Replies
1,261 Views
tektronix
Contributor II

Something weird happened with me. I tried burning to flash the code was burnt sucessfully but now when i try to again connect to the board it says cannot enter in background mode. Can you please help me with that?

I read your blod too but that did not help

Figure is attacjed flash problem.jpg

0 Kudos
1,261 Views
trytohelp
NXP Employee
NXP Employee

Hi,

Do you reproduce the problem with a sample project created with the project wizard for your hardware config (Board+interface) ?

The example project will include all default settings.

With this example you should be able to load and flash the application using the debug, Flash File to Target, etc ...

If this example is running fine, this means you've a problem with your project else it could be a hardware problem.

Regards

Pascal

0 Kudos
1,261 Views
tektronix
Contributor II

Hello Pascal

It is hardware problem I erased Sensorship information that was the cause of this behaviour.

0 Kudos
1,261 Views
panpwr
Contributor IV

Something that worked for me:

Debug configurations->in "Target settings" choose your connection and "Edit"->in "target Communication Speed" check the "Delay after reset..."  checkbox, and add some delay (I've added 50mSec).

It allows the chip enough time to reset and enter background mode.

I hope it'll help you as well.

Lior.

0 Kudos
1,261 Views
cavebiker
Contributor V

Hey panpwr,

I went back to the project I originally had this problem with and it was still a problem. I added this delay you speak about and that fixed that problem. SUPER!

Thanks again

Tom

1,261 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Tom:

What target MCU are you trying to program?

What debugging probe are you using, Multilink, Universal Multilink, FX, OSBDM?

If the same setup works with CW10.3, then it sounds to me like the problem might be the drivers.

Please check the next link, especially the post marked as "Correct answer" from tom_thompson:

BDM multilink does not communicate with target board

Next blog could also be useful for you from MCU on Eclipse blog by Erich Styger:

http://mcuoneclipse.com/2012/10/12/fixing-the-usb-drivers/

Hope this helps. If not please provide more details.

Regards!

Jorge González

0 Kudos
1,261 Views
cavebiker
Contributor V

Thanks a ton Jorge for the rapid response.

My target MCU is a Kinetics K20DX

I am using a PE Micro MultiLink universal

I tried downloading new P&E Multilink drivers as the link you provided suggests, I followed all the procedures in the link. It still acts the same and does not work

Thanks again :smileyplain:

Tom

0 Kudos
1,261 Views
trytohelp
NXP Employee
NXP Employee

Hi Tom,

I've the TWR-K20D72M with a PK20DX256.

I've installed the MCU v10.3 and MCU V10.5.

I've created for each version an example with the wizard for this board/device.

I've a P&E Multilink Universal rev B interface.

I'm able to launch the debugger on MCU v10.3 and MCU V10.5.

Attached you will find the project example I'm using.

Below the driver version used:

pastedImage_0.png

hope this will help you.

Pascal

0 Kudos
1,261 Views
Rick_Li
NXP Employee
NXP Employee

hi Tom,

can you please try to update your driver by following the below steps:

1) connect your P&E Multilink to PC and then right click "My Computer" icon from desktop to launch System Properties, then -> Device Manager

2) Expand item 'Jungo', right click USB Multilink 2.0 (should be this name) to Uninstall it.

3) re-connect your P&E Multilink and let the PC install the software automatically.

4) follow the instruction and select USB Multilink 2.0 11.1.0.0...oem116.inf to install.

if the above does not help, then, I would also recommend updating the firmware of Multilink.

the updater can be get from below link:

P&E Microcomputer Systems

please select "Kinetis" for  "3. select Architecture to support" to upate.

hope it helps!

1,261 Views
cavebiker
Contributor V

That did it, I'm In!

I guess what I didn't do was un-install the USB Multilink 2.0, I just disabled it.

Thanks a ton Yong Li :smileyhappy: And thanks to all the rest for helping out also.

Freescale Community Rocks

Cheers, Tom

0 Kudos