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.

CCS/MSP430F5529: Cannot find .out file

Part Number: MSP430F5529

Tool/software: Code Composer Studio

I've been having an issue where whenever I try to debug, I get this notification popup:

Here's the full code used:

;-------------------------------------------------------------------------------
; MSP430 Assembler Code Template for use with TI Code Composer Studio
;
;
;-------------------------------------------------------------------------------
.cdecls C,LIST,"msp430.h" ; Include device header file

;-------------------------------------------------------------------------------
.def RESET ; Export program entry-point to
; make it known to linker.
;-------------------------------------------------------------------------------
.text ; Assemble into program memory.
.retain ; Override ELF conditional linking
; and retain current section.
.retainrefs ; And retain any sections that have
; references to current section.

;-------------------------------------------------------------------------------
RESET mov.w #__STACK_END,SP ; Initialize stackpointer
StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL ; Stop watchdog timer


;-------------------------------------------------------------------------------
; Main loop here
;-------------------------------------------------------------------------------
.text ; program start
.global _main ; define entry point

_main:

NOP
NOP
NOP


Mainloop:
NOP
NOP
NOP


jmp Mainloop ; jump to the Mainloop label

;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
.global __STACK_END
.sect .stack

;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
.sect ".reset" ; MSP430 RESET Vector
.short RESET

And here's the Compiler message:


**** Build of configuration Debug for project mgntest ****

"C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building target: "mgntest.out"
Invoking: MSP430 Linker
"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/bin/cl430" -vmspx --code_model=small --data_model=small --use_hw_mpy=F5 --advice:power=all --define=__MSP430F5529__ -g --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 -z -m"mgntest.map" --heap_size=0 --stack_size=0 --cinit_hold_wdt=on -i"C:/ti/ccs1010/ccs/ccs_base/msp430/include" -i"C:/ti/ccs1010/ccs/ccs_base/msp430/lib/5xx_6xx_FRxx" -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/lib" -i"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-msp430_20.2.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="mgntest_linkInfo.xml" --entry_point=RESET --use_hw_mpy=F5 -o "mgntest.out" "./main.obj" "../lnk_msp430f5529.cmd" -llibmath.a -llibc.a
<Linking>
warning #10366-D: automatic library build: using library "C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-msp430_20.2.2.LTS\lib\rts430x_sc_sd_eabi.lib" for the first time, so it must be built. This may take a few minutes.
c:/users/matthew:1: *** target pattern contains no '%'. Stop.
>> ERROR: mklib: gmake error during rts430x_sc_sd_eabi.lib build
warning #10207-D: automatic RTS selection: resolving index library "libc.a" to "rts430x_sc_sd_eabi.lib", but "rts430x_sc_sd_eabi.lib" was not found
"../lnk_msp430f5529.cmd", line 221: warning #10374-D: Interrupt vector "RTC" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 222: warning #10374-D: Interrupt vector "PORT2" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 223: warning #10374-D: Interrupt vector "TIMER2_A1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 224: warning #10374-D: Interrupt vector "TIMER2_A0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 225: warning #10374-D: Interrupt vector "USCI_B1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 226: warning #10374-D: Interrupt vector "USCI_A1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 227: warning #10374-D: Interrupt vector "PORT1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 228: warning #10374-D: Interrupt vector "TIMER1_A1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 229: warning #10374-D: Interrupt vector "TIMER1_A0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 230: warning #10374-D: Interrupt vector "DMA" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 231: warning #10374-D: Interrupt vector "USB_UBM" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 232: warning #10374-D: Interrupt vector "TIMER0_A1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 233: warning #10374-D: Interrupt vector "TIMER0_A0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 234: warning #10374-D: Interrupt vector "ADC12" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 235: warning #10374-D: Interrupt vector "USCI_B0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 236: warning #10374-D: Interrupt vector "USCI_A0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 237: warning #10374-D: Interrupt vector "WDT" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 238: warning #10374-D: Interrupt vector "TIMER0_B1" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 239: warning #10374-D: Interrupt vector "TIMER0_B0" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 240: warning #10374-D: Interrupt vector "COMP_B" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 241: warning #10374-D: Interrupt vector "UNMI" does not have an interrupt handler routine.
"../lnk_msp430f5529.cmd", line 242: warning #10374-D: Interrupt vector "SYSNMI" does not have an interrupt handler routine.

undefined first referenced
symbol in file
--------- ----------------
__TI_int41
__TI_int42
__TI_int43
__TI_int44
__TI_int45
__TI_int46
__TI_int47
__TI_int48
__TI_int49
__TI_int50
__TI_int51
__TI_int52
__TI_int53
__TI_int54
__TI_int55
__TI_int56
__TI_int57
__TI_int58
__TI_int59
__TI_int60
__TI_int61
__TI_int62

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "mgntest.out" not built

>> Compilation failure
makefile:142: recipe for target 'mgntest.out' failed
gmake[1]: *** [mgntest.out] Error 1
makefile:138: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

  • Your build requires this variant of the RTS library: rts430x_sc_sd_eabi.lib.  This variant is not installed with the compiler.  When the linker detects it is not present, it tries to build it.  This build fails.  To learn more about this process, please search the MSP430 compiler manual for the sub-chapter titled Library-Build Process.

    I have never seen this particular error ...

    Matthew Norris said:
    c:/users/matthew:1: *** target pattern contains no '%'. Stop.

    I don't know the cause.  The compiler installation includes this file ...

    C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-msp430_20.2.2.LTS\lib\src\Makefile

    This file is used, behind the scenes, when building the RTS library.  My guess is something went wrong during the install of the compiler which caused this file to contain an error.  If my guess is correct, then re-installing the compiler should fix it.  Rename or delete this directory ...

    C:\ti\ccs1010\ccs\tools\compiler\ti-cgt-msp430_20.2.2.LTS

    Then follow the directions in the article Installing New Software to install MSP430 compiler version 20.2.2.LTS.

    Please let me know if this suggestion resolves the problem.

    Thanks and regards,

    -George