收藏官网首页
查看: 8730|回复: 0

IAR俩种Debug模式差异

51

主题

99

帖子

827

积分

高级会员

Rank: 4

积分
827
跳转到指定楼层
楼主
发表于 2016-7-29 20:21:43 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
教您5分钟接入机智云,实现傻瓜式开发
本帖最后由 Snail 于 2016-7-29 20:26 编辑

打开IAR IDE,看到调试的时候有两种debug模式,如下图所示:



从IAR的help 文档可以看到两者的含义:
1. Debug with Downloading: Downloads the application and starts C-SPY so that you can debug the project object file. If necessary, a make will be performed before running C-SPY to ensure the project is up to date. This command is not available during a debug session.
下载应用程序,并且启动C-SPY以至于用户可以debug工程的Object 文件,在运行C-SPY之前IAR通常会先make一下工程,从而确保当前的Object文件是最新的,即这种模式是下载并仿真。

2. Debug without Downloading: Starts C-SPY so that you can debug the project object file. This menu command is a shortcut for the Suppress Download option available on the Download page. The Debug without Downloading command is not available during a debug session.
启动C-SPY以至于用户可以Debug工程Object文件,这个命令不会执行下载到Flash的操作,即这种模式是只是仿真,程序跑在RAM空间。

于是得出两者的区别,Debug with Downloading会每次下载到MCU,并启动C-SPY开始运行;而Debug without Downloading不会向MCU烧写代码,只会对上一次写入的代码进行调试,不会调试最新编译后的代码,个人感觉其作用在于,不必要经历重新Download的过程,从而节省时间,如果代码有改动一定要使用Debug with Downloading,否则修改后的代码不会生效。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

加入Q群 返回顶部

版权与免责声明 © 2006-2024 Gizwits IoT Technology Co., Ltd. ( 粤ICP备11090211号 )

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