Other Parts Discussed in Thread: MSP430FR2311, MSP430WARE
Tool/software: Code Composer Studio
MSP430'ers,
I'm using the driverlib on a fr2111, but I've also noticed the issue when using the fr2311. Port 2 isn't properly handled by the driverlib and writes to the registers do not occur as intended. According to the documentation I should be able to pass GPIO_PORT_P2 to the GPIO functions, but when the base address lookup is done using GPIO_PORT_TO_BASE[] the definition for the port base isn't there. Going a step deeper, it looks like the ifdefs that populate this lookup come from the device specific header file, in this case msp430fr2111.h. The define for port 1 is there, but not port 2. There are also mentions of Port A and Port J which don't seem to be documented in the datasheet or FUG.
Looks like a bug to me, but who knows. Maybe I'm doing something silly. What do you think?
Best,
Trey