|
今日通过Codeblocks+OpenPCD+STLink调试stm32时频繁出现
Error: Can not find free FPB Comparator!
Error: can't add breakpoint: resource not available错误,出现该问题后,函数无法单步步过,到最后彻底无法调试.
具体原因: ARM cortex M 系列的处理器采用硬件中断,由于资源有限,所以支持的断点数量很少,原因设置的断点数量超过了5个
The Error "Can not find free FPB Comparator!" often appears when too many breakpoints are set. The STLink supports up to 6 concurrent breakpoints, with 4 watches (at most).
解决办法: 减少设置的断点的数量,可通过移除前面的断点,然后在后面添加断点解决该错误
|
|