usb_host_register_driver_info

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

usb_host_register_driver_info

跳至解决方案
1,335 次查看
adyr
Contributor V

Hi,

I think there is a problem with either the PEx for the KSDK or the KSDK. I added the usb_framework component to my project (created with PEx + KSDK + MQX for the K64FN1M0VLQ12 processor) and generated the code. In Components_Init the following two lines were added:

  (void)usb_host_init(USBFMW1_USB_CONTROLLER_ID, &usbFmw1_Handler);
  (void)usb_host_register_driver_info(USBFMW1_USB_CONTROLLER_ID, (void *)usbFmw1_DriverInfoTable);

but I think that should be:

  (void)usb_host_init(USBFMW1_USB_CONTROLLER_ID, &usbFmw1_Handler);
  (void)usb_host_register_driver_info(usbFmw1_Handler, (void *)usbFmw1_DriverInfoTable);

E.g. the second line should have the usbFmw1_Handler as the first parameter and not the USBFMW1_USB_CONTROLLER_ID.

It also appears there are issues with the task priority levels as the default ones are too high once the OSA has added 7 to them. I have had to reduce them to 5 (one in the Host mode settings section plus a couple in the usb framework code).

Is it likely that future KSDK / PEx updates will make it easier to add a file system and HID stubs to the USB host mode and fully implement the hub, etc?

Best regards,
Adrian.

标签 (1)
1 解答
1,041 次查看
vfilip
NXP Employee
NXP Employee

Hello,

fix of 2nd issue is part of Processor Expert support for Kinetis SDK 1.2.0.

We are sorry for inconvenience.

Best regards

Vojtech Filip

在原帖中查看解决方案

3 回复数
1,041 次查看
DavidS
NXP Employee
NXP Employee

Hi Adrian,

The task priority issue is know and has been fixed and will be in the next release.

I'll inquire about the incorrect parameter for the usb_host_register_driver_info() call.

Thank you for posting.

Regards,

David

1,042 次查看
vfilip
NXP Employee
NXP Employee

Hello,

fix of 2nd issue is part of Processor Expert support for Kinetis SDK 1.2.0.

We are sorry for inconvenience.

Best regards

Vojtech Filip

1,041 次查看
adyr
Contributor V

Both issues are now fixed in KSDK 1.2. Wish I could set "Correct Answer" for both answers.

Thank you.

0 项奖励
回复