We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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
It is OK to provide the pragma in any file.
Regarding ScatterAssert, please see here:
infocenter.arm.com/.../ch05s02s08.html
Regards Marcus http://www.doulos.com/arm/