Hi ,
I want to access the ecc aggregator address from the r5f within the MAIN domain. The code is
result = SDL_ECC_init(SDL_ECC_MEMTYPE_MAIN_MSMC_AGGR0, &ECC_Test_MAINMSMCA0ECCInitConfig);
I was initialize the OSAL with the osal_interface and using it's addrTranslate function SDL_TEST_addrTranslate.
#define PBIST_RAT_CFG_BASE CSL_MCU_ARMSS_RAT_CFG_BASE
static SDL_OSAL_Interface osal_interface =
{
.enableInterrupt = (pSDL_OSAL_interruptFunction) SDL_enableInterrupt,
.disableInterrupt = (pSDL_OSAL_interruptFunction) SDL_disableInterrupt,
.registerInterrupt = (pSDL_OSAL_registerFunction) SDL_registerInterrupt,
.deregisterInterrupt = (pSDL_OSAL_deregisterFunction) HwiP_delete,
.globalDisableInterrupts = (pSDL_OSAL_globalDisableInterruptsFunction) SDL_globalDisableInterrupts,
.globalRestoreInterrupts = (pSDL_OSAL_globalRestoreInterruptsFunction) SDL_globalRestoreInterrupts,
.printFxn = (pSDL_OSAL_printFunction) printf,
.delay = (pSDL_OSAL_delayFunction) Osal_delay,
.addrTranslate = (pSDL_OSAL_addrTranslateFunction) SDL_TEST_addrTranslate
};
ret = SDL_OSAL_init(&osal_interface);
But when I run this application, it was hang in the CSL_ratDisableRegionTranslation function.
The overall calling relationship is as follows:
SDL_ECC_init
SDL_ECC_mapEccAggrReg
SDL_OSAL_addrTranslate
gOSAL_Interface->addrTranslate
SDL_TEST_addrTranslate
CSL_ratDisableRegionTranslation
CSL_ratGetMaxRegions
CSL_REG32_FEXT
I need help with the following points:
1) On the TDA4 chip, is it correct that I found the RAT register named CSL_MCU_ARMSS_RAT_CFG_BASE?
2) The above code I coded with reference to SDL, is there any problem? Why is it hang in the RAT address translation function?


