Keil Logo

C161: ERROR 155 (INVALID BASE ADDRESS) IN V4.00


Information in this article applies to:

  • C161 Version 4.03

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

Last Reviewed: Saturday, April 7, 2001


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.