USBPHY and USBHS in demo for USB audio device

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

USBPHY and USBHS in demo for USB audio device

Jump to solution
228 Views
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.

Labels (1)
0 Kudos
1 Solution
185 Views
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.

View solution in original post

1 Reply
186 Views
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.