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.

Energia Support for MSP430FR6972.

Other Parts Discussed in Thread: ENERGIA, MSP430FR6972, ENERGYTRACE, MSP430FR6989

I need help adding support for MSP430FR6972 in Energia. I tried finding the board.mk and pin_energia.h but couldnt find it even on github. If that is too complicated then i would like to know if there are any other ways to add the board support through CCS in Energia. Because i am using CCS for EnergyTrace. I have Modified board.txt , board.mk so far but cant find any reference for the pin_energia.h.

  • Hi Noman,
    Sorry. We have limited experience in Energia. We may have some thoughts if you can explain us what is the pin_energia.h used for.

    Best regards,
    Cash Hao
  • pin_energia is used for Pin locations of different MCUs. I have attached a small portion of the file so you can have an idea about the file




    #if defined(__MSP430_HAS_USCI__)
    static const uint8_t SS      = 8;  /* P2.0 */
    static const uint8_t SCK     = 7;  /* P1.5 */
    static const uint8_t MOSI    = 15; /* P1.7 */
    static const uint8_t MISO    = 14; /* P1.6 */
    static const uint8_t TWISDA  = 14;  /* P1.6 */
    static const uint8_t TWISCL  = 15;  /* P1.7 */
    static const uint8_t DEBUG_UARTRXD = 3;  /* Receive  Data (RXD) at P1.1 */
    static const uint8_t DEBUG_UARTTXD = 4;  /* Transmit Data (TXD) at P1.2 */
    #define TWISDA_SET_MODE  (PORT_SELECTION0 | PORT_SELECTION1 /* | INPUT_PULLUP*/) /* do not enable the pull ups for this device */
    #define TWISCL_SET_MODE  (PORT_SELECTION0 | PORT_SELECTION1 /* | INPUT_PULLUP*/)
    #define DEBUG_UARTRXD_SET_MODE (PORT_SELECTION0 | PORT_SELECTION1 | INPUT)
    #define DEBUG_UARTTXD_SET_MODE (PORT_SELECTION0 | PORT_SELECTION1 | OUTPUT)
    #define SPISCK_SET_MODE (PORT_SELECTION0 | PORT_SELECTION1)
    #define SPIMOSI_SET_MODE (PORT_SELECTION0 | PORT_SELECTION1)
    #define SPIMISO_SET_MODE (PORT_SELECTION0 | PORT_SELECTION1)
    #endif
    
    #define DEBUG_UART_MODULE_OFFSET 0x0

  • I've had good luck tweaking between Energia and CCS (even debugging assembly. Please see the bottom of:
    forum.43oh.com/.../

    >>Energia18 and CCS7, you can import an .ino sketch file into CCSv7 (makes a local copy) and step by step debug.
    The key is to use compatible versions.

    Please see the bottom of the following for an example screenshot e2e.ti.com/.../663178
  • yes i had success with uploading a sketch via ccsv8. One more question. Where can i find the software pinout for msp430fr6972. i think i am very close to modifying pin_energia.h for 6972 , the problem is that uart is not working even after changing the pin number of debug uart and auxilary uart
  • Especially if you are using a multiplexed pin, getting a peripheral enabled in Energia can be tricky if not already enable.

    Have you looked at the pin map for MSP430FR6989?

    (Attached which I found with Google search and supported in Energia18. Not sure why it is not on energia.nu).

    Eyeballing the pin maps though different size/numbered packages, much of the mux'ed pins look similar.

    Can you try that?

    If not, you'll have to go through the pin multiplexing sections of the datasheet and family guide (Chap 12) to enable in Energia.

  • The pin mapping is alot more confusing. I have manually figured out some important pins . i.e. (hardware pin ) 25 == 38(software pin) etc.
    UART is functional after some modifications. Now i am working on I2C. which requires modifications in the library.. so i guess this thread should be closed as your suggestions gave me a jumpstart. Thanks

**Attention** This is a public forum