IAR因版本不兼容打不开工程文件解决(Broken options、ICC8051、XLINK)
摘要:
本文给出IAR因版本不兼容打不开IAR工作区遇到的各种问题及解决方法,包括依据提示修改版本,删除未知名称(ewp文件)。若还没解决,则创建新工作区、工程,并拷贝相关文件,我想这是一种通用化的解决方法(很诡异)。
PS:本文以IAR工程项目ContikiCC2530Port为例,IAR for MCS-51版本是7.51A。本文记录了整个调试过程,实际场景,不妨先跳到第三部分,看行不行,不行的话,再按第二部分修改。
一、IAR错误提示
昨天,在GitHub下载了一个IAR工程项目ContikiCC2530Port,打开*.eww文件出现一系列错误,如下:
1.1 Broken options were detected in the project file.A backup copy will be made.
图1 IAR警告Broken options
1.2 The project file * was created by a newer version of project and cannot be opened
图2 IAR警告created by a newer version
1.3 The project * could not be open
图3 IAR警告could not be open
Build区域显示如下信息:
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': The format of this file is not supported by this version of the workbench.
It appears to have been written by a newer version of the workbench. Diagnostics: 'Settings 'General': unsupported version - '.
Options for 'General' will be set to default. Creating backup of original project file.
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'ICC8051': (Registry: unknown name: CompilerMisraRules04)
Options for 'ICC8051' will be set to default.
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'XLINK': The format of this file is not supported by this version of the workbench. It appears to have been written by a newer version of the workbench.
Diagnostics: 'Settings 'XLINK': unsupported version - '.
Options for 'XLINK' will be set to default.
如下图所示:
图4 IAR log windows信息
初步断定,这些警告是因为IAR版本不兼容引起的,但事实上没那么简单,之前也遇见用新版本IAR打开旧版本IAR工程文件,可以直接打开(给出提示信息),在这里还涉及到工程项目配置。解决方法是修改相关的IAR工程文件,描述IAR工程主要有.dep、.eww(Embedded Workbench Workspace)、.ewd(Embedded Workbench Debug)、.ewp(Embedded Workbench Project)文件。
dep --(我也不知道)
eww --工作区文件,描述工作区包含哪些project
ewd --C-SPY调试器项目设置文件
ewp --IA项目的配置信息
二、Broken options
Broken options是由于项目文件配置不对引起的,按提示信息修改。版本不对的,修改版本;unknown name的,则删去这些配置选项。
2.1 General
2.1.1 'Settings 'General': unsupported version
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General':
The format of this file is not supported by this version of the workbench. It appears to have been written by a newer version of the workbench.
Diagnostics:'Settings 'General': unsupported version - '. Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
找一个IAR现版本可以找开的工程文件,查看General的版本,并将工程文件的版本改成可支持的版本,如下图所示:
2.1.2 unknown name: PDATA 8-15 register address
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': (Registry: unknown name: PDATA 8-15 register address)
Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
在.ewp文件找到PDATA 8-15 register address,删去
...,如下:
PDATA 8-15 register address
0xA0
2.1.3 unknown name: PDATA 16-31 register address
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': (Registry: unknown name: PDATA 16-31 register address)
Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到PDATA 16-31 register address,删去
...
2.1.4 unknown name: General Far22 Heap Size
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': (Registry: unknown name: General Far22 Heap Size)
Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到General Far22 Heap Size,删去
...
2.1.5 GeneralMisraVer
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': (Registry: unknown name: GeneralMisraVer)
Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到GeneralMisraVer,删去
...
2.1.6 GeneralMisraRules04
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'General': (Registry: unknown name: GeneralMisraRules04)
Options for 'General' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到GeneralMisraRules04,删去
...
2.2 ICC8051(ARM平台为ICCARM)
2.2.1 'Settings 'ICC8051': unsupported vesion
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'ICC8051':
The format of this file is not supported by this version of the workbench. It appears to have been written by a newer version of the workbench.
Diagnostics:'Settings 'ICC8051': unsupported version -'.
Options for 'ICC8051' will be set to default. Creating backup of original project file.
(2)解决
同2.1.1,找一个IAR现版本可以找开的工程文件(或者自己创建一个工程文件),查看ICC8051的版本,并将工程文件的版本改成可支持的版本,如下图所示:
2.2.2 unknown name: CompilerMisraRules04
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'ICC8051': (Registry: unknown name: CompilerMisraRules04)
Options for 'ICC8051' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到CompilerMisraRules04,删去
...
2.2.3 unknown name: CompilerMisraRules04
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'ICC8051': (Registry: unknown name: CompilerMisraRules04)
Options for 'ICC8051' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到CompilerMisraRules04,删去
...
2.3 XLINK
2.3.1 'Settings 'XLINK': unsupported vers
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'XLINK':
The format of this file is not supported by this version of the workbench. It appears to have been written by a newer version of the workbench.
Diagnostics: 'Settings 'XLINK': unsupported version - '.
Options for 'XLINK' will be set to default. Creating backup of original project file.
(2)解决
同2.1.1,找一个IAR现版本可以找开的工程文件(或者自己创建一个工程文件),查看XLINK的版本,并将工程文件的版本改成可支持的版本,如下图所示:
2.3.2 unknown name: Linker Far22 Heap Size
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'XLINK': (Registry: unknown name: Linker Far22 Heap Size)
Options for 'XLINK' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到Linker Far22 Heap Size,删去
...
2.3.3 unknown name: Linker Far22 Heap S
(1)错误提示
LOAD: Configuration 'ContikiBankedRelease' in the project 'ContikiCC253xProj' contains broken options for tool 'XLINK': (Registry: unknown name: Linker Far22 Heap Size)
Options for 'XLINK' will be set to default. Creating backup of original project file.
(2)解决
同2.1.2,在.ewp文件找到Linker Far22 Heap Size,删去
...
三、遗留问题及诡异方法
打开eww文件,还提示图2的The project file * was created by a newer version of project and cannot be opened、图3的The project * could not be open的警告,但Build区域没有任何信息。还是打不开,我估计是版本跨度太大,换个老一点的版本试试。如果您有更好的方法,烦您告诉我Jelline@126.com,谢谢!
================分隔线=====================
最后,我找到了一种很诡异的方法解决这个问题。即在不同目录创建新的工作区,创建新的工程,将工作区和工程名称与版本不兼容的IAR相同(在本例为ContikiCC2530Port),而后将修改好的ContikiCC2530Port.ewp(注:.eww、.ewd、.dep文件不拷贝,只拷贝ewp文件)和项目相关文件(注:不包括Debug、Release、settings文件夹)拷贝到新创建工程的目录。问题解决:-)不禁感慨,编程世界真美好!
IAR因版本不兼容打不开工程文件解决(Broken options、ICC8051、XLINK)相关推荐
- IAR版本不兼容时如何打开工程文件的方法
IAR版本不兼容打开工程文件的方法 常常看到初学ARM的人会问,到底是MDK for ARM好用还是IAR for ARM好用,这就可见MDK和IAR作为ARM编译器的统治地位,当然其它还有ARM公司 ...
- 版本不兼容 请检查计算机的系统,解决安装系统提示此文件的版本与正在运行的windows版本不兼容...
系统重装方法有各种各样,但在安装的过程中难免会遇到棘手的故障问题.近日有用户在豆豆系统中留言,在使用硬盘安装win7旗舰版的时候提示:此文件的版本与正在运行的windows版本不兼容,请检查计算机的系 ...
- catia打开stp文件无响应_catia打不开stp文件怎么办 catia打不开stp文件解决办法
catia打不开stp文件怎么办?catia是一款十分好用的模具制作软件.而最近有些小伙伴们发现使用catia打开stp文件的时候发现无法编辑出现错误的情况.不是很了解这种情况怎么解决的小伙伴们,赶紧 ...
- 转换html文档后打不开,HTML文件打不开怎么办?win10打不开HTML文件解决方法
一般html文件只需要双击就可以打开了,但有用户遇到双击打不开html文件的问题,这样就没办法继续工作了,遇到双击打不开html文件问题的用户,请来看看win10双击打不开html文件夹的解决教程吧. ...
- Docker desktop 4.7版本安装提示无法访问d3dcompiler_47.dll文件解决方法
Docker-Desktop版本:4.7 问题: 安装时提示: 对路径"C:\Program Files\Docker\Docker\frontend\d3dcompiler_47.dll& ...
- Python xlrd打不开xlsx文件解决办法
今天在Python中安装xlrd库,读xlsx文件时,发错错误,查了一下,可能是版本高过,不支持xlsx了(搞不懂,高版本到不支持xlsx了),限低一下版本吧. 下面代码留存记录一下吧 $ pip u ...
- Windows7打不开chm文件解决办法
首先从其他正常的电脑上拷取hh.exe(C:\WINDOWS)和hhctrl.ocx(C:\WINDOWS\system32)文件,(在XP系统上拷取也是可以的,我就是从XP系统上复制过来的,)然后粘 ...
- 怎样搜索计算机中docx格式的文件,电脑打不开docx文件怎么解决
docx文件是我们日常办公经常遇到的文件格式,但是有些电脑无论用什么软件都打不开怎么办呢?下面由学习啦小编整理了电脑打不开docx文件怎么解决的相关方法,希望对你有帮助. 电脑打不开docx文件解决方 ...
- 记录Keil5后缀.uvprojx工程文件打不开的解决方法
用Keil5打不开一个后缀为.uvprojx的工程文件,显示报错如下: 使用过的解决方法如下,但没有解决: 重新安装软件到C盘,并且把一系列文件移动到同一路径下面: 把路径中的中文全部改成英文,并且缩 ...
最新文章
- android面试题之一
- 皮一皮:你住的小区叫什么名字?
- ExtJS4.x 开发环境搭建
- window的文件能在linux,在Linux和Window系统中生成任意大小文件
- 开天辟地 —— Go scheduler 初始化(二)
- Linux系统编程:习题,父子进程通过信号通信,实现交替数数
- pygame和python的区别_用Python和Pygame写游戏-从入门到精通(22)
- SVG 与 HTML5 的 canvas 相比较:
- 上项线体表位置_体表定位
- python调用metasploit自动攻击_Python脚本与Metasploit交互进行自动永恒之蓝攻击-Go语言中文社区...
- 开源应用中心 | KodExplorer高效流畅云端存储协同办公新体验
- Java大数据秋招面试题
- 我们无法更新系统保留的分区_什么是系统保留分区,您可以删除它吗?(Windows10 科普)2020...
- 微信小程序新手教程 1.0
- 1. 类,对象,对象属性,对象的行为
- Android10.0应用图标隐藏方案(7.0-10.0)
- 硬盘已成为计算机性能提高瓶颈吗,固态硬盘停步 接口或已成为性能瓶颈?
- 常用的十种数据分析方法
- FITC-STL,PL;荧光素标记马铃薯凝集素(STL,PL)
- 核心项目:高并发秒杀系统(项目介绍,项目搭建,数据库,DAO)