我的工程中包含这个文件:
#include "FXTH87xx02_Firmware_lnk.h" /* Used to link firmware routines to user code */
文件中内容如下:(部分)
#define JMP_MULT_SIGN_INT16 ((UINT16)0xE07B)
#define JMP_VREG_CHECK ((UINT16)0xE07E)
#define JMP_PRECHARGE_VREG ((UINT16)0xE081)
#define JMP_RDE ((UINT16)0xE084)
#define JMP_ACCEL_CONT_START ((UINT16)0xE087)
#define JMP_ACCEL_CONT ((UINT16)0xE08A)
#define JMP_ACCEL_CONT_STOP ((UINT16)0xE08D)
/* Fn definitions */
/* void TPMS_RESET(void) */
#define TPMS_RESET ((void(*)(void))(JMP_RESET))
/* UINT8 TPMS_READ_VOLTAGE(UINT16 *u16UUMA) */
#define TPMS_READ_VOLTAGE ((UINT8(*)(UINT16*))(JMP_READ_VOLT))
/* UINT8 TPMS_COMP_VOLTAGE(UINT8 *u8CompVoltage, *UINT16 u16UUMA) */
#define TPMS_COMP_VOLTAGE ((UINT8(*)(UINT8*, UINT16*))(JMP_COMP_VOLT))
/* UINT8 TPMS_READ_TEMPERATURE(UINT16 *u16UUMA) */
#define TPMS_READ_TEMPERATURE ((UINT8(*)(UINT16*))(JMP_READ_TEMP))
/* UINT8 TPMS_COMP_TEMPERATURE(UINT8 *u8Temp, UINT16 *u16UUMA) */
#define TPMS_COMP_TEMPERATURE ((UINT8(*)(UINT8*, UINT16*))(JMP_COMP_TEMP))
/* UINT8 TPMS_READ_PRESSURE(UINT16 *u16UUMA, UINT8 u8Avg) */
#define TPMS_READ_PRESSURE ((UINT8(*)(UINT16*, UINT8))(JMP_READ_PRESSURE))
问题是:在mian()函数中,我调用FXTH87xx02_Firmware_lnk.h这个文件中的任何一个函数,在进入debug模式运行后都提示错误信息:No source available for "0x000C (0x000C)() "(有的时候是0x0005或者其他数据),这到底是什么原因呢?希望各位高人给与指点,不胜感激。 |