This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM8148 裸机下测试中断,在link时,显示intVects.asm 的全局函数没有定义,编译环境CCS5.5



Hello,

DM8148 裸机下测试C674x DSP中断,在link时,显示intVects.asm 的调用中断函数没有定义,编译环境CCS5.5。

但是事实上,该函数已经定义。

 

intVects.asm 文件

  .ref_Timer_isr  ;

VEC_ENTRY .macro addr    

STW   B0,*--B15    

MVKL  addr,B0    

MVKH  addr,B0    

 B     B0    

 LDW   *B15++,B0    

NOP   4 

 .endm

_vec_dummy:   B    B3   NOP  5

 .sect ".text:vecs"  .align 1024

_vectors:

_vector0:   VEC_ENTRY _c_int00    ;RESET

...

_vector4: VEC_ENTRY _Timer_isr  ;

 

在另外一个文件中定义 Timer_isr()函数。

interrupt void Timer_isr()

{    

 ......

}

但是编译完成,连接时,提示

undefined symbol   _Timer_isr 。

具体参阅附件的两个文件。

请高手指点。

 

 

 

 

 

中断函数及中断矢量.zip