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.

MSP430F5515 Analog Code Examples Broken?

Other Parts Discussed in Thread: MSP430F5515, MSP430F5529

Hi all,

I went and downloaded the code examples for the MSP430F5515 from here: http://focus.ti.com/docs/prod/folders/print/msp430f5515.html#toolssoftware

Specifically I downloaded from the link MSP430F552x C Examples (IAR and CCSv4) (Rev. A). I thought to myself, i'm using a 5515 which doesn't quite match the 552x pattern, but it's there on the TI 5515 page, so I'll give it a shot.

Most of the code seems to compile, but I took the ADC code, as is without modification, creating a new CCS v4 project targetting the 5515 and sticking MSP430F552x_adc_01.c into it as t

he source file. I get a bunch of build errors:

unresolved symbol ADC12CTL0, first referenced in ./MSP430F552x_adc_01.obj  adc_test line 0 1288275292085 1
unresolved symbol ADC12CTL1, first referenced in ./MSP430F552x_adc_01.obj  adc_test line 0 1288275292100 2
unresolved symbol ADC12IE, first referenced in ./MSP430F552x_adc_01.obj  adc_test line 0 1288275292100 3
unresolved symbol ADC12IV, first referenced in ./MSP430F552x_adc_01.obj  adc_test line 0 1288275292100 4
unresolved symbol ADC12MEM0, first referenced in ./MSP430F552x_adc_01.obj  adc_test line 0 1288275292100 5

My gut tells me there is something very wrong with the header file register definitions for the chip... So I dug a little deeper, and opened up the header filed called out by the example code (msp430f5529.h)... sure enough there is a line in there:

 SFR_16BIT(ADC12CTL0);                         /* ADC12+ Control 0 */

and

#define SFR_16BIT(address)  extern volatile unsigned int address

... but the definition of ADC12CTL0 is nowhere to be found... so what gives? Is there some other header I need to include when using the msp430's ADC hardware to satisfy this extern definition? Also, in my ultimate application, I expect I will include the header filed named msp430x551x.h rather than msp430f5529.h but maybe I'm missing something? Hopefully someone can clarify this for me, because I'm pretty baffled at this point.

Thanks,

Vic

**Attention** This is a public forum