USBPHY and USBHS in demo for USB audio device

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

USBPHY and USBHS in demo for USB audio device

跳至解决方案
569 次查看
carlocaione
Contributor II

I noticed that the usb_device_audio_generator demo is not actually configuring the USBPHY and USBHS clocks (at least looking at the clock configuration tool). Is this expected?

I'm using this demo as starting point for a project (USB audio device / UAC2) and I'm trying to understand whether I have to do that or that is not necessary.

Thanks.

标签 (1)
0 项奖励
回复
1 解答
526 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @carlocaione,

You are correct, the required USB clocks are not enabled using ConfigTools. If they were, their respective code would be present on the BOARD_InitBootClocks() routine on the very top of the main function. However, the clocks for our USB example codes are initialized later on the execution. In this case, they get initialized during the APPInit() routine, using a function called USB_DeviceClockInit(). Please look into this function and let me know if you have further inquiries about this topic.

BR,
Edwin.

在原帖中查看解决方案

1 回复
527 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @carlocaione,

You are correct, the required USB clocks are not enabled using ConfigTools. If they were, their respective code would be present on the BOARD_InitBootClocks() routine on the very top of the main function. However, the clocks for our USB example codes are initialized later on the execution. In this case, they get initialized during the APPInit() routine, using a function called USB_DeviceClockInit(). Please look into this function and let me know if you have further inquiries about this topic.

BR,
Edwin.