Tower K40 + SERIAL Card + USB CDC

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

Tower K40 + SERIAL Card + USB CDC

1,274 Views
emh203
Contributor II

Has anyone gotten the USB device function to work yet?   I am using a K40 Tower with the serial card.   WHen I run the USB_CDC example all I can ever get is "USB device not recognized".

 

 

Also, I am using the Codewarrior based exampled.

 

Any pointers?

0 Kudos
Reply
4 Replies

713 Views
gustavod
Contributor III

Hi emh203,

 

I'm using CDC in the TWR-K60N512 (K60) and KwikStik (K40) kits. It is working perfect on Codewarrior 10.1.

 

You can download the code here:

http://code.google.com/p/brtos/downloads/list

 

The project for the K40 (KwikStik) is this:

http://brtos.googlecode.com/files/BRTOS%201.6x%20K40%20-%20SD%20card.rar

 

Regards,

Gustavo

0 Kudos
Reply

713 Views
emh203
Contributor II

Do you by chance have a non RTOS example?   You you ever seen the freescale supplied example work?

0 Kudos
Reply

713 Views
gustavod
Contributor III

I do not have a non RTOS example ready to go.

 

However, you can use the code provided in the demo without BRTOS. For that you must remove the other tasks and use the USB task as the main. In this case you must substitute the RTOS queue by one developed by you (or just make an ping-pong test).

0 Kudos
Reply

713 Views
mjbcswitzerland
Specialist V

Hi

 

I can also run this demo on the K40 tower board: http://www.youtube.com/watch?v=H4TYM9jY2-g

 - the code is not exactly the same since the clock needs to be configured for 8 MHz crystal rather than 25MHz external clock on the K60 but other than that it is identical.

 

Regards

 

Mark

P.S. Make sure that the serial board is not inserted incorrectly 180° since it is easy to do and then neither UART nor USB work.

0 Kudos
Reply