Other Parts Discussed in Thread: TMS570LS1227
Hi All,
I'm using TMS570LS1227.
I would know which is the value of RAM at the power on, before software intialization of RAM.
I supposed that it was fully FFh, but it is not. For example at location 08002004h I read the value 4d2fd60dh.
I attach below my start up routine with "tApplicationReset" variable to store the value of RAM at location 08002004h:
#pragma INTERRUPT(_c_int00, RESET)
void _c_int00()
{
register uint32_t tApplicationReset;
_coreInitRegisters_();
_coreInitStackPointer_();
if (DEVICE_ID_REV == 0x802AAD05)
{
_esmCcmErrorsClear_();
}
flashWREG->FEDACCTRL1 = 0x000A060A;
if ((SYS_EXCEPTION & POWERON_RESET) != 0)
{
SYS_EXCEPTION = 0xFFFF;
}
else if ((SYS_EXCEPTION & OSC_FAILURE_RESET) != 0)
{
}
else if ((SYS_EXCEPTION & WATCHDOG_RESET) !=0 )
{
if(WATCHDOG_STATUS != 0U)
{
SYS_EXCEPTION = WATCHDOG_RESET;
}
else
{
SYS_EXCEPTION = ICEPICK_RESET;
}
}
else if ((SYS_EXCEPTION & CPU_RESET) !=0 )
{
SYS_EXCEPTION = CPU_RESET;
}
else if ((SYS_EXCEPTION & SW_RESET) != 0)
{
}
else
{
}
/* Initialize System - Clock, Flash settings with Efuse self check */
systemInit();
{
tApplicationReset = ( *( volatile uint32_t * )0x08002004 );
}
/* Initialize VIM table */
{
uint32_t i;
for (i = 0; i ISR[i] = s_vim_init[i];
}
}
.......................
Thanks.