This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MEMORY SPACE OVERLAP

Hi all,
When i try to run the program below ,i got the two warnings below.
I didnt add stratup.s in my project.
I am geting the error whenever i include the line *(int *)0x40003456L = fact;

I would like to know the cause of the problem and the way to get rid of it.

looking for ur help.

t.senthil

#include <LPC21xx.H>
 #include <stdio.h>

void main (void)
{
	int i,fact,j=1,value=6;


 for (i=1; i<=value; ++i)

      j=j*i;

    printf("The factorial of %d is %d\n",value,j);

	fact=j;
	*(int *)0x40003456L = fact;
}

Build target 'Target 1'
linking...
*** WARNING L30: MEMORY SPACE OVERLAP
FROM: 00000000H
TO: 0000001BH
*** WARNING L30: MEMORY SPACE OVERLAP
FROM: 0000001CH
TO: 00000023H
Program Size: data=1288 const=50 code=1844
"Testing memory write2" - 0 Error(s), 2 Warning(s).

0