2024年5月14日发(作者:)

本文给出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.