nxp-mcuxpresso/mcux-sdk

[BUG] CLOCK_EnableUsbhs0/1PhyPllClock uses PWD_SET instead of PWD register

Closed this issue · 2 comments

The CLOCK_EnableUsbhs0PhyPllClock and CLOCK_EnableUsbhs1PhyPllClock functions try to set the PWD of the USBPHY to 0 with lines like this:

USBPHY1->PWD_SET  = 0x0;

This won't have an effect because the PWD_SET register is used. Instead either PWD should be set to 0 or PWD_CLR should be set to 0xffffffff.

The lines are here:

USBPHY1->PWD_SET = 0x0;

USBPHY2->PWD_SET = 0x0;

Thanks for reporting the issue, already asked development team to check, reply could be delayed.

The issue has been fixed in latest main branch, which integrate the MCUX_2.14.0 release update.
I see the PWD register operation is removed.

bool CLOCK_EnableUsbhs0PhyPllClock(clock_usb_phy_src_t src, uint32_t freq)