|ARM Technical Support Knowledge Articles|
Applies to: C161 C Compiler
Information in this article applies to:
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?
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
Did you find this article helpful? Yes No
How can we improve this article?