CC3200莫名其妙的flash的程序坏掉了?
Hi,Ti的工程师
CC3200用了一段时间突然提示这样的错误,
unable to configure network power policy。然后一直就卡在这里,断电重启任然卡在这里,需要重新格式化flash然后全部重烧程序才会恢复正常!
请问这是什么原因造成的?
我有怀疑是不是因为每次上电配置网络参数的时候都会写flash造成的。
我在程序每次初始化网络的时候会调用
/* Set connection policy to Auto connect in */
iRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(1, 0, 0, 0, 0), NULL, 0); if (iRetVal < 0) { UART_PRINT("unable to configure network connect policy\n\r"); LOOP_FOREVER(); }
iRetVal = sl_WlanPolicySet(SL_POLICY_PM, SL_LONG_SLEEP_INTERVAL_POLICY, (_u8 *)PolicyBuff, sizeof(PolicyBuff)); if (iRetVal < 0) { UART_PRINT("unable to configure network power policy\n\r"); LOOP_FOREVER(); }
ucPower = 5;
iRetVal = sl_WlanSet(SL_WLAN_CFG_GENERAL_PARAM_ID, WLAN_GENERAL_PARAM_OPT_STA_TX_POWER, 1, (unsigned char *)&ucPower); if (iRetVal < 0) { UART_PRINT("unable to Set Tx power level for station mode\n\r"); LOOP_FOREVER(); }
是不是这些代码在写flash造成flash异常了以致系统不正常了!
你用的flash是不是datasheet上推荐的那几款?
掉了 相关文章: