Hi,
Currently I am looking at SPI example for Idk473x. I am referring " C:\ti\pdk_am437x_1_0_5\packages\ti\drv\spi\example\mcspi_slavemode\am437x\armv7\bios\spi_arm_idkAM437x_slavemode_master.cfg "
at the bottom of the file i am unable to understand why following lines are declared twice with different " peripheralBaseAddr "
On SPI .CFG
/* Define the base address of the 1 Meg page the peripheral resides in. */
var peripheralBaseAddr = 0x44DF2800;
/* Configure the corresponding MMU page descriptor accordingly */
Mmu.setFirstLevelDescMeta(peripheralBaseAddr,
peripheralBaseAddr,
peripheralAttrs);
/* Define the base address of the 1 Meg page the peripheral resides in. */
var peripheralBaseAddr = 0x481AE000;
/* Configure the corresponding MMU page descriptor accordingly */
Mmu.setFirstLevelDescMeta(peripheralBaseAddr,
peripheralBaseAddr,
peripheralAttrs);
I have compare it with other .cfg file i.e Uart Example " C:\ti\pdk_am437x_1_0_5\packages\ti\drv\uart\example\sample\am437x\armv7\bios\am437x_app_idkam437x.cfg" there it is declared only once.
On uart .cfg
/* Define the base address of the 1 Meg page the peripheral resides in. */
var peripheralBaseAddr = 0x44DF2800;
/* Configure the corresponding MMU page descriptor accordingly */
Mmu.setFirstLevelDescMeta(peripheralBaseAddr,
peripheralBaseAddr,
peripheralAttrs);
please help me on understanding above two differences on .cfg file.
1) why it is declared twice on spi example ?
2) why it is declared once on uart example ?
Thanks & Regards,
nikhil Muley