TI中文支持网
TI专业的中文技术问题搜集分享网站

找不到intcVectorTable和_intcVectorTable

现在对OMAPL138 LCDK板子上的button进行测试,将其设置为中断来控制打印,但是编译中提示找不到字符intcVectorTable和_intcVectorTable 。求大神们解答~

代码是:

/* 头文件 */
#include<stdio.h>
#include "hw_types.h"
#include "hw_syscfg0_OMAPL138.h"
#include "soc_OMAPL138.h"
#include "gpio.h"
#include "interrupt.h"
#include "lcdkOMAPL138.h"

/* 函数声明 */
void GPIOBankPinInit(void);
void SetupInt(void);
void ConfigureIntGPIO(void);
void GPIO2_4_Isr(void);

/*
* main.c
*/
void main(void)
{
//int i;
GPIOBankPinInit();
SetupInt();
ConfigureIntGPIO();
while(1)
{
//for(i=0x00FFFFFF;i>0;i–);//延时
//GPIOPinWrite(SOC_GPIO_0_REGS,45,GPIO_PIN_LOW);
}
}

void GPIOBankPinInit(void)
{
//GPIOBank2Pin4PinMuxSetup();
GPIOBank2Pin5PinMuxSetup();
//GPIOBank2Pin12PinMuxSetup();

GPIODirModeSet(SOC_GPIO_0_REGS, 38, GPIO_DIR_INPUT);
//GPIODirModeSet(SOC_GPIO_0_REGS, 45, GPIO_DIR_OUTPUT);

GPIOIntTypeSet(SOC_GPIO_0_REGS, 38, GPIO_INT_TYPE_FALLEDGE);
//GPIOIntTypeSet(SOC_GPIO_0_REGS, 38, GPIO_INT_TYPE_FALLEDGE);

GPIOBankIntEnable(SOC_GPIO_0_REGS,2);
}

void SetupInt(void)
{
IntDSPINTCInit();

IntGlobalEnable();
}

void ConfigureIntGPIO(void)
{

IntRegister(C674X_MASK_INT4,GPIO2_4_Isr);

IntEventMap(C674X_MASK_INT4,SYS_INT_GPIO_B2INT);

IntEnable(C674X_MASK_INT4);
}

void GPIO2_4_Isr(void)
{
//int i;
//GPIOPinWrite(SOC_GPIO_0_REGS,45,GPIO_PIN_HIGH);
printf("SW Down\n");
//GPIOPinWrite(SOC_GPIO_0_REGS,45,GPIO_PIN_HIGH);
//for(i=0x00FFFFFF;i>0;i–);//延时
}

编译之后的问题是:

**** Build of configuration Debug for project INTLED ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building file: ../include/c674x/omapl138/interrupt.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 –abi=eabi -g –include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" –include_path="../include" –include_path="../include/hw" –include_path="../include/c674x/omapl138" –define=omapl138 –display_error_number –diag_warning=225 –diag_wrap=off –preproc_with_compile –preproc_dependency="include/c674x/omapl138/interrupt.pp" –obj_directory="include/c674x/omapl138" "../include/c674x/omapl138/interrupt.c"
'Finished building: ../include/c674x/omapl138/interrupt.c'
' '
'Building target: INTLED.out'
'Invoking: C6000 Linker'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6740 –abi=eabi -g –define=omapl138 –display_error_number –diag_warning=225 –diag_wrap=off -z –stack_size=0x800 -m"INTLED.map" –heap_size=0x800 -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.4/include" –reread_libs –define=DSP_CORE=1 –warn_sections –display_error_number –diag_wrap=off –xml_link_info="INTLED_linkInfo.xml" –rom_model -o "INTLED.out" "./include/c674x/omapl138/interrupt.obj" "./include/c674x/omapl138/gpio.obj" "./main.obj" "../OMAPL138.cmd" "../library/drivers.lib" -l"libc.a"<Linking>

undefined first referenced symbol in file ——— —————- intcVectorTable ./include/c674x/omapl138/interrupt.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "INTLED.out" not built
>> Compilation failure
gmake: *** [INTLED.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

这是怎么回事??

weiwei ai:

回复 Tony Tang:

这个是照着别人给的程序自己写的~谢谢!

weiwei ai:

回复 Tony Tang:

请问有什么资料来介绍starterware的结构吗?

weiwei ai:

回复 Tony Tang:

嗯嗯,好的,谢谢~

赞(0)
未经允许不得转载:TI中文支持网 » 找不到intcVectorTable和_intcVectorTable
分享到: 更多 (0)