Preetu Abraham

Linker error for start undefined

Discussion created by Preetu Abraham on Feb 13, 2017
Latest reply on Mar 13, 2017 by Fang Li

Hi,

 

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

 

 

 

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

}

Outcomes