Got myself one of the development boards. Anyway, when I have a small program, everything is fine and works. Now when I write any function remotely decent sized, I get an IO Error that the file cannot be found - assuming this is because RAMSIZE is set to 256. Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you. Is there no way possible to use the rest of the RAM/ROM available for program and variable storage, (that isn't a long workaround)?
Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you. I will not call you that but lazy or hasty would fit. If you had taken the time/made the effort to even slightly familiarize yourself with what you are working with you would know that ramsize has absolutely nothing to do with program size. It's been a while, but I think the uVision getting started guide covers this. Erik
Now call me stupid, but if 256 bytes is all you get worth of program, you can't really do a lot with it can you. The 8051 is a Harvard architecture. It may have a maximum of 64K of CODE space, 64K of XDATA space, 128 bytes of DATA, 256 bytes of IDATA, 256 bytes of PDATA, 128 BITs, 128 bytes of SFR space, and 128 BIT SFRs. The RAMSIZE parameter specifies the amount of DATA/IDATA (note that the first 128 bytes of IDATA is DATA). You may not execute code from this memory. The thing you are probably looking for is the size of the CODE space. Now when I write any function remotely decent sized, I get an IO Error that the file cannot be found... Which file? The .C file, the .OBJ file, the work file, or perhaps another? Jon
The error is as follows -
EXCEPTION 0021H: PATH OR FILE NOT FOUND FILE: E:\KEIL\C51\LIB\C51FPL.LIB
Infact, this seems to happen when I declare any variable as float, which makes sense as it cannot seem to find the LIB file. Browsed the HD for the file and it's nowhere to be found. Installed it on my laptop and get the same problems.
Are you using an evaluation version of the compiler? It has limitations. http://www.keil.com/demo/limits.htm
If You are using Eval version Keil compiler it has limitations /without floating point .../