USBHS on K26 about 0N65N Mask-Errata #e9712 (unlocking USBPHYPLL if MCG_C2[EREFS]= 0)

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

USBHS on K26 about 0N65N Mask-Errata #e9712 (unlocking USBPHYPLL if MCG_C2[EREFS]= 0)

Jump to solution
804 Views
Sedorf
Contributor III

In my project the OSC is working with a 24MHz crystal, therefore MCG_C2[EREFS]= 1, but the routine builded in MCUXpresso 11.10.0 [build 3148] with SDK v.2.11.0 m.v.3.9.0 fall in infinite loop /* Wait for lock. */ even if crystal otion OSC selected (MCG_C2[EREFS]= 1):

/*FUNCTION**********************************************************************

*

* Function Name : CLOCK_CONFIG_EnableUsbhs0PhyPllClock

* Description : This function enables the internal 480MHz USB PHY PLL clock.

* Param src : USB HS PHY PLL clock source.

* Param freq : The frequency specified by src.

*

*END**************************************************************************/

static void CLOCK_CONFIG_EnableUsbhs0PhyPllClock(uint32_t freq) {

 

[..]

USBPHY->PLL_SIC &= ~USBPHY_PLL_SIC_PLL_BYPASS_MASK; /* Clear bypass bit */

USBPHY->CTRL &= ~USBPHY_CTRL_CLKGATE_MASK; /* Clear to 0U to run clocks */

 

/* Wait for lock. */

while (!(USBPHY->PLL_SIC & USBPHY_PLL_SIC_PLL_LOCK_MASK))

{

}

 

The workaround suggested in 0N65N Mask-Errata #e9712 not run.. possible?

Suggestions?

Tags (1)
0 Kudos
Reply
1 Solution
753 Views
Sedorf
Contributor III

Solved!

Both VREGIN0/1 are without supply, this make difficult to USB PHY operate!

View solution in original post

0 Kudos
Reply
2 Replies
754 Views
Sedorf
Contributor III

Solved!

Both VREGIN0/1 are without supply, this make difficult to USB PHY operate!

0 Kudos
Reply
744 Views
Sedorf
Contributor III
..and VBUS1 withou supply!
0 Kudos
Reply