问题描述:
当我们想要通过 IDE 重新选择已有 SylixOS Project 的 base 时,如果 base 的类型需要变化,会遇到如下图所示的问题"SylixOS Base project invalid",导致无法选择想要的base。问题原因:
当base类型变化了,创建SylixOS Project时,工程设置里设定了base的类型。
解决方法一:
已有工程根目录下的.reproject文件中有BaseSetting有Profile配置,此时可以直接修改Profile值为要设定的base类型即可,如下,将Profile值由“dsp”修改为“dsp-lite”,然后保存,刷新已有的工程,再进行base的设置,这时就可以选择要设置的Lite DSP base类型的base了。
- <?xml version="1.0" encoding="GB2312" standalone="no"?>
- <SylixOSSetting>
- <BaseSetting Profile="dsp-lite" ProjectType="SylixOSSlibProject" RealEvoVer="3.7.1 Ultimate"/>
<OutputSetting>
<OutputPath Name="Output" Path="Release debug" TreeNode="Output"/>
<OutputPath Name="Debug" Path="Debug" TreeNode="Debug"/>
<OutputPath Name="Release" Path="Release" TreeNode="Release"/>
</OutputSetting>
<BuildSetting CoustomCfgMakefile="false" NeedReBuild="false" NotScanSourceFile="true"/>
<UploadPath/>
</SylixOSSetting> - <OutputSetting>
- <OutputPath Name="Output" Path="Release debug" TreeNode="Output"/>
- <OutputPath Name="Debug" Path="Debug" TreeNode="Debug"/>
- <OutputPath Name="Release" Path="Release" TreeNode="Release"/>
- </OutputSetting>
- <BuildSetting CoustomCfgMakefile="false" NeedReBuild="false" NotScanSourceFile="true"/>
- <UploadPath/>
- </SylixOSSetting>
解决方法二: 针对比较老的IDE版本创建的SylixOS Project,已有工程根目录下的.reproject文件中有BaseSetting中,没有Profile配置,此时可以直接添加Profile设置,如下,并设置为想要的base类型,然后保存,刷新已有的工程,再进行base的设置,这时就可以选择要设置的Lite DSP base类型的base了。
- <?xml version="1.0" encoding="GB2312" standalone="no"?>
- <SylixOSSetting>
- <BaseSetting BeLite="false" Profile="dsp-lite" ProjectType="SylixOSAppProject" RealEvoVer="3.3.1 Ultimate"/>
<BuildSetting CoustomCfgMakefile="false" NeedReBuild="true" NotScanSourceFile="false"/>
<OutputSetting>
<OutputPath Name="Output" Path="Release debug" TreeNode="Output"/>
<OutputPath Name="Debug" Path="Debug" TreeNode="Debug"/>
<OutputPath Name="Release" Path="Release" TreeNode="Release"/>
</OutputSetting>
<UploadPath>
<PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_server" value="/apps/libOSEck/vlink_server"/>
<PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_linx" value="/apps/libOSEck/vlink_linx"/>
<PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_test" value="/apps/libOSEck/vlink_test"/>
<PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\oseck_app" value="/apps/libOSEck/oseck_app"/>
- <BuildSetting CoustomCfgMakefile="false" NeedReBuild="true" NotScanSourceFile="false"/>
- <OutputSetting>
- <OutputPath Name="Output" Path="Release debug" TreeNode="Output"/>
- <OutputPath Name="Debug" Path="Debug" TreeNode="Debug"/>
- <OutputPath Name="Release" Path="Release" TreeNode="Release"/>
- </OutputSetting>
- <UploadPath>
- <PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_server" value="/apps/libOSEck/vlink_server"/>
- <PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_linx" value="/apps/libOSEck/vlink_linx"/>
- <PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\vlink_test" value="/apps/libOSEck/vlink_test"/>
- <PairItem key="$(WORKSPACE_libOSEck)\$(Output)\strip\oseck_app" value="/apps/libOSEck/oseck_app"/>
- </UploadPath>
- <DeviceSetting DevName="192.168.7.32" WorkDir="/apps/libOSEck"/>
- </SylixOSSetting>
该方法可以避免修改已有SylixOS Project工程的源码,也不需要重新创建工程,相对比较方便简单。