每次烧程序都出现: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.)的警告。程序能烧进去,只是不能调试。
解决办法:
Project->Options->linker->output->format;
选择 Debug information for c-SPY选项
当设置的断点过多时,IAR会提示然后自动去掉多出来的断点,这时多余断点变成白色,现在最多可设置3个断点。
原因是:
不同的微处理器有不同的断点数目,比如FE42X只有一个,F11X1有3个,F4XX有8个,在实时模式下是由内部硬件决定的,要全部取消断点,可以在EDIT\BREAKPOINTS下点击REMOVE ALL后点击确定即可.