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

Stack overflow.. please suggest

Iam using keil version-2 compiler, AT809c51Rd2 microcontroller.

Iam using both ".C" and ".asm" files in my project.
I wrote my program by considering small memory model in both assembly and c files.

Now iam facing "Address space overflow" error. As per my understanding RAM area is not having enough space to fit all my data variables.

I tried by changing memory model from SMALL to LARGE and compiled.Now my assembly files wont support this memory model(because of indirect addressing). If this is the case, whether i must do modifications in assembly file? or please sujjest me if any alternative is there?

Is it possible by keeping mine as SMALL memory model and to shift Stack to extended RAM.

Parents
  • Hello Erik,

    You said:
    IDATA would be far better if he has room there.

    I agree, I should have been more clear that IDATA was an option as well.

    Either XDATA or IDATA would work; it comes down to Raju's hardware implementation.

    I wanted to make sure Raju saw the Keil documentation pertaining to his overflow issue.

Reply
  • Hello Erik,

    You said:
    IDATA would be far better if he has room there.

    I agree, I should have been more clear that IDATA was an option as well.

    Either XDATA or IDATA would work; it comes down to Raju's hardware implementation.

    I wanted to make sure Raju saw the Keil documentation pertaining to his overflow issue.

Children
No data