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

EKG_1298模块的开发环境?

大家好,

     我们拥有EKG1298模块的材料, 但如何生成EKG1298的可执行image, 用于下载执行?

     例如: 编译错误如下:

       

-i"D:/CCS_6.0/ccsv6/ccs_base/msp430/lib/5xx_6xx_FRxx" –reread_libs –warn_sections –display_error_number –diag_wrap=off –xml_link_info="MSP430-Timer2_linkInfo.xml" –rom_model -o "MSP430-Timer2.out"  "./MSP430_ADS1298.obj" "../lnk_msp430f5342.cmd" -l"libc.a" -l"libmath.a" 
<Linking>
 undefined  first referenced    
  symbol        in file         
 ———  —————-    
 DAC12_1CTL ./MSP430_ADS1298.obj
 DAC12_1DAT ./MSP430_ADS1298.obj
 FLL_CTL0   ./MSP430_ADS1298.obj
>> Compilation failure
 OA0CTL0    ./MSP430_ADS1298.obj
 OA0CTL1    ./MSP430_ADS1298.obj
 OA1CTL0    ./MSP430_ADS1298.obj
 OA1CTL1    ./MSP430_ADS1298.obj
 SCFQCTL    ./MSP430_ADS1298.obj
 TACCR0     ./MSP430_ADS1298.obj
 TACCR1     ./MSP430_ADS1298.obj
 TACCTL1    ./MSP430_ADS1298.obj
 TACTL      ./MSP430_ADS1298.obj
谢谢!
user5274273:

我们将这些变量的定义引出:
#ifndef SFR_8BIT
/* External references resolved by a device-specific linker command file */
#define SFR_8BIT(address)extern volatile unsigned char address
#define SFR_16BIT(address)extern volatile unsigned int address
//#define SFR_20BIT(address)extern volatile unsigned int address
typedef void (* __SFR_FARPTR)();
#define SFR_20BIT(address) extern __SFR_FARPTR address
#define SFR_32BIT(address)extern volatile unsigned long address

#endif

#if 1
SFR_8BIT(OA0CTL0);/* OA0 Control register 0 */
SFR_8BIT(OA0CTL1);/* OA0 Control register 1 */
SFR_8BIT(OA1CTL0);/* OA1 Control register 0 */
SFR_8BIT(OA1CTL1);/* OA1 Control register 1 */

SFR_16BIT(DAC12_1CTL);/* DAC12_1 Control */
SFR_16BIT(DAC12_1DAT);/* DAC12_1 Data */

SFR_16BIT(ADC12CTL0);/* ADC12 Control 0 */
SFR_16BIT(ADC12CTL1);/* ADC12 Control 1 */
SFR_16BIT(ADC12IFG);/* ADC12 Interrupt Flag */
SFR_16BIT(ADC12IE);/* ADC12 Interrupt Enable */
SFR_16BIT(ADC12IV);/* ADC12 Interrupt Vector Word */

SFR_16BIT(TACTL);/* Timer A Control */

SFR_16BIT(TACCR0);/* Timer A Capture/Compare 0 */
SFR_16BIT(TACCR1);/* Timer A Capture/Compare 1 */

SFR_8BIT(BTCTL);/* Basic Timer Control */
#define XCAP18PF(0x30)/* XIN Cap = XOUT Cap = 18pf */

#define LFOF(0x02)/* Low Frequency Oscillator Fault Flag */

SFR_8BIT(FLL_CTL0);/* FLL+ Control 0 */

SFR_8BIT(SCFQCTL);/* System Clock Frequency Control */

#define CONSEQ_2(2*2u)/* ADC12 Conversion Sequence Select: 2 */

#define DAC12AMP_2(2*0x0020u)/* DAC12 amplifier 2: low,low */
#define DAC12CALON(0x0200)/* DAC12 calibration */
#define DAC12ENC(0x0002)/* DAC12 enable conversion */
#define DAC12IR(0x0100)/* DAC12 input reference and output range */

#define ENC(0x002)/* ADC12 Enable Conversion */

#define OAADC1(0x02)/* OAx output to ADC12 input channel select 1 */

#define OAP_0(0x00)/* OAx Non-inverting input select 00 */
#define OAP_1(0x10)/* OAx Non-inverting input select 01 */
#define OAP_2(0x20)/* OAx Non-inverting input select 10 */
#define OAP_3(0x30)/* OAx Non-inverting input select 11 */

#define OAPM_1(0x04)/* OAx Power mode select: slow */

#define OARRIP(0x01)/* OAx Rail-to-Rail Input off */

#define REF2_5V(0x040)/* ADC12 Ref 0:1.5V / 1:2.5V */

#define SHP(0x0200)/* ADC12 Sample/Hold Pulse Mode */

#define SHS_1(1*0x400u)/* ADC12 Sample/Hold Source: 1 */

#define INCH_1(1)/* ADC12 Input Channel 1 */

#define SHT0_4(4*0x100u)/* ADC12 Sample Hold 0 Select Bit: 4 */

#define SREF_1(1*0x10u)/* ADC12 Select Reference 1 */

SFR_16BIT(TACCTL1);/* Timer A Capture/Compare Control 1 */

#endif

但错误结果如上所示!

灰小子:

能否提供下完整的模块名字,搜索EKG1298找不到这个模块

user5274273:

回复 灰小子:

 EKG Board bom.pdf

Susan Yang:

回复 user5274273:

您现在用的是 ADS1298R ECGFE?

user5274273:

回复 Susan Yang:

是,

编译该如何处理?

Susan Yang:

回复 user5274273:

请问您现在是编译的是哪个code?

您可以试一下 e2e.ti.com/…/60104 给出的程序

赞(0)
未经允许不得转载:TI中文支持网 » EKG_1298模块的开发环境?
分享到: 更多 (0)