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

init: (__use_two_region_memory)

Hi,

I want to select the two region memory model. Therefore I have defined two execution regions in my scatter-loading file.

....
ARM_LIB_HEAP 0x20100000 EMPTY 0x100000â€'0x8000  ARM_LIB_STACK 0x20200000 EMPTY â€'0x8000

Is it ok to add this pragma (only) within my first c.code, where the main function exists..., or do I have to add this pragma within every c-file?

#pragma import(__use_two_region_memory)

void main(void)
{


}

Moreover I often see that there's another line in the scatter-loading file (working with atmel processors):

ScatterAssert(ImageLength(Relocate_region) <  0x6000)

e.g. (http://www.keil.com/forum/docs/thread13983.asp)

Could someone explain me the reason of this small line?

best regards
David

0