hello,
i am working with MSP430f5438 and using FET-debugger(msp-FET430UIF).
While running a program for simple 4 bit binary counter as follows; i encountered with error e46.
#include "msp430.h"
;-------------------------------------;
ORG 0E100H
;-------------------------------------;
RESET mov.w #01500h,SP
Stopwdt mov.w # WDTPW+WDTHOLD,&WDTCTL
;--------------------------------------;
setupP1 mov.b #0ffh,&P1DIR
load mov.b #0ffh,&P1OUT
;----------------------------------------;
mainloop mov.w #00fh,R14
mov.w #00000d,R15
L1 inc.w R15
mov.b R15,&P1OUT
call #delay_16ms
cmp.w R15,R14
jnz L1
;--------------------------------------------;
delay_16ms mov.w #50000d,R15
L2 dec.w r15
jnz L1
ret
;---------------------------------------------;
ORG 0FFF0h ; MSP430 RESET Vector location
DW RESET ; RESET lable
END
error:Error[e46]: Undefined external "main" referred in ?cstart ( C:\Program Files\IAR Systems\Embedded Workbench 6.0 Evaluation\430\LIB\DLIB\dl430xsfn.r43 )
Error while running Linker
please help.