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

Memory mapping an LCD

Hi,

I'm trying to memory map an LCD module to the at91m42800A's external bus interface. I currently have the 8-bit device connected to the EBI on chip select 4. I also configured it's memory space (0x50000000-0x50FFFFFF) in startup.s.

However, every time I attempt a read/write to this device, the processor aborts. I realize this is a Linker problem, but I'm not sure how to configure it. I'm using the Keil toolset, btw.

Do I need to define a new memory CLASS, like XDATA? Any input on this subject would be much appreciated.

Cheers,

Tracy

Parents
  • NO, the linker did not issue any warnings when I built the file. However, the simulator complained when I read/wrote from the LCD because it didn't know that the LCD had read write permissions. I used the MAP command to set the READ WRITE permissions for the LCD, and that stopped the simulator complaints. This is more of a bandaid fix, however, because the simulator should know about the CPU's memory map, a priori, without using the MAP command.

Reply
  • NO, the linker did not issue any warnings when I built the file. However, the simulator complained when I read/wrote from the LCD because it didn't know that the LCD had read write permissions. I used the MAP command to set the READ WRITE permissions for the LCD, and that stopped the simulator complaints. This is more of a bandaid fix, however, because the simulator should know about the CPU's memory map, a priori, without using the MAP command.

Children