Semiconductor Group
9 of 9
AP1642 02.99
C167CS-32F/ C161CI-32F/ C161SI-32F
Flash Memory Programming (all Ax-steps)
Note:
Pin P0L.4 low during reset activates the bootstrap loader which resides in the internal test ROM.
When the internal bootstrap loader is selected (which means that the internal test ROM is active) no
read accesses to the flash memory (which also includes the flash status register) are possible.
Read accesses to the flash memory as well as to the flash status register FSR will always deliver
value FFFFh, independent on the real value.
This version supports all available flash functions, performs verification of programming and erase
and evaluates the flags of the FSR in case of a flash operation.
Note:
A tested bootstrap loader (target: external memory/ internal flash memory) is attached.
C167CS-32F Blind 1st Sil. / C167CS-32F KL Blind 1st Sil./ C161CI-32F Blind 1st Sil.
These versions are recommended when programming the flash memory the first time or when using
the internal test ROM bootstrap loader. The internal test ROM bootstrap loader can be activated
with P0L.4 low during reset. The state of pin EA (external access) will be ignored.
Restrictions
Read accesses to the flash memory (which also includes the flash status register FSR) are not
possible (the read value is always FFFFh, independent on the real value). This is the reason why
this version neither performs a verification of programming and erase nor evaluates the flags of the
FSR in case of a flash operation. Error flags (if set in case of a failure during a flash operation) will
not being recognized and therefore not evaluated.
Due to this fact the success of a flash operation cannot be controlled.
The success messages of the programming tool are no reliable indicators !
Wait routines for each flash operation replace polling of the busy bit (FSR).
Note:
When booting with the internal bootstrap loader all read accesses to the flash memory (and to the
flash status register FSR) deliver the same dummy value FFFFh, independent on the real content
of the flash memory/ FSR.
Please consider this e.g. when working with an Ertec EVA167 evaluation board (BTL switch
in position ON“): a memory dump of the flash memory will always deliver FFFFh value !
Note:
Please also refer to the dedicated errata sheet of the used C167CS-32F/ C161CI-32F/ C161SI-32F
device. Later steps may have not the restrictions described above.