We are using the MSP432E401YTPDTR EPI interface in host-bus mode, dual chip select mode. The peripheral interface is configured at address A000,0000. It is a 16M bit (2MB) MRAM device. We are trying to limit the chip select to this device to the entire size of the memory, but it seems the EPSZ settings in the EPIADDRMAP register limits the device size settings to
0x0 = 256 bytes; lower address range: 0x00 to 0xFF
0x1 = 64 KB; lower address range: 0x0000 to 0xFFFF
0x2 = 16 MB; lower address range: 0x000000 to 0xFFFFFF
0x3 = 256 MB; lower address range: 0x0000000 to 0xFFFFFFF
If we use 0x2, we have no issue accessing the entire device, however, still get chip selects triggered when accessing beyond the 2MB device addresses which results in data being written to the MRAM which is unwanted. The condition as highlighted below. Is there a way to limit the chip select to only the size of the device (2MB).
External Peripheral Size This field selects the size of the external peripheral.
If the size of the external peripheral is larger, a bus fault occurs.
If the size of the external peripheral is smaller, it wraps (upper
address bits unused).
Thanks In Advance
Perry Ferren