TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2640

CC2640R2F复位后执行,程序有时会跑进这个断言,请问是什么问题啊!

Viki Shi:

“程序有时会跑进这个断言”,也就是有时候正常有时候出问题,怀疑硬件问题。之前有客户碰到这个问题是因为晶振负载电容,你可以这方面排查一下

cao jia:

回复 Viki Shi:

viki shi:

hi!硬件是TI的开发板:LAUNCKXL_CC2640R2 Rev:1.0,软件是:simplelink_cc2640r2_sdk_1_50_00_58。使用IAR8.22仿真测试,通过IAR的Rest然后run,程序每次复位后运行每隔一次跑进那个断言,就是一次正常一次跑进那个断言。脱机测试时,使用硬件Reset按键复位,程序每次复位都能正常运行。

Viki Shi:

回复 cao jia:

是不是进入了HIB模式?连着调试器容易出现这个问题:
The CC26x0 and CC13x0 devices implement a mechanism to ensure that the external emulator can take
control of the device before it executes any application code. This mechanism is called halt in boot (HIB).
When HIB detects debug activity, the boot code stops in a wait for interrupt instruction (WFI) at the end of
its execution before jumping to the application code in Flash.

cao jia:

回复 Viki Shi:

Viki Shi:

hi!请问如何判断是否进入HIB模式了?上图是进入断言是的call stack函数的压栈调用情况。

赞(0)
未经允许不得转载:TI中文支持网 » CC2640
分享到: 更多 (0)