cc2640软复位
我用cc2640 2.1协议栈,想要实现这样一个软复位功能:通过和手机连接之后手机发送一个命令给作为外设的cc2640.cc2640执行 HAL_SYSTEM_RESET();这个函数复位。然而,执行这个函数之后外设和手机断连后就不再广播了。使用HCI_EXT_ResetSystemCmd(HCI_EXT_RESET_SYSTEM_HARD);这个函数也是同样的现象。求问怎样实现软复位。
http://processors.wiki.ti.com/index.php/CC2640_OAD_User%27s_Guide
Device Does not restart after successful OAD
Note: This affects all CC26xx/CC13xx devices.
Symptom: OAD Doesn’t reboot into BIM after successful OAD. Unplug/replug or hard reset will fix this and the device will boot okay.
Cause: There is a bug with the emulation tools packages that predate the 7.0.48.0 release. The bug would cause the processor enter Halt In Boot (HIB) on the next bootup when the JTAG disconnects. In the case of OAD, that was when HAL_SYSTEM_RESET() was issued at the end of an OAD. The two waveforms (left = HIB, right = normal JTAG disconnect) can be seen below:
这是一个烧写程序的bug