Elsewhere in the forum there are threads which say that accessing an invalid area of memory causes an error. I would like this to be the case, but find code executes fine. e.g.
void main(void)
{
int *p = (int*)0x2000;
int a;
*p = 13; // Write to invalid memory
a = *p; // read from invalid memory
for(;;);
}
This runs through to the for(;;) with no problems.
Is it possible to trap either of the above?