void CH57X_BLEInit( void )
{
uint8 i;
bleConfig_t cfg;
if( tmos_memcmp( VER_LIB,VER_FILE,strlen(VER_FILE)) == FALSE ){
PRINT("head file error...\n");
while(1);
}
R8_SAFE_ACCESS_SIG = SAFE_ACCESS_SIG1;
R8_SAFE_ACCESS_SIG = SAFE_ACCESS_SIG2;
PRINT("why?\n"); // 加上就正常,去掉就崩溃
R16_CLK_SYS_CFG = RB_CLK_OSC32M_XT|(2<<6)|0x08; // 32M -> Fsys
R8_SAFE_ACCESS_SIG = 0;
如上,在ble初始化方法里,加上PRINT("why?\n")就正常,去掉就崩溃。