ARM Technical Support Knowledge Articles

ERROR 155 (INVALID BASE ADDRESS) IN V4.00

Applies to: C161 C Compiler

Answer


Information in this article applies to:


SYMPTOMS

When I try to use the C161 compiler with the c161csjx.h include file, the compiler generates a lot of error messages.

C166 COMPILER V4.03, COMPILATION OF MODULE MAIN
OBJECT MODULE PLACED IN .\main.OBJ
COMPILER INVOKED BY: D:\KEILC161\C166\BIN\C166.EXE .\main.c MOD167 DEBUG SYMBOLS

 stmt lvl     source

    1         #include <C161csjx.h>
*** ERROR 155 IN LINE 16 OF D:\KEILC161\C166\INC\C161CSJX.H: 'ADDAT2': invalid base address
*** ERROR 155 IN LINE 111 OF D:\KEILC161\C166\INC\C161CSJX.H: 'DP7': invalid base address
*** ERROR 155 IN LINE 119 OF D:\KEILC161\C166\INC\C161CSJX.H: 'FOCON': invalid base address
*** ERROR 155 IN LINE 139 OF D:\KEILC161\C166\INC\C161CSJX.H: 'ODP7': invalid base address
*** ERROR 155 IN LINE 150 OF D:\KEILC161\C166\INC\C161CSJX.H: 'P7': invalid base address
*** ERROR 155 IN LINE 160 OF D:\KEILC161\C166\INC\C161CSJX.H: 'PICON': invalid base address
*** ERROR 155 IN LINE 161 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON0H': invalid base address
*** ERROR 155 IN LINE 162 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON0L': invalid base address
*** ERROR 155 IN LINE 163 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON1H': invalid base address
*** ERROR 155 IN LINE 164 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON1L': invalid base address
*** ERROR 155 IN LINE 165 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON2': invalid base address
*** ERROR 155 IN LINE 166 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON20': invalid base address
*** ERROR 155 IN LINE 167 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON3': invalid base address
*** ERROR 155 IN LINE 168 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON4': invalid base address
*** ERROR 155 IN LINE 169 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON6': invalid base address
*** ERROR 155 IN LINE 170 OF D:\KEILC161\C166\INC\C161CSJX.H: 'POCON7': invalid base address

I have used the MOD167 directive when I compile, but I still receive these errors.

CAUSE

The C161 compiler is limited, and supports only C161 devices. The C166 compiler, on the other hand, is not limited in any way. As new C161 devices with additional SFRs are added, the C161 compiler must be modified to support them.

This problem you see is caused by the additional SFRs that were added in this device. Version 4.00 of the C161 compiler did not support these new C161 SFR addresses.

RESOLUTION

We have corrected this problem in C161 Version 4.03k or later.

You may download the latest updates from the Keil Website.

SEE ALSO

ATTACHED FILES

Request the files attached to this knowledgebase article.

Article last edited on: 2001-04-07 00:00:00

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