Linker error for start undefined

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Linker error for start undefined

990 次查看
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

}

标签 (1)
0 项奖励
回复
1 回复

783 次查看
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 项奖励
回复