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.

CCS/MSP430FR5739: How to set pin assignments

Part Number: MSP430FR5739
Other Parts Discussed in Thread: MSP430WARE

Tool/software: Code Composer Studio

Hi!

This is my first time working with a non-Arduino microcontroller, and I'm having a lot of difficulties.

I've been assigned the task to set some particular pins on this microcontroller as GPIO outputs, as well as to set some as ADC inputs. I also need to set up a UART on the chip's pins.

I did some research, and it looks like Code Composer Studio is what I should be using for programming this chip. I found some example code, which indicated that I need to use the DriverLib library. I'm trying to set up my project to assign a few pins as outputs. My code looks like:

#include <msp430.h> 
#include "driverlib.h"

/**
 * main.c
 */
int main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer
	GPIO_setAsOutputPin(
	        GPIO_PORT_P1,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_P3,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_P3,
	        GPIO_PIN1
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_PJ,
	        GPIO_PIN0
	        );
	GPIO_setAsOutputPin(
	        GPIO_PORT_PJ,
	        GPIO_PIN1
	        );
	return 0;
}

When I try to build this with the little hammer icon in the upper left, I get this error, repeated a whole bunch of times for different particular files in the driverlib folder.


file "./driverlib/MSP430FR57xx/adc10_b.obj" specifies large code memory model, which is not compatible with small code memory model specified in a previous file or on the command line null: file "./driverlib/MSP430FR57xx/adc10_b.obj" specifies large code memory model, which is not compatible with small code memory model specified in a previous file or on the command line

What am I doing wrong here? I've been trying at this for three days and making very little progress...

**Attention** This is a public forum