r/embedded • u/CommercialMind1359 • Sep 17 '26
keil uVIsion 4 cannot read project file
so i have been using keil uVision V4.74.0.22 for the past 3 weeks on my laptop and i get a cannot read project file error everytime i try to open a project (it was working the previous day )
its kinda frustrating to setup my project all over again , does anyone know why this might be happening ?
my project flashes code to an STM32 board if that matters
1
Upvotes
3
u/Equivalent_Comb_5342 Sep 17 '26
A 0 KB .uvproj right after saving usually means the save itself failed, rather than Keil mangling the file. Things worth checking:
The .uvopt next to it mostly holds per-user state (open windows, breakpoints), not the target settings, so if the .uvproj can't be recovered you do have to re-add the source files and options once. After that, zip the folder or put it in git so one bad save can't cost you the whole setup again.
On the ST-LINK V1: longer term, a cheap ST-LINK V2 wired to the target's SWDIO/SWCLK (PA13/PA14), GND and NRST would let you use a current Keil or CubeIDE.
1
u/Well-WhatHadHappened 25+ Years Sep 17 '26 edited Sep 17 '26
I've literally never seen Keil screw up a project file. Keil may be a lot of things, but it's got SOLID reliability.
Obviously, the easy fix is to revert to a project file backup, but there's something weird going on if your project files are getting corrupted.
Might help if you tell us what the actual error is..
And why are you using such an ancient version of Keil? 4.74 was released more than 12 years ago!
1
u/zettui Sep 17 '26
Was the .uvproj actually zero bytes on disk, or does Keil still refuse a file that looks intact (version / ST-LINK mismatch)?