Tower K40 + SERIAL Card + USB CDC

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Tower K40 + SERIAL Card + USB CDC

1,178件の閲覧回数
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 件の賞賛
4 返答(返信)

617件の閲覧回数
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 件の賞賛

617件の閲覧回数
emh203
Contributor II

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

0 件の賞賛

617件の閲覧回数
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 件の賞賛

617件の閲覧回数
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 件の賞賛