Posted: Jul 27, 2004 - 07:50 AM
Does someone know how I can add external ram on my motorola? I have found 1 electrical schematic, but I don't know how to do the soft.
I have defined the adresse of my external RAM in the prm (code Warrior 3.1) from 68000 to 6BFFF
and in my main, I have initialized my register :
And to see if I have access to my external RAM when my internal RAM is full I have made an array of 5000 caracters.
unsigned int far i;
unsigned int far tab;
for (i=0; i<5000; i++)
So when I compile I have always got the same warning:
L1128: Cutting value StackOffset Startup data member from 0x6A80F to A80F.
And then it doesn't works.
Does someone can help me please?
I really thanks you.
Posted: Jul 28, 2004 - 03:57 AM
Basically the problem here is that some sections cannot be placed in banked RAM.
This is the case for the stack. remember that the stack pointer register is 2 byte wide
So you will not be able to get the stack on banked RAM.
If you are working in banked memory model, DEFAULT_RAM must also be placed in non-banked RAM.
In banked memory model make sure to allocate only sections defined with the PPAGE attribute in banked RAM.