Keil Logo

code size

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Gangaraj S
Posted
4-Jun-2010 15:00 GMT
Toolset
C51
New! code size

I made a small test program to test the AT89C2051 controller board. Project is created with startup file in keil. program is getting compiled but not running from controller.

hex code is generated beyond 0x7FF location. that is most of the code is located at 0x800 location. but controller memory range is 0-7ff only. how to relocate main function with in 0x7ff range? because first instruction at 0th location is jumping to 800 location

i think due to this controller is not running. but its working in simulation mode. please help to sort out this issue.

code is here:
int main(void)
{

while(1) { P0=0x55; P0=0xAA; }

}

Read-Only
Author
Per Westermark
Posted
4-Jun-2010 15:53 GMT
Toolset
C51
New! RE: code size

The evaluation version of the compiler explicitly moves the code like this - it is documented if you read the limitations for the evaluation version.

This reduces peoples interest in trying to do commercial projects with the evaluation version in case their program is small enough to compile with the eval version.

Read-Only
Author
erik Malund
Posted
4-Jun-2010 16:15 GMT
Toolset
C51
New! contact Keil sales ...

how to relocate main function with in 0x7ff range?
contact Keil sales and buy the full version.

Note the 'licence' for the eval states "not for commercial purposes"; however, if you ar an amateur just interested in small stuff, just buy a micro that has code memory of 16k or more.

Erik

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.