AT91SAM7S512 porting

aviasaf wrote on Tuesday, May 26, 2009:

hi all,

i am trying to port my free-rtos to AT91SAM7S512,

but i have still got problem while i am defining the the linker options, mapping the RAM and ROM regions.

below is the mapping i have tried:

/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x00000100;
define symbol __ICFEDIT_region_ROM_end__   = 0x0007FFFF;
define symbol __ICFEDIT_region_RAM_start__ = 0x00200000;
define symbol __ICFEDIT_region_RAM_end__   = 0x0020FFFF;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__   = 0x400;
define symbol __ICFEDIT_size_svcstack__ = 0x100;
define symbol __ICFEDIT_size_irqstack__ = 0x100;
define symbol __ICFEDIT_size_fiqstack__ = 0x40;
define symbol __ICFEDIT_size_undstack__ = 0x40;
define symbol __ICFEDIT_size_abtstack__ = 0x40;
define symbol __ICFEDIT_size_heap__     = 0x400;
/**** End of ICF editor section. ###ICF###*/

also,
i defined const buff of 300K in order to check my mapping definitions

and I saw (in the debugger )that this buffer start from address 0x100 and go on,
but some of its content (from addresss 0x100 to 0x2500) has destroyed the deafualt value of 0xcd.

did any one deal before with this kind of problem?

davedoors wrote on Tuesday, May 26, 2009:

Which compiler is this? Which demo are you using as a base?

Moving to a larger SAM7 device should (ha ha) just be a case of increasing the length of the flash and ram in the linker file and leaving everything else the same.

aviasaf wrote on Tuesday, May 26, 2009:

hi,

i am using IAR workbench 5.3

the demo that i use is based on the demo that i have download for a at91sams64

well,

i have already tried to increase to memory regions but it is not working…