-
GD芯片调试无法跳到main
staticvoidsystem_clock_72m_hxtal(void){uint32_ttimeout=0U;uint32_tstab_flag=0U;/*enableHXTAL*/RCU_CTL0|=RCU_CTL0_HXTALEN;/*waituntilHXTALisstableorthestartuptimeislongerthanHXTAL_STARTUP_TIMEOUT*/do{timeout++;stab_flag=(RCU_CTL0&RCU_CTL0_HXTALSTB);}while((0U==stab_flag)&&(HXTAL_STARTUP_TIMEOUT!=timeout));一直在等待HXTAL时钟稳定
2020-12-29 1