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.

DRV8844EVM: Can't compile software provided by the firmware code of microcontroler MSP430F1612 https://www.ti.com/lit/zip/slvc445.

Part Number: DRV8844EVM
Other Parts Discussed in Thread: MSP430F1612, MSP430F2617

When I try to simply compile the software, I get undefined symbols that should be defined by the included msp430f1612.h file.  For instance, BCSCTL3 is undefined yet BCSCTL2 is.

#10010 errors encountered during linking; "DRV_Spin.out" not built
<a href="file:/C:/ti/ccs1120/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain
gmake: *** [all] Error 2
gmake[1]: *** [DRV_Spin.out] Error 1
unresolved symbol BCSCTL3, first referenced in ./main.obj
unresolved symbol CALBC1_16MHZ, first referenced in ./main.obj
unresolved symbol CALDCO_16MHZ, first referenced in ./main.obj
unresolved symbol P1REN, first referenced in ./main.obj
unresolved symbol P2REN, first referenced in ./main.obj
unresolved symbol P4REN, first referenced in ./main.obj
unresolved symbol P5REN, first referenced in ./main.obj
unresolved symbol P6REN, first referenced in ./main.obj
unresolved symbol REN, first referenced in *
unresolved symbol UCA0BR0, first referenced in ./main.obj
unresolved symbol UCA0BR1, first referenced in ./main.obj
unresolved symbol UCA0CTL0, first referenced in ./main.obj
unresolved symbol UCA0CTL1, first referenced in ./main.obj
unresolved symbol UCA0MCTL, first referenced in ./main.obj
unresolved symbol UCA0TXBUF, first referenced in ./COMM.obj

I am using CCS_v11 which references the following link files:  lnk_msp430f1612.cmd file and msp430f1612.cmd . Is there an update to the files that resolves the symbols?

  • Hi Michael,

    Instead of including the msp430f1612.h file please included msp430.h (#include <msp430.h>)

    Let's start with this and see if it resolved the problem.

    Regards,

    Pablo Armet

  • Thanks Pablo,

    I changed the include file to msp430.h as suggested. That actually increased the number of  undefined items. 

    #20 identifier "CALBC1_16MHZ" is undefined
    #20 identifier "CALDCO_16MHZ" is undefined
    #20 identifier "P1REN" is undefined
    #20 identifier "P2REN" is undefined
    #20 identifier "P3REN" is undefined
    #20 identifier "P4REN" is undefined
    #20 identifier "P5REN" is undefined
    #20 identifier "P6REN" is undefined
    #20 identifier "UC7BIT" is undefined
    #20 identifier "UCA0BR0" is undefined
    #20 identifier "UCA0BR1" is undefined
    #20 identifier "UCA0CTL0" is undefined
    #20 identifier "UCA0CTL1" is undefined
    #20 identifier "UCA0MCTL" is undefined
    #20 identifier "UCA0RXBUF" is undefined
    #20 identifier "UCA0RXIE" is undefined
    #20 identifier "UCA0TXBUF" is undefined
    #20 identifier "UCA0TXBUF" is undefined
    #20 identifier "UCA0TXIE" is undefined
    #20 identifier "UCA0TXIE" is undefined
    #20 identifier "UCA0TXIE" is undefined
    #20 identifier "UCA0TXIFG" is undefined
    #20 identifier "UCB0RXIE" is undefined
    #20 identifier "UCBRKIE" is undefined
    #20 identifier "UCDORM" is undefined
    #20 identifier "UCMSB" is undefined
    #20 identifier "UCOS16" is undefined
    #20 identifier "UCPAR" is undefined
    #20 identifier "UCPEN" is undefined
    #20 identifier "UCRXEIE" is undefined
    #20 identifier "UCSPB" is undefined
    #20 identifier "UCSWRST" is undefined
    #20 identifier "UCSYNC" is undefined
    #20 identifier "UCTXADDR" is undefined
    #20 identifier "UCTXBRK" is undefined
    gmake: *** [COMM.obj] Error 1
    gmake: *** [main.obj] Error 1
    gmake: *** [Task0.obj] Error 1
    gmake: Target 'all' not remade because of errors.

    The change to msp430.h does in turn only reference msp430f1612.h 

    #elif defined (__MSP430F1612__)

    I found the following references that I believe  to be in error in the msp430f1612.h file.

    CALDCO_16MHZ in main.cpp I believe should be CAL_DCO_16MHZ in msp430f1612.h

    CALBC1_16MHZ in main.cpp I believe should be CAL_BC1_16MHZ in msp430f1612.h

    Also, I am confused because I didn't think programmable port resistors were supported on the 1612. Reference to PxREN just shouldn't exist, or at least I didn't find them in the datasheet.

     

  • Hi Michael,

    I think the best group to help you with this issue is the MSP430 MCU team. I will transfer this post to the MCU team to further assist you.

    Regards,

    Pablo Armet

  • Hi Michael,

    I noticed you are referring to F1612 but according the BOM the device on the EVM is MSP430F2617TPMR. Can you make sure your project has the correct device defined?

    Regards,

    Evan

  • Actually Evan, it is an F2617. The software referred to in the DRV8844EVK includes firmware for the F2617. Well, that may be a good reason. 

    Thanks to you and Pablo.

  • The DRV8844EVK schematic shows the MSP430F1612 processor even though the BOM cites a MSP430F2617. Is there a new schematic?

  • Hi Michael,

    I check the latest files in our system. The correct device is the MSP430F2617. Apologies for this confusion.

    Regards,

    Pablo armet