Hey guys. I am taking a Microprocessors course and I have a few labs that I have to do with my microcontrollers.
I am using the TI MSP430 and the IAR Embedded Workbench IDE for programming it. The manual that I am using says that I should save the code as .asm file, but for some reason whenever I try to do it, it doesn't work exactly as it should and when I run the program I get an error.
Could anyone give me an idea of what I am doing wrong?
Here is the code:
Here is the error I get:
I am using the TI MSP430 and the IAR Embedded Workbench IDE for programming it. The manual that I am using says that I should save the code as .asm file, but for some reason whenever I try to do it, it doesn't work exactly as it should and when I run the program I get an error.
Could anyone give me an idea of what I am doing wrong?
Here is the code:
Rich (BB code):
#include msp430.h
;--------------------------------------------------------------------------
ORG 0f800h ; Program Start
;--------------------------------------------------------------------------
RESET mov #0280h,SP ; Initialize stackpointer
StopWDT mov #WDTPW+WDTHOLD,&WDTCTL ; StopWDT
SetupP1 bis.b #1,&P1DIR ; P1.0 as output
Main xor.b #1,&P1OUT ; Toggle P1.0
Wait mov #50000,R15 ; Delay to R15
L1 dec R15 ; Decrement R15
jnz L1 ; Delay over?
jmp Main ; Again?
;--------------------------------------------------------------------------
; Interrupt Vectors
;--------------------------------------------------------------------------
ORG 0FFFEh ; MSP430 RESET Vector
DW RESET ;
END
Here is the error I get:
Building configuration: Example1 - Debug
Updating build tree...
Try.asm
Error[3]: Invalid #include file name C:\Users\Jean\Desktop\Coding Files\Assembly Language\EXP1\Try.asm 1
Error while running Assembler
Total number of errors: 1
Total number of warnings: 0