Dear all,
I try to configure my msp430 in ultra low power with the following commands in an hello world code....
BCSCTL3 |= LFXT1S_2;
BCSCTL2 |= SELM_3 | SELS;
BCSCTL3 = 0x20;
__bis_status_register(SCG1+SCG0);
I use gcc compiler on ubuntu 12.04 LTS .
My makefile is like that
TARGET := $(v).elf
CC:= msp430-gcc
CFLAGS:= -Os -Wall -g -O0 -mmcu=msp430g2553
OBJS:=$(v).o
$(TARGET):$(OBJS)
$(CC) -o $(TARGET) $(FLAGS) $(OBJS)
clean:
rm rf $(TARGET) $(OBJS)
prog: $(TARGET)
mspdebug -q rf2500 "prog $(TARGET)"
I have fine incluse #include <msp430g2553.h> in my hello world file.
Compilation avorte with the followingl inker error : msp430/main.c:9: undefined reference to `__BCSCTL3'
Any ideas o solve this issue ?
Best regards,
GM