背景描述:
不知道什么原因,使用WinIdea打开workspace,打开xjrf文件,报错CPU variant not found。
经过一番努力,最后解决办法如下:
解决办法是Recreate database,本地的WinIDEA版本为9.21.21,可以采用command进行Recreate database,也可以采用Manually recreate the database。具体操作方法见网址: How to clean and recreate a corrupted SFR database? - iSYSTEM Support
网址内容如下:
How to clean and recreate a corrupted SFR database?
Possible errors are:
- CPU variant not found
- Invalid SoC
- Error reading INI file (Errors when trying to perform memory writes contained in an initialization file)
- SoC not specified.
- Empty Programmable memory devices list in Hardware menu / Options
- Empty Boot Core selection in Hardware menu / CPU Options / Reset
- Empty Special Functions Registers (SFR) window
- Error in the initialization file or error message: Line 7: [SoCCore.cpp]
- If your INI or CPP file is reported missing
- Error 88
Possible solution:
For winIDEA version 9.21.41 and newer SFR database corruption is detected and SFRs are recreated automatically.
When SFR database is recreated, custom SFRs are deleted.
For other winIDEA versions go here:
- winIDEA 9.21.30 - 9.21.11
- winIDEA versions:
- 9.21.33 up to 9.21.37
- 9.21.10. and older
winiDEA 9.21.38 - 9.21.40:
First check if the folder for SFR database location exist on your PC:
1. Open Tools menu / Options / SFRs.
2. If the SFR database does exist (indicated in the Default field), then press Recreate database.
3. Create a new workspace and open the SFR Window via View menu / Special Function Registers. You should see SFRs of your configured device.
It is recommended to prepare PC working environment and set up winIDEA Temporary files.
winIDEA 9.21.30 - 9.21.11:
Command Recreate database is located in Debug menu / Debug Options / SFRs.
winIDEA 9.21.10 and older:
Manually recreate the database:
1. Press Open in Debug menu / Debug Options / SFRs. This will open the folder which contains the SFR database.
2. Close winIDEA.
3. In the opened folder, go up one level and delete the SFR folder.
4. Open winIDEA. The SFR database will be recreated.
Depending on your PC it might take a couple of minutes.
注:以后遇到winidea的其他问题,均可以去网址 Knowledge Base - iSYSTEM Support 中查找解决办法。
右上角的search tips栏可以查找关键词来快速查找解决办法