Dear all,
I just want to know why should we always give separate sections for resetisr or code_Start of the program in linker file.
Example
------------
This works fine:
Defining flash sections as these:
CMBANK0_Sec8_RESETISR : origin = 0x00250000, length = 0x00000008 /* Boot to Flash Entry
CMBANK0_SECTOR8 : origin = 0x00250008, length = 0x0000FFF8
//CMBANK0_SECTOR8 : origin = 0x00250000, length = 0x00010000
.resetisr : > CMBANK0_Sec8_RESETISR,ALIGN(16) //--------------->Giving seperate section defined
.vftable : > CMBANK0_SECTOR8,ALIGN(16) /* Application placed vector table in Flash*/
.vtable : >> S0RAM | S1RAM /* Application placed vector table in RAM*/
.text : >> CMBANK0_SECTOR8 | CMBANK0_SECTOR9,ALIGN(16)
This wont work:
----------------
Defining flash sections as these:
CMBANK0_SECTOR8 : origin = 0x00250000, length = 0x00010000
.resetisr : > CMBANK0_SECTOR8 ,ALIGN(16)
.vftable : > CMBANK0_SECTOR8,ALIGN(16) /* Application placed vector table in Flash*/
.vtable : >> S0RAM | S1RAM /* Application placed vector table in RAM*/
.text : >> CMBANK0_SECTOR8 | CMBANK0_SECTOR9,ALIGN(16)
Giving a separate section for resetisr only works otherwise things wont work , why is it so. As per my understanding though we specify the linker code in second way we are allocating spaces in the flash as we did it on first methord. Kindly clear this for me..
Thanks and regards,
Stevin Martin
 
				 
		 
					 
                          