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.

Compilation error msp430 - unable to find UCA0BRW_L etc.

Other Parts Discussed in Thread: MSP430F5435

Hi,

I'm using CCS v4.0.1.01001 with compiler v3.2.1 to build for a msp430f5435

and am getting the following compile errors when compiling a CCEv3.1 that has been imported into CCSv4.0:

Linking failed. Check the Console window for details.

unresolved symbol UCA0BRW_H, first referenced in ./source/WiFi/wifi_hal.obj

unresolved symbol UCA0BRW_L, first referenced in ./source/WiFi/wifi_hal.obj

unresolved symbol UCA0CTLW0_L, first referenced in ./source/WiFi/wifi_hal.obj

unresolved symbol UCA0ICTL_H, first referenced in ./source/WiFi/wifi_hal.obj

unresolved symbol UCA0ICTL_L, first referenced in ./source/WiFi/wifi_hal.obj

unresolved symbol UCB0BRW_H, first referenced in ./source/libmmc/hal_SPI.obj

unresolved symbol UCB0BRW_L, first referenced in ./source/libmmc/hal_SPI.obj

unresolved symbol UCB0CTLW0_H, first referenced in ./source/libmmc/hal_SPI.obj

unresolved symbol UCB0CTLW0_L, first referenced in ./source/libmmc/hal_SPI.obj

unresolved symbol UCB0ICTL_H, first referenced in ./source/libmmc/hal_SPI.obj

I've checked the files hal_SPI.h and wifi_hal.h and both include a header file that contains '#include <msp430x54x.h>'
I've only just started using CCS v4.0 - can someone please point out how to fix this problem?
Thanks,
Suduko

  • In the CCEv3.1 code generation tools include directory, the definition of the above symbols was included in the lnk_msp430f5435.cmd Linker command file to map the specific address to these labels.

    This apparently changed in CCSv4.0, and these same definitions are now in the msp430x54x.cmd file which is included in the lnk_msp430f5435.cmd at the end.  Therefore, I suspect that you need to make sure the path to this file is provided to the Linker to help it find the file.
    On my machine, the path is C:\Program Files\Texas Instruments\ccsv4\msp430\include

     

  • Thanks Brandon - I'll try it out and let you know how I get on.

    Regards,

    Sud.

  • Thanks again Brandon - replacing the project 'lnk_msp430f5435.cmd' file in the imported project directory appears to have done the trick.

    sud.