ARM Technical Support Knowledge Articles

ERROR 155 (INVALID BASE ADDRESS) IN V3.05E

Applies to: C161 C Compiler

Answer


Information in this article applies to:


QUESTION

I am attempting to use the SPI bus with the C161 and the Keil PK161 Professional Developer's Kit. I have added the appropriate SFR definitions to a header file, but the compiler generates the following error message for all of the SPI SFRs.

ERROR 155: 'SSCTIC': INVALID BASE ADDRESS

My SFR declarations are as follows:

sfr   SSCTIC   = 0xFF72;
sfr   SSCRIC   = 0xFF74;
sfr   SSCEIC   = 0xFF76;
sfr   SSCTB    = 0xF0B0;
sfr   SSCRB    = 0xF0B2;
sfr   SSCBR    = 0xF0B4;
sfr   SSCCON   = 0xFFB2;

I'm using the MOD167 directive but I still get these errors. What am I doing wrong?

ANSWER

The PK161 kit that you have doesn't know that these SFRs are valid. You must contact technical support for a compiler update.

Note that this has been corrected in C161 V3.11 and later.

Article last edited on: 2004-05-20 20:12:37

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