USB CDC failed when MCF51JM128 enters wait mode without BDM

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

USB CDC failed when MCF51JM128 enters wait mode without BDM

679 Views
z3
Contributor II

We are using CMX USB-lite CDC driver on the ColdFire chip. With the BDM and Hiwave debugger running, the USB code works in wait mode. But without the BDM, the Host PC still enumerates our device but the COM port cannot be used. With BDM, our device draws 10mA more current which leads me to believe the MCU is still clocked. In fact, Ref. Manual says the MCU is clocked in stop modes if XCSR[BDMEN] bit is set.

 

We could not find anything that says definitely USB does or does not work in wait mode.

Labels (1)
0 Kudos
2 Replies

392 Views
gustavod
Contributor III

 

I forgot to say that to activate the "wait mode " is necessary to change the define DEBUG from 0 to 1 in the BRTOSConfig.h file.

0 Kudos

392 Views
gustavod
Contributor III

Hi z3,

 

We are facing very same problem. The reference manual said that USB is clocked in wait mode.

Anyone faced the same problem?

We are testing the code in the Freescale TWR-LCD kit. The source code is available in:

http://brtos.googlecode.com/files/TWR-LCD-FatFS.rar

 

This is a demo of BRTOS (real-time operating system) with eGUI, FAT32, SD card and CMX USB stack with CDC class (serial terminal).

0 Kudos