请选择 进入手机版 | 继续访问电脑版

前馈科技

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 738|回复: 0

OpenOCD调试时报Error: Can not find free FPB Comparator!错误

[复制链接]

97

主题

97

帖子

539

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
539
发表于 2021-12-28 18:43:02 | 显示全部楼层 |阅读模式
今日通过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).
解决办法:    减少设置的断点的数量,可通过移除前面的断点,然后在后面添加断点解决该错误





回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|计算机控制

GMT+8, 2024-3-29 18:38 , Processed in 0.049601 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表