Keil™, An ARM® Company

Technical Support

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


Information in this article applies to:

  • C161 Version 3.05e

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.

Last Reviewed: Thursday, May 20, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure