ARM Technical Support Knowledge Articles

ERROR 155 (INVALID BASE ADDRESS)

Applies to: C166 C Compiler

Answer

QUESTION

When I include the REG164.H header file in my C programs and compile, I get the following error message from the compiler:

*** ERROR 155 IN LINE 14 OF C:C166INCREG164.H: 'ADDAT2': invalid base address

What's the problem?

ANSWER

The Siemens C165, C164, C163, and C161 are all derivatives of the C167. For this reason, you must use the MOD167 switch when you compile programs for these chips.

You may do this from the command line by including the MOD167 directive.

You may set this option in uVision by selecting the C166 Compiler Options from the Options menu. Then, under the Object tab, select Enable 80C167 Instructions.

Article last edited on: 2004-05-16 17:48:24

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential