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.

PGA460 BOOSTXL board with MSP430G2553

Other Parts Discussed in Thread: MSP430G2553, PGA460, ENERGIA, MSP-EXP430F5529LP, BOOSTXL-PGA460

1. I have used the MSP430F5529LP board to interface with the GUI for using the PGA430 BOOST XL EVM. It has been specified that the EVM is designed to be cross compatible with other TI launchpad boards. I have an MSP430G2553 board with me and so attempted to upload the GetDistance example code for the PGA460_USSC library. I get the following error message:

Energia: 1.6.10E18 (Windows 8.1), Board: "MSP-EXP430G2 w/ MSP430G2553"

Build options changed, rebuilding all
C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'void spi_initialize()':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:67:2: error: 'UCB1CTL1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:68:2: error: 'UCB1CTL0' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:71:45: error: 'PM_UCB1CLK' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:72:46: error: 'PM_UCB1SDA' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:73:46: error: 'PM_UCB1SCL' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:75:2: error: 'UCB1BR0' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:76:2: error: 'UCB1BR1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'void spi_disable()':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:86:5: error: 'UCB1CTL1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'uint8_t spi_send(uint8_t)':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:94:2: error: 'UCB1TXBUF' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:95:9: error: 'UCB1STAT' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:98:9: error: 'UCB1RXBUF' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'void spi_set_divisor(uint16_t)':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:109:2: error: 'UCB1CTL1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:110:2: error: 'UCB1BR0' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:111:2: error: 'UCB1BR1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'void spi_set_bitorder(uint8_t)':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:120:5: error: 'UCB1CTL1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:121:5: error: 'UCB1CTL0' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp: In function 'void spi_set_datamode(uint8_t)':

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:130:5: error: 'UCB1CTL1' was not declared in this scope

C:\Users\Kevin\Documents\Energia\libraries\slac741g\utility\pga460_usci_spi.cpp:133:9: error: 'UCB1CTL0' was not declared in this scope

Multiple libraries were found for "PGA460_USSC.h"
Used: C:\Users\Kevin\Documents\Energia\libraries\slac741g
Not used: C:\energia-1.6.10E18\libraries\slac741g
Not used: C:\energia-1.6.10E18\libraries\slac741g
Not used: C:\energia-1.6.10E18\libraries\slac741g
Not used: C:\energia-1.6.10E18\libraries\slac741g
exit status 1
Error compiling for board MSP-EXP430G2 w/ MSP430G2553.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

However I get no such error message when I select the MSP-EXP430F5529LP board for compiling and uploading.

2. With the GetDistance code uploaded to the MSP-EXP420F5529LP, I dont get any text on the Serial Monitor (Baudrates match at 9600). I also noticed multiple COM ports being shown just for the one board (with everything else disconnected). 

  • Hi Kevin,

    Are you using the latest version (1.0.8) of the PGA460 Energia library and code examples? This was just released early today, so I recommend you download it at: www.ti.com/.../slac741
    I found that the PGA460 SPI library was conflicting with Energia's primary SPI library, so I made corrective updates to version 1.0.8, although this will not completely resolve your errors.

    The MSP430G2553 will require additional modifications:
    1) The GetDistance example code as-is exceeds the memory size of the G2553. You will need to comment out as much unused code from the called functions within the PGA460_USSC.cpp library. If you are only using one communication mode, the other communication mode cases and functions can be commented out.
    2) If you intend on using SPI, you will need to manually update the pga460_usci_spi.cpp files UCB1 references to UCA0 or UCB0, and jump wire from the G2553's LaunchPad's corresponding pins to the BOOSTXL-PGA460. The F5529LP's secondary SPI bus is used by the BOOSTXL-PGA460, but the G2553 does not share the same secondary SPI pin functions.
    If you do not intend on using SPI, comment out or delete all references to the PGA460-SPI functions on the PGA460_USSC.cpp and .h files.

    Unfortunately, the G2553 experience is not yet fully optimized, especially for SPI communication. The UART, TCI, or OWU modes will work identically to the F5529LP without the need for additional modifications. I will use this feedback as an opportunity to update version 1.0.9 to detect/recognize when a G2553LP is connected to automatically exclude all SPI references.