We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello sir,
I am using 89c55 controller . my code size is 20222 bytes . so while build time it shows error regarding size .
What will be the solution .
regards raj
You obviously have 2 choices:
1. update your target hardware to have more memory;
2. update your software to use less memory.
(or a combination of the two).
20222 is obviously a decimal value, which is 0x4EFE hex. That is still below the 20K Byte limit of the 89c55. Check the compiler settings and/or inspect the resulting hex file for addresses beyond the limit.
There is no such thing as "the (sic) 89C55" !
A quick search at http://www.keil.com/dd shows at least three devices with "89C55" as the base part number - and not all of them have 20K Flash...
The is why it is absolutely essential to always give the manufacturer's name and full part number - complete with all suffix and prefix characters!
Hello sir , Thanks ! .
Controller Name : AT89C55 .
if my code size increase more than 20 KB . My plan is to interface externel memory (40 kb) and put the code in that memory . Then How can I compile the code without error in keil with this target ( AT89c55) .
Regards Rajeeesh
You haven't included all prefix and suffix characters, have you?
You haven't stated the manufacturer name, have you?
"Then How can I compile the code without error in keil with this target"
The same way you'd compile it with any other tools for any other target: You just have to ensure that there are no errors in your source code, and that you correctly configured the project.
Simples!
Hello sir ,
Manufacture of Controller ATMEL . Controller name AT89C55
My Plan is to put Pgrogram in extra IC (EPROM) that I am interfacing with AT89c55 .The EPROM has the capacity of 40KB
So I need to compile the code more than 20 KB in Keil
Is there any options given in keil if we use the code size is more than the target memory .( here target memory 20 KB) If it required what is the option ?
raj....
"Controller name AT89C55"
Where are the suffix characters; ie, the stuff at the end of the part number?
It is important that you understand and pay attention to such details!
"The EPROM has the capacity of 40KB"
Are you sure?? That's a very odd size for an EPROM!!
"Is there any options given in keil if we use the code size is more than the target memory"
But you don't want to build it for more than the amount of target memory, do you?
You have increased the target's memory by adding the EPROM - so you just need to build for that size of memory, don't you?!
"here target memory 20 KB"
No, it's not! You said you've just added a 40K (sic?) EPROM - so the available memory in the target must be at least 40K - mustn't it?!
You specify the target's memory size in the uVision Project Target options: http://www.keil.com/support/man/docs/uv4/uv4_dg_target51.htm
Or you can set the corresponding Linker options "manually" - see the Linker Documentation