Linker error for start undefined

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Linker error for start undefined

587 Views
preetuabraham
Contributor III

Hi,

 

I am facing a linker error as "Undefined:start"

 

 176140_176140.jpglinker.jpg

 

But the start is defined in vector. c for

 

 

typedef void (* vectorTableEntryType)(void);

 

#pragma define_section vectortable ".vectortable" far_absolute R

 

__declspec(vectortable) vectorTableEntryType VECTOR_TABLE[] = { /* Interrupt vector table */

IN__SP_INIT , /* Initial SP */

start , /* Initial PC */

_Access_Error , /* Access Error */

_Address_Error , /* Address Error */

_Illegal_Instruction , /* Illegal Instruction */

_Divide_by_Zero , /* Divide by Zero */

 

 

 

 

};

 

  

  

  

asm __declspec(register_abi) void start(void){

 

move.w #0x2700,SR

jmp _asm_startmeup

 

//.end

}

Labels (1)
0 Kudos
1 Reply

380 Views
miduo
NXP Employee
NXP Employee

Hi,

I am not sure what CW version you used. Anyway, you should edit the "Coldfire Linker" and change the Entry Point to: _asm_startmeup. Hope it is helpful.


					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos