摘取自 http://bbs.csdn.net/topics/390393118
IAR调试cc2540 时 出现The stack plug-in failed to set a breakpoint on "main". The Stack window will not be able to display stack contents. (You can change this setting in the Tool>Options dialog box.)的警告,程序能烧进去,但不能调试。
需要进行如下配置:
1. iar->options->linker->output->format; 选择 Debug information for c-SPY选项
2. iar->Tools->options->stack->去掉选项“stack pointer(s) not valid until program reaches”
问题就解决了!本人亲自尝试过,和大家分享下!