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).

Parents
  • The linker is telling you that you have two different segments assigned to the beginning of memory. Are you using any _at_ declarations, or any linker directives that alter the default location of segments? How about interrupt routines?

    Normally the ARM interrupt vectors would reside at 0.

Reply
  • The linker is telling you that you have two different segments assigned to the beginning of memory. Are you using any _at_ declarations, or any linker directives that alter the default location of segments? How about interrupt routines?

    Normally the ARM interrupt vectors would reside at 0.

Children
More questions in this forum