This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

EQU DIRECTIVE ISSUE

Dear all,

I am using Keil evaluation version 4 for ARM, on target device LPC2119.I am programming using assembly language.Below are the details of my keil evaluation version.

IDE-Version:
µVision V4.00u
Copyright (c) Keil Elektronik GmbH / Keil Software, Inc. 1995 - 2009

Tool Version Numbers:
Toolchain: RealView MDK-ARM Version: 4.03a
Toolchain Path: BIN40\
C Compiler: Armcc.Exe V4.0.0.524 [Evaluation]
Assembler: Armasm.Exe V4.0.0.524 [Evaluation]
Linker/Locator: ArmLink.Exe V4.0.0.524 [Evaluation]
Librarian: ArmAr.Exe V4.0.0.524 [Evaluation]
Hex Converter: FromElf.Exe V4.0.0.524 [Evaluation]
CPU DLL: SARM.DLL V4.03a
Dialog DLL: DARMP.DLL V1.46
Target DLL: BIN\UL2ARM.DLL V1.55
Dialog DLL: TARMP.DLL V1.46

I am trying to use the EQU directive but for unknown reason it always gives me the following error for the program below.tHIS ERROR IS ALWAYS INTRODUCED WHEN i USE THE equ DIRECTIVE.Can you please help me about this issue on how to solve it.Thanks in advance for your great support and feedback.

gpio.src(3): error: A1163E: Unknown opcode pinsel , expecting opcode or Macro

///PROGRAM//////////////////////////////////

pinsel EQU 0xE0028000

AREA gpio, CODE, READONLY

ENTRY

start LDR R0,=0xE0028000 MOV r0, #2 MOV r1, #3 ADD r0, r0, r1
stop MOV r0, #0x18 LDR r1, =0x20026 SVC #0x123456 END

0