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.)

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/27 16:07:26

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选项

你用的是什么版本的?我看了4.12和5.11B都没有128A 另外STACK又分CSTACK和RSTACK,如果设为0,系统根本不可能工作如果像你说的设为0才能编译不报错,

意思是:断点设到了无效的代码空间。显然,这是IAR的判断。有时候不一定准确,如SCB_VTOR = 0x5000;这如果是程序员有意这样安排。而IAR又认为风险很大,IAR就会干预。