Continuing the discussion from Latest WinCE SDK issues on VS2008:
When we were development WinCE application in 2017 for T30, Alexander Samutin of Toradex, knowing our need to implement the feature to read/write data from/to PLD on board as external memory, shared with us the GMI_Sample_Code_T20_T30_r2426.zip, attached, on 8/24/2017. Which was a boost for our development.
I wonder if you have similar sample code for iMX6 development. I’d deeply appreciated if you can provide something similar. You can email it to firstname.lastname@example.org.
If not, I’d appreciate if you can provide the phsical memory “BASE address” for mapping to a virtual address.
In T30’s case, the base address is the GMI Configuration Register Base/SNOR Register Address 0x70009000, which is defined in line 18 of the GMI_Sample_T20_T30.c file in the zip file provided by Toradex, and is being used in line 155 of teh same C file:
g_gmiReg = (GMI_REGISTERS*) MapRegister(0x70009000);
Now in the SDK 2.1, MapRegister(), is replaced by
void *Map_MapMemory(DWORD pa, DWORD size); // in line 95 of MemMap.h
However, I don’t know what the Physical Address, the first parameter in this API call, should be for iMX6DL for our configuration purpose.
Thanks in advance for your help.