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 ,
If I generate the elf file from the Default bootcode and pagetables , I get a very small size but
after mapping the Stack pointer to SRAM , I am getting a huge HEX file.
Here is the loader file code
============================================================
MEMORY{ rom (r) : ORIGIN = 0x00000000, LENGTH = 0x3FFFF /* pageTable (rw) : ORIGIN = 0x0B000000, LENGTH = 0x3FFF */ heap (rw) : ORIGIN = 0x02001000, LENGTH = 0x1FFF /* stack(rw) : ORIGIN = 0x0B120000, LENGTH = 0xFFFF */ /* data_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF bss_mem (rw) : ORIGIN = 0x02020000, LENGTH = 0xFFFF */ ram (rw) : ORIGIN = 0x02004000, LENGTH = 0x3FFF}
SECTIONS{
/* Code starts with bootcode, then the vector table, then the * remainder of the code */ .text : { *bootcode.o(boot) *vectors.o(vectors) /* *(.text) /* remainder of code */ } > rom
.heap : { *stackheap.o(stackheap) } > heap . = ALIGN(4);
/* Data */ /* __data_start = .; */ .data : AT (_sdata ) { . = ALIGN(4); _sdata = .; *(.data) *(.data*) } > ram
I dont understand what is the Issue here.
The size of the Hex generated is 79MB.
Thanks
Aashish