Qdatasheet_Logo
Integrated circuits, Transistor, Semiconductors Search and Datasheet PDF Download Site

ST10F168-Q3 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
MFG CO.
'ST10F168-Q3' PDF : 74 Pages View PDF
ST10F168
Table 6 : Error Code Definition (R0 content after STEAK execution)
Error Code
Meaning
00h
Operation was successful
01h
Flash Protection is active
02h
Vpp voltage not present
03h
Programming operation failed
04h
Address value (R1) incorrect: not in Flash address area or odd
05h
CPU period out of range (must be between 30 ns to 500 ns)
06h
Not enough free space on system stack for proper operation
07h
Incorrect bank number (R2,R3) specified
08h
Erase operation failed (phase 1)
09h
Bad source address for Multiple Word programming command
0Ah
Bad number of words to be copied in Multiple Word programming command: one destination will be
out of flash.
0Bh
PLL Unlocked or Oscillator watchdog overflow occured during programming or erasing the flash.
0Ch
Erase operation failed (phase 2)
FFh
Unknown or bad command
Table 7 : Return values for each programming / erase command
Programming
Command
R0
R1
R2
R3
R4-R15
Single or
double Word
programming
Block
programming
Erasing
After status
read
Error
code
Unchanged
Data in Flash for Data in Flash for Unchanged
location Segment + location Segment +
Segment Offset Segment Offset + 2
(R0.[3:0] with R1) (R0[3:0] with R1+2)
Error The last segment offset address of the Undefined
code last written Word in Flash (failing Flash
address if R0 is not equal to zero)
Unchanged
Error
code
Undefined
Unchanged
Error Flash embedded rev
code MSByte = major release
LSByte = minor revision
Circuit identifiers :
R2 = #0787h
R3 = #0101h for this device
Unchanged
Note: The Flash Embedded STEAK Algorithms
require at least 50 words on the Internal
System Stack for proper operation. The
program itself verifies that there is enough
free space on the System Stack before
performing a programming or erasing
operation, by computing the Word number
between Stack Pointer (SP) and Stack
Overflow register (STKOV ).
The MDH, MDL and MDC register content
are modified.
Registers R0 to R4 are used as Input Data
for STEAK, and are modified as explained
above (Return Values).
Registers R5 to R15 are used internally by
STEAK, but preserved on entry and
restore on exit of STEAK.
IT IS VERY IMPORTANT TO TAKE INTO
ACCOUNT THE FACT THAT STEAK
USES UP TO 50 WORDS ON THE SYS-
TEM STACK. TO PREVENT ANY
ABNORMAL SITUATION, IT IS VERY
IMPORTANT TO INITIALIZE COR-
RECTLY THE STACK SIZE TO AT LEAST
64 WORDS, AND TO CORRECTLY INI-
TIALIZE REGISTER STKOV.
15/74
Share Link: GO URL

All Rights Reserved © qdatasheet.com  [ Privacy Policy ] [ Contact Us ]