cancel
Showing results for 
Search instead for 
Did you mean: 

Error: stopped on undefined memory access

lseletron
Associate II
Posted on May 09, 2007 at 02:26

Error: stopped on undefined memory access

1 REPLY 1
lseletron
Associate II
Posted on May 09, 2007 at 02:26

Hi,

I am emulating 72325J6 with DVP3 and using the Cosmic compiler.

I am getting this error:

Error: undefined memory access at XXXX

XXXX sometimes is random, sometimes is permanent and is 0x1ee7 (map file says it is in the debug section)

I have in one of the external interrupt ISRs this code:

@interrupt void Ex3Int(void)

{

DisableInterrupts;

.....

TAOC1R=SomeValue;

TAOC2R=790;//When this is commented, no problems

......

EnableInterrupts;

}

When I comment the line setting TAOC2R, the program runs OK.

Why does this happen?

Thanks