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 memory

Hi,
I work on ST10F168 and i want to control by EBC 2 SRam chip 1M*8bits like 1 chip 1M*16bits. But how to declare in keil that external memory is 16bits data.
I declare it in start166.A66 (_BTYP1 EQU 2) and 1024K ; so i can store 1M*16bits.
When i declare a table of 0.5M of int , it's good ; but if i increase the capacity of the table there is a warning :
*** WARNING L5: SECTION LOCATED OUTSIDE CLASS AREA
SECTION: ?XD0?MAIN
CLASS: XDATA0

normally i can have a table of 1M of int !
So how can i use all my memory in 16bits demux mode.
Thanks

Parents
  • Hi,

    You should specify the range as 2048K and not as 1024K. That's because 1024K means 1024K bytes, whereas in fact you have 2048K bytes of external RAM.
    In your other post, you mentioned memory range 0x100000-0x200000. That's only 1024K bytes. Your range should be something like 0x200000-0x3FFFFF.

    Regards,
    - mike

Reply
  • Hi,

    You should specify the range as 2048K and not as 1024K. That's because 1024K means 1024K bytes, whereas in fact you have 2048K bytes of external RAM.
    In your other post, you mentioned memory range 0x100000-0x200000. That's only 1024K bytes. Your range should be something like 0x200000-0x3FFFFF.

    Regards,
    - mike

Children