I recently purchased a C8051F040 Developement Kit from Silicon Laboratories. I'm using the IDE (Version 2.7) I recieved with the Developement Kit, with the IDE I also recieved full versions of the macro assembler and linker and a 4-KB limited evaluation version of version 6.1 of the C51 compiler.
At the university I'm at I found a full version of Keil C51 V5.50a (there isn't currently any funds available for the new version).
The header files of the c8051f040 doesn't seem to be compatible with V5.50a. Are there header files available for v5.50a? This however is fixable, are there any other fixes needed for using this compiler.
Thank you before hand for any advice and information.
"The header files of the c8051f040 doesn't seem to be compatible with V5.50a."
In what way?
there's nothing magic about the header files - they just use the same language as the rest of your code!
v5.5 is very old - if you really can't use the Eval version, and can't upgrade, you're just going to have to look at the problems and convert them back to v5.5 syntax, as described in the v5.5 Manuals
(the current manuals are available online, if you need to check what the current syntax means...)
You should point out to your supervisors that this is wasting your time!
Has your university contacted the local Keil distributor regarding educational discounts, etc?
I changed the header file to the correct syntax, it still gave the following warinings and errors:
***ÿWARNING 500 IN LINE 1 OF BLINKY.C: MISSING SECURITY DEVICE ! *** ERROR 318 IN LINE 19 OF BLINKY.C: can't open file 'c8051f040.h'
Clearly I'm missing something.
Regardng the costs, in South Africa the compiler cost about $1500, the educational discount is about $30. We just don't have acces to this kind of funds.
"***ÿWARNING 500 IN LINE 1 OF BLINKY.C: MISSING SECURITY DEVICE !"
This has nothing to do with your code at all!
This means that you haven't got the security key - or "dongle" - plugged into the parallel port! You will need to ask your supervisor where the dongle is if you don't have it.
"*** ERROR 318 IN LINE 19 OF BLINKY.C: can't open file 'c8051f040.h'"
Again, This has nothing to do with your code at all! The compiler is telling you that it can't even open the file. Most probably, you haven't put the file in the correct place (or, conversely, you haven't configured the tools to find wherever you have put it)
Again, your supervisor should be able to help you with this.
"We just don't have acces to this kind of funds."
So you have this dilema: is it better to use an obsolete, unsupported version of a high-cost tool, or would it be better to get an upt-to-date version of a low-cost tool?
Various options are listed here: www.8052.com/links.phtml
Actually figured it out:
The reason it couldn't open the header file is that v5.5 doesn't support filenames longer than 8 characters.
While I turned up all the software cabinets in the whole faculty (consisting of 5 4 floor buildings) looking for the missing security device, I found a version 6 (with its dongle) of the compiler another department bought 3 years ago.
Compiled and ran I few programs I already wrote in SDCC and adapted for Keil. (I abandend SDCC due to "yet to be developed" function)
Thanks for all your assistance.
"I turned up all the software cabinets in the whole faculty (consisting of 5 4 floor buildings) looking for the missing security device"
So not only is it a very old version, but it also hasn't been used for ages! Not surprising that they don't want to fork-out for a new one, then? :-(
"I abandend SDCC due to 'yet to be developed' function"
When was that? I think there's recently been a new release...?