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.

MSP430F5131: ADC10 example will not build out of box. Missing register definitions in header files.

Part Number: MSP430F5131
Other Parts Discussed in Thread: MSP430F5132

Hi Experts!

I tried to build any ADC example code for the MSP430F5131. The code example I want to use is MSP430F51x2_ADC10_07.c

However, this is a problem with all ADC10 example codes. The issue is ADC10 registers are not defined in the #include <msp430> header.

After I add #include <msp430F5132.h> (which defines all the registers ADC10CTL0, ADC10SHT_2,...), I still get a similar but different error.

Now, ADC10CTLx registers are undefined. 

(Side note: I did not #include F5131.h files because these files do not define registers ADC10CTL0, ADC10SHT_2,...)

Is there another header file I must include? Wanted to raise awareness of this issue that all MSP430F5131 ADC examples will not build out of box. 

**Attention** This is a public forum