[iPAQ] 16-bit SRAM access on ipaq expansion pack

From: Prabhat Avasare <avasare.a.t.imec.be>
Date: Fri Feb 01 2002 - 13:54:30 EST

Hi.

In our expansion pack for ipaq 3760, we were trying
to do a simple SRAM access on MCS2 for 16-bit data.
There were two problems with that :-

1. If we try to access expansion pack memory as
   (unsigned short*) in our C program(like
   (unsigned short*)(EXAPNSION_MEM_BASE) = 0x1234;),
   arm-linux-gcc converts it into two instructions
   (hence more cycles) of STRB(byte store) each.
   For (int*) though, only one STR instruction is
   generated. Is this normal or are we missing something?

2. When connected to logic analyser we see that,
   in case of (int*) access, only D15-8 are filled
   with correct values, but D7-0 are all zeroes.
   I read in sa1100 developer's manual that nCAS[3-0]
   enable corresponding bytes during memory accesses.
   Has that got anything to do with this? If yes,
   how do I turn nCAS[] on?

Best wishes,
-- prabhat
Received on Fri Feb 1 12:51:36 2002

This archive was generated by hypermail 2.1.8 : Tue May 04 2004 - 09:44:27 EDT