Hi,
Using following code sections for accessing A(0-31)-B(0-31) data register sets(core registers) , i am not able to dump these values at some particular time for later analysis.
volatile UINT32 regValue =0;
asm(" MV A1,regValue;");
printf("regValue 1 = %x \n",regValue);
OR
UINT32 regValue2 =0;
UINT32 *pregValue = ®Value2;
asm(" STW A1,*pregValue;");
printf("regValue 1 = %x \n",*pregValue);
Can you please suggest if above approaches are in the right direction or if any alternate way(other than CCS debug environment core register export) to dump these register sets for analysis?
I was able to capture these using exception module.
Exception_Status status;
UINT32 a1;
Exception_getLastStatus(&status);
printf(" A0 = %x\n ", status.excContext->A0 );
But this will work only in case of exception instances, in other cases (e.g. assert ) if i want to capture these, how can i do that ?
Is there any other SYS/BIOS(v6.34) API which can help ?
Regards