the session file could not be loaded
2010-12-16 16:00
330 查看
ADS调试中的中文路径问题
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
(2009-03-23 13:46:35)
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
转载
标签:
| 分类: 技术分享 |
问题描述:用ADS1.2 + H-JTAG,每次调试的时候都会出现“the session file could not be loaded”这个错误,寻求解决办法?
问题解答:用户创建的工程编译通过后,进入AXD调试环境时,会弹出如图 1.1所示的错误窗口。
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
图 1.1 错误窗口
“the session file could not be loaded”意指“过程文件不能装载”。the session file(过程文件)是一种记录调试信息的非文本文件,调试者不能对其进行编辑和修改,该文件的作用是把调试过程中的信息记录下来,在下一次调试时恢复上一次调试时的某些状态。
之所以出现过程文件无法装载的现象,一般是由于用户存放工程的路径包含中文,如图 1.2所示。中文路径导致加载信息出错。
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
图 1.2 工程存放路径包含中文
1.2 解决方案
此类问题,有两种解决方法:
(1)移动工程,将工程存放在英文或数字(不包含中文)目录下
![](http://hi.csdn.net/attachment/201012/16/0_1292486411GGn3.gif)
;
(2)修改调试目标的界面配置。
1.移动工程
移动工程,将工程存放在不包含中文的路径的目录下。此方法操作比较简单,本文不进行详细的讲解。
2.修改调试目标的界面配置
AXD调试器的所有设置选项和设置面板都位于菜单选项Options中,单击该选项,系统弹出下拉菜单如图 1.3所示。
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
图 1.3 AXD调试设置
单击图 1.3所示菜单中的Configure Interface(界面配置)选项,弹出窗口如图 1.4所示。该窗口有6个标题栏,每个标题栏都包含一个配置面板。
其中标题栏General(通用配置)包含一个设置:Save and load default session file 。此设置是指将调试过程的详细信息都保存在过程文件中,下次应用AXD时,新的调试会在相同的状态中开始。如果没有选择该设置,当前调试过程的详细信息没有保存,下一次调试会在默认状态中开始。
![](http://simg.sinajs.cn/blog7style/images/common/sg_trans.gif)
图 1.4 调试目标界面配置
建议用户参照图 1.4进行设置,将Save and load default session file选项勾掉,以避免在调试时弹出错误窗口。此操作不需要修改工程的当前存放路径。
综上所述的两种方法,可以解决在中文路径下AXD环境弹出错误窗口的问题
相关文章推荐
- ADS错误之the session file 'C:\user\username\default-1-2-0-0.ses' could not be loaded.
- RVDS的AXD故障之:the session file 'C:\$Username\default-2-2-0-0.ses' could not be loaded.
- ADS错误之the session file 'C:\user\username\default-1-2-0-0.ses' could not be loaded
- the session file could not be loaded
- 装XP时出错,file setupdd.sys could not be loaded the error code is 4
- [Qt-creator] The .pro file could not be parsed
- 关于“File setupdd.sys could not be loaded”错误
- GetModuleFileName False failed with error 126 (The specified module could not be found)
- -"The resource could not be loaded because the App Transport Security policy requires........
- ios网络请求报错:The resource could not be loaded because the App Transport Security policy requires the us
- The resource could not be loaded because the App Transport
- Error: The INF file contains Unicode characters that could not be converted correctly to ANSI的彻底解决
- Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requir
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The java class could not be loaded. java.lang.UnsupportedClassVersionError
- iOS报错:The resource could not be loaded because the App Transport Security policy requires
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- The resource could not be loaded because the App Transport Security policy requires the use of a sec
- AFNetworking 提示"The resource could not be loaded because the App Transport Security policy requires
- Xcode7 网络请求报错:The resource could not be loaded because the App Transport Security policy requires th