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

pragma for code section

Dear Sir, for example,I am written the following code in main.

#include........

#pragma arm section code="foo"
int add1(int x)
{ return x++;
} #pragma arm section codee

int main()
{unsigned char t; ...... t=add1(t); ......
}

how can i place this function at a particular memory location in flash(ROM) using scatter file.Kindly tell me what should i write in scatter file to locate add1 at a particular memory location.

Thanks

Parents Reply Children
No data