I just update my version of C51 Keil in version 6.20. I tried to compile an old project and the OH51 file do a fatal error! So, my hex file was not created ! My OH51.exe version is 2.5 What's happended ? Does anyone have the same problem ?
Works fine for me! Please give more details of precisely what you're doing & what goes wrong. BTW: be sure that you've got C51 v6.20b - the original v6.20 had a bug in generating .SRC. (check via Help/About in uVision)
When I launch a "rebuild all targets", uVision finish by an error message about Oh51. With a little bit of investigation, I see look at the directory of my project and I see that the generate HEX file have 0 Ko !?!? Before doing my update, I didn't have problem to compile and generate my HEX File. My version of C51 is now 6.20c. Do you think I need an older version ?
"uVision finish by an error message about Oh51." Yes, but precisely what message!? We can't help you if you don't give full details! In the 'Build' output window, after all your source files have been translated, you should see:
linking... (any linker messages) creating hex file from "executable-name" (any User commands) "executable-name" - n Error(s), m Warning(s)
That's not a message whose appear in the 'build' output window. This is a little window whose appears in the center of the screen. In this box we can read: OH51 "This program will be stopped because it encounters an unsupported operation." (excuse me for my english, my original error has in french...)
I continue my investigation by making different test! 1- I try to re-install completely the Keil software, but I have already the problem. 2- With the example about "Hello world" gives by the Keil Software, I didn't have any problem to create an HEX file. So, it seems to me that the Absolute object file making by the BL51 linker/locator is corrupt with my program! 3- May be someone can try to create the HEX file if I give him my Absolute Object File and use OH51 as it writes in the "8051 utilities manual". If you can create my HEX file, it means that my OH51 file was corrupt. (I think not because I re-install the complete Keil Software)
Can you run OH51 from a command prompt? Does it work? What PC, operating system, etc are you using?
This is a simple PC with operating system: WIN98 on a Celeron machine. I tried to run OH51 in a command line window but i had the same problem ! OH51 stop and let a file with 0 Ko ?!?!?
View all questions in Keil forum