This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

shaiaw@013.net

Hi everybody,

I wrote simple program for 89c2051:

#include <REG2051.H>

#include <stdio.h>

sbit blinky = P1^3 ;

void main (void) {

while (1) { blinky = 0; blinky = 1;

}

}

But after compilation, debugger run (after long jmp) from 0800h (89c2051 have a flashe 2k only), so my program out of memory.
How to force run program in available memory. (I work in evaluation mode - 2k memory code)

Thanks

Parents
  • Which is clearly & explicitly stated in the Limitations for evaulation versions - 4th & 5th bullet points for "C51 Evaluation Tools":

    The startup code generated includes LJMPs. Code generated cannot be used in single-chip devices that support 2 Kbytes or less of program space.

    Programs start at offset 0x0800. Programs generated with the evaluation software may not be programmed into single-chip devices with less than 2 Kbytes of on-chip ROM.

    http://www.keil.com/demo/limits.asp

    It always pays to check the licence terms - especially the limitations of free trial or evaluation versions...

Reply
  • Which is clearly & explicitly stated in the Limitations for evaulation versions - 4th & 5th bullet points for "C51 Evaluation Tools":

    The startup code generated includes LJMPs. Code generated cannot be used in single-chip devices that support 2 Kbytes or less of program space.

    Programs start at offset 0x0800. Programs generated with the evaluation software may not be programmed into single-chip devices with less than 2 Kbytes of on-chip ROM.

    http://www.keil.com/demo/limits.asp

    It always pays to check the licence terms - especially the limitations of free trial or evaluation versions...

Children