Keil™, An ARM® Company

Technical Support

C166: FUNCTIONAL PROBLEM CPU.12


Information in this article applies to:

  • C166 Version 3.12
  • C166 Version 4.05
  • µVision Version 2.05

QUESTION

We are using the ST10F167. The C initialization code I have uses EXTS. I believe that it is not initializing my variables correctly because of functional problem CPU.12. Do you have C initialization code that works around this problem?

ANSWER

Modify the START167.A66 and move the following section...

;------------------------------------------------------------------------------
;
; The following code is necessary to set RAM variables to 0 at start-up
; (RESET) of the C application program.
;

$IF (CLR_MEMORY = 1)

to the end of the file with the corresponding section from the STARTUP.A66 file. STARTUP.A66 does not use the EXTS sequences but performs the same function as START167.A66.

Last Reviewed: Thursday, June 17, 2004


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