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.
Hello,
I have the old Launchpad (Rev. 1.4) with MSP430G2231IN14 MCU and I'm trying Lab3 of the Launchpad Workshop (I know that my particular device is not used in this workshop).
IDE: CCS 6.1 with GCC Compiler
Current MSP430ware (include-paths added to IDE)
When I try to compile
#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_PIN6); return 0; }
I get an error:
>> Compilation failure "../main.c", line 10: error #20: identifier "GPIO_PORT_P1" is undefined "../main.c", line 10: error #20: identifier "GPIO_PIN0" is undefined "../main.c", line 10: error #20: identifier "GPIO_PIN6" is undefined
What's wrong with my code? Is there a header file missing?
Thank you very much!
Regards
Hi Michael,
MSP430 Driver Library is only supporting certain device families - F5xx/6xx and FR5xx/6xx. The G2xx is not supported by driver library - this is why you are getting build errors.
Regards,
Katie
While the driverlib does not support the 2x family, you can use GRACE to do at least the configuration part and the basic skeleton of your ISRs.
**Attention** This is a public forum