GetRealAddr - 2020.2 English

OS and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2020-11-24
Version
2020.2 English

Function to get the real address of flash in case dual parallel and stacked configuration.

Function to get the real address of flash in case dual parallel and stacked configuration.

This functions translates the address based on the type of interconnection. In case of stacked, this function asserts the corresponding slave select.

Note: None.

Prototype

u32 GetRealAddr(XIsf_Iface *QspiPtr, u32 Address);

Parameters

The following table lists the GetRealAddr function arguments.

Table 1. GetRealAddr Arguments
Type Name Description
XIsf_Iface * QspiPtr is a pointer to XIsf_Iface instance to be worked on.
u32 Address which is to be accessed (for erase, write or read)

Returns

RealAddr is the translated address - for single it is unchanged for stacked, the lower flash size is subtracted for parallel the address is divided by 2.