Forum: Mikrocontroller und Digitale Elektronik ST62 einige Fragen


von John Cutte (Gast)


Lesenswert?

Hallo

Ich habe ein (ur)altes Board mit einem µC von ST daruaf, Model ST62T20
Bei dem Chip ist offensichtlich ein Ausgang defekt. Glücklicherweise 
wird der pin nicht für den Programmer verwendet
So konnte ich den Chip auslesen. Bei 10 Ausleseverscuhen konnte ich 
jedes mal das gleiche Hex auslesen, demzufolge ist anzunehmen, dass es 
korrekt ausgelese wurde.

- Was würde man auslesen falls Read-Protection gesetzt wurde?



Laut Handbuch kann man die Option Bytes nicht auslesen und auch NUR 
EINMAL BESCHREIBEN:
1
Each device is available for production in user programmable
2
versions (OTP) as well as in factory
3
coded versions (ROM). OTP devices are shipped
4
to customers with a default content (00h), while
5
ROM factory coded parts contain the code supplied
6
by the customer. This implies that OTP devices
7
have to be configured by the customer using
8
the Option Bytes while the ROM devices are factory-
9
configured.
10
The two option bytes allow the hardware configuration
11
of the microcontroller to be selected.
12
The option bytes have no address in the memory
13
map and can be accessed only in programming
14
mode (for example using a standard ST6 programming
15
tool).
16
In masked ROM devices, the option bytes are
17
fixed in hardware by the ROM code (see Section
18
11.6.2 "ROM VERSION" on page 98). It is therefore
19
impossible to read the option bytes.
20
The option bytes can be only programmed once. It
21
is not possible to change the selected options after
22
they have been programmed.


Bit 0 - OSGEN       Oscillator Safeguard
Bit 1 - WDACT       Watchdog
Bit 2 - TIM PULL    Timer PullUp
Bit 3 - NMI PULL    NMI Pullup
Bit 4 - reserved
Bit 5 - reserved
Bit 6 - OSC         Oscillator selection
Bit 7 - PROTECT     Readout Protection
Bit 8 - LVD         Low Voltage Detector
Bit 9 - EXTCNTL     Stop mode


- Wie würdet ihr vorgehen, um den Status der Bits zu ermitteln ohne 
haufenweise Chips zu verheizen? Das einzige das bereits klar ist, ist 
Bit 6, da ein externer Quarz vorhanden ist.

von holger (Gast)


Lesenswert?

>So konnte ich den Chip auslesen. Bei 10 Ausleseverscuhen konnte ich
>jedes mal das gleiche Hex auslesen demzufolge ist anzunehmen, dass es
>korrekt ausgelese wurde.

Dann zeig doch mal die Hex-Datei.

>- Was würde man auslesen falls Read-Protection gesetzt wurde?

10 mal den gleichen Schrott der kein funktionierendes Programm ergibt.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.