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

Using 4MB of flash memory with ADUC824

Hi!

I'm desperate! I have a ADuC824 with 4 MB of flash memory attached using the 824's feature of being able to access upto 16MB of external memory.

I'm trying to use the flash as external memory. However I cannot get out of the 64K XDATA limit. Even using the examples and using far I cannot write/read more than 64K.

What I need is a way of creating a pointer to 4MB of XDATA. If is use "char XDATA *BASE_ADDR" then I only get to use 64K and "far *BASE_ADDR" doesn't work.

Can anyone help?

All the best

Andrew Manning

Parents
  • For accessing 16MB memory on the ADuC microcontroller series you need to enable the extended Linker LX51 when you select the device. This enables also the 'far' memory type at the compiler level.

    You should also check the folder:

    Keil\C51\EXAMPLES\FarMemory\16MB RAM on ADuC812

    This example shows you how to access 16MB memory that is mapped in the extended xdata space of that device.

Reply
  • For accessing 16MB memory on the ADuC microcontroller series you need to enable the extended Linker LX51 when you select the device. This enables also the 'far' memory type at the compiler level.

    You should also check the folder:

    Keil\C51\EXAMPLES\FarMemory\16MB RAM on ADuC812

    This example shows you how to access 16MB memory that is mapped in the extended xdata space of that device.

Children