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

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

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

跳至解决方案
806 次查看
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?

标记 (1)
0 项奖励
回复
1 解答
755 次查看
Sedorf
Contributor III

Solved!

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

在原帖中查看解决方案

0 项奖励
回复
2 回复数
756 次查看
Sedorf
Contributor III

Solved!

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

0 项奖励
回复
746 次查看
Sedorf
Contributor III
..and VBUS1 withou supply!
0 项奖励
回复