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.

Symbol problems with Assembly-only project

Other Parts Discussed in Thread: MSP430F5529

I started an Assembly-only project on CCS. I only added 2 code lines to the template in order to switch on the green LED on a MSP430 F5529.

This is the whole file.

;-------------------------------------------------------------------------------
; 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
;-------------------------------------------------------------------------------
main:                            ; This is the code I added, it was empty
    BIS.B   #0x0080,&P4DIR     
    RETA                       
                                            

;-------------------------------------------------------------------------------
; Stack Pointer definition
;-------------------------------------------------------------------------------
            .global __STACK_END
            .sect   .stack
            
;-------------------------------------------------------------------------------
; Interrupt Vectors
;-------------------------------------------------------------------------------
            .sect   ".reset"                ; MSP430 RESET Vector
            .short  RESET
            

I get several errors:

unresolved symbol __TI_int41 [...]  __TI_int62

And many warnings too:

#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  
#10366-D automatic library build: using library "/opt/ti/ccsv6/tools/compiler/ti-cgt-msp430_4.4.7/lib/rts430x_sc_sd_eabi.lib" for the first time, so it must be built.
#10374-D Interrupt vector "{ADC12, DMA, PORT1, PORT2, RTC...}" does not have an interrupt handler routine.    lnk_msp430f5529.cmd 

I have no idea where to check since I only added 2 lines of code, furthermore, erasing them (leaving just the template) is producing even more problems.

Any ideas? Any working template or something?

Thanks.

  • Jon,

    Which version of CCS are you using? I suspect the errors/warnings are due to an incorrect (perhaps older) linker command file.

    I just compiled your source file with CCS 6.1.3 and it built without any errors. 

    If you are using an older CCS, can you update to v6.1.3? http://processors.wiki.ti.com/index.php/Download_CCS

  • Yes, after updating, changing compiler, link command file etc. It compiled.


    However, now I have a new problem. The programs can't be launched. They get stuck while Loading them.


    Both old (6.1.2) and new (6.1.3) CCS are affected. Never happened before. Is this a known issue? I am running Ubuntu.

  • Jon Zarate said:
    The programs can't be launched. They get stuck while Loading them.

    Do they just hang when you launch the debug sessions? There is one known issue in CCS 6.1.3 where the debug session hangs during launch: this happens if the workspace being used in CCS 6.1.3 was created using an older version of CCS and there were breakpoints enabled in the older debug session.

    Could you try starting up CCS 6.1.3 with a new workspace, import your project into it, build and debug and let us know if the issue persists? 

  • I solved it reinstalling CCS 6.1.3 in different directory to old version.
    Thanks.