USB min frequency

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,116件の閲覧回数
martindusek
Contributor V

Hello,

what's the min CPU frequency Freesscale bare metal USB stack (namely generic HID device) can reliably run on KL26?

I clock USB module 48 MHz.

When I compile my C code without optimization and CPU runs on 12 MHz I mainly get "USB device not recognized" error in Windows when I connect my device to PC (90% probability I will get the error)

No optimization and 24 Mhz CPU leads to "USB device cannot start, Code 10" in Windows (10 % probabality I will get the error)

Optimization and 12 MHz CPU leads to "USB device cannot start, Code 10" in Windows (10 % probabality I will get the error)

Optimization and 24 Mhz leads to no error.

ラベル(1)
0 件の賞賛
返信
1 解決策
982件の閲覧回数
mjbcswitzerland
Specialist V

Hi

pastedImage_0.png

When I run the uTasker USB-HID mouse on the FRDM-KL26Z I can set the system clock to 24MHz and the Flash/Bus clocks to 3MHz and build with GCC with no optimisation and it operates normally (connected >20 times without any errors). Generally there shouldn't be much time critical with the enumeration process.

Regards

Mark

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
983件の閲覧回数
mjbcswitzerland
Specialist V

Hi

pastedImage_0.png

When I run the uTasker USB-HID mouse on the FRDM-KL26Z I can set the system clock to 24MHz and the Flash/Bus clocks to 3MHz and build with GCC with no optimisation and it operates normally (connected >20 times without any errors). Generally there shouldn't be much time critical with the enumeration process.

Regards

Mark

0 件の賞賛
返信