|ARM Technical Support Knowledge Articles|
Applies to: C166 C Compiler
When I include the REG164.H header file in my C programs and compile, I get the following error message from the compiler:
*** ERROR 155 IN LINE 14 OF C:C166INCREG164.H: 'ADDAT2': invalid base address
What's the problem?
The Siemens C165, C164, C163, and C161 are all derivatives of the C167. For this reason, you must use the MOD167 switch when you compile programs for these chips.
You may do this from the command line by including the MOD167 directive.
You may set this option in uVision by selecting the C166 Compiler Options from the Options menu. Then, under the Object tab, select Enable 80C167 Instructions.
Article last edited on: 2004-05-16 17:48:24
Did you find this article helpful? Yes No
How can we improve this article?