Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
software:deep:rts:errors [2014-06-09 14:52] – graf | software:deep:rts:errors [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Exceptions and Errors ====== | ||
- | Java offers exception and errors. Errors are thrown by the virtual machine and we do not currently use them as we have no vm at all.\\ | ||
- | Exceptions can be devided into checked and unchecked exceptions. Checked exceptions must be caught by a calling method, which is ensured by the Java compiler. Unchecked exceptions, such as ArrayIndexOutOfBoundsException or NullPointerException, | ||
- | ===== Exception Handling ===== | ||
- | All unchecked Java exceptions must be caught by the system. In such a case, an string is written to the // | ||
- | |||
- | ==== Example on the mpc555 ==== | ||
- | <code java> | ||
- | SCI1.start(9600, | ||
- | System.out = new PrintStream(SCI1.out); | ||
- | System.err = System.out | ||
- | </ | ||
- | |||
- | ==== Example on the mpc5200 ==== | ||
- | <code java> | ||
- | UART3.start(9600, | ||
- | System.out = new PrintStream(UART3.out); | ||
- | System.err = System.out | ||
- | </ | ||
- | |||
- | ==== Signaling with LED ==== | ||
- | On the [[embedded_systems: | ||
- | |||
- | ^ blinking pattern ^ state ^ comment ^ | ||
- | | 1x kurz im Sekundentakt| Code wurde fehlerhaft geladen | FCS error in kernel | | ||
- | | 1x once | Exception thrown in command | Unchecked exception caught in // | ||
- | | 2x once | Exception thrown in command | Unchecked exception caught in // | ||
- | | 3x once | Exception thrown in action method of task command | Unchecked exception caught in // | ||
- | | 5x kurz im Sekundentakt| Exception thrown | Unchecked exception caught in kernel | | ||
- | | 1x kurz, dann 2x kurz im Sekundentakt| Machine Check Exception | Busfehler | | ||
- | | 1x kurz, dann 3x kurz im Sekundentakt| System Call | sc-Instruktion | | ||
- | | 1x kurz, dann 4x kurz im Sekundentakt| Floating Point Unavailable Exception | FPU switched off | |