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

External ram demux

Hi,
I work on st10f168 with uVision2 V2.38
I want to control 2 1Mb * 8 bits external ram by EBC (external bus controller) in 16 bits demux mode.
It s like a one chip ram 16 bits * 1Mb
So i would declare a table of 1Mb int, but i can t declare one upper that :

static unsigned int xhuge Tab[524032];
with user stack : 0x200

But normally i can declare Tab[1048065]

I don t understand why i can t ?
I feel i lose the half of my memory !
I am also oblige to increment 2 by 2 the pointer on Tab, i can t write on another !

Please explain to me how can i use all the memory

Thanks

0