cancel
Showing results for 
Search instead for 
Did you mean: 

Recover .ioc file

kelseyy
Associate

Hi,

Can I recover an .ioc file. 

The error message when i try to open it "Invalid State: Most probably trying to open 'file.ioc' file from an abnormal previous IDE session exit. Please close such editor and have a new try to recover properly."

Thanks

3 REPLIES 3
gregoor
Associate

Hi, 
I have the same issue, but couldn't find a solution.
Maybe someone else can help?

Thank you

Bob S
Principal

The .ioc file is just a text file.  Open it in an editor and see if you see any obvious errors (garbage characters, etc.).

To prevent this from happening again, use some kind of version control software (git, etc.).  That way you can always recover the file from the git repository if it does somehow get corrupted.

JeremyHeggli
Associate

I had the same problem. In my case, the file name in the project did not match the file name in the path. So, adjust the file name in the project to match the file name in the path, and it should work.

1. Right-click on the .ioc file -> Properties.
2. Copy the name written in the path (In my case: 50STM32U599_Rev1_0.ioc).
3. Navigate to your project folder.
4. Right-click on the .ioc file -> Rename.
5. Paste the copied name.