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.