Documentation for “Zerocat Chipflasher” as of Wed, 27 Jul 2022 12:09:29 +0200
Repository: git://zerocat.org/zerocat/projects/chipflasher
Version: v0.6.9-632-7d693973
Branch: flashrom-interface

../../firmware2/src/error.spin.txt.html

Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78
Compiling...
../../firmware2/src/error.spin
|-pins.spin
|-ledstat.spin
  |-pins.spin
  |-time.spin
Done.
Program size is 628 bytes
TYPE: 43   VALUE: 00000001 (00000000)   NAME: ERR_RST
TYPE: 43   VALUE: 00000002 (00000000)   NAME: ERR_CANCEL
TYPE: 43   VALUE: 00000003 (00000000)   NAME: ERR_SUCCESS
TYPE: 43   VALUE: 00000004 (00000000)   NAME: ERR_HANDSHAKE
TYPE: 43   VALUE: 00000005 (00000000)   NAME: ERR_TIMEOUT
TYPE: 43   VALUE: 00000006 (00000000)   NAME: ERR_JOB
TYPE: 43   VALUE: 00000007 (00000000)   NAME: ERR_TX
TYPE: 43   VALUE: 00000008 (00000000)   NAME: ERR_CODE
TYPE: 43   VALUE: 00000009 (00000000)   NAME: ERR_NOCOG
TYPE: 53   VALUE: 00000101 (00000004)   NAME: STATUS
TYPE: 4F   VALUE: 00000002 (00000000)   NAME: PINS
TYPE: 4F   VALUE: 00000103 (00000000)   NAME: LEDSTAT
TYPE: 51   VALUE: 00000000 (00000000)   NAME: PIN_CEN^A
TYPE: 51   VALUE: 00000001 (00000000)   NAME: PIN_CEN_1^A
TYPE: 51   VALUE: 00000002 (00000000)   NAME: PIN_MOSI^A
TYPE: 51   VALUE: 00000003 (00000000)   NAME: PIN_WPN^A
TYPE: 51   VALUE: 00000004 (00000000)   NAME: PIN_SCLK3^A
TYPE: 51   VALUE: 00000005 (00000000)   NAME: PIN_SCLK2^A
TYPE: 51   VALUE: 00000006 (00000000)   NAME: PIN_SCLK1^A
TYPE: 51   VALUE: 00000007 (00000000)   NAME: PIN_SCLK0^A
TYPE: 51   VALUE: 00000008 (00000000)   NAME: PIN_MISO^A
TYPE: 51   VALUE: 00000009 (00000000)   NAME: PIN_PLUGTESTN^A
TYPE: 51   VALUE: 0000000A (00000000)   NAME: PIN_PNP^A
TYPE: 51   VALUE: 0000000C (00000000)   NAME: PIN_HOLDN^A
TYPE: 51   VALUE: 0000000D (00000000)   NAME: LED_YELLOW^A
TYPE: 51   VALUE: 0000000E (00000000)   NAME: LED_ORANGE^A
TYPE: 51   VALUE: 0000000F (00000000)   NAME: LED_GREEN^A
TYPE: 51   VALUE: 00000010 (00000000)   NAME: RST_DISABLE^A
TYPE: 51   VALUE: 0000001F (00000000)   NAME: PIN_RX^A
TYPE: 51   VALUE: 0000001E (00000000)   NAME: PIN_TX^A
TYPE: 51   VALUE: 00002000 (00000000)   NAME: BIT_LED_YELLOW^A
TYPE: 51   VALUE: 00004000 (00000000)   NAME: BIT_LED_ORANGE^A
TYPE: 51   VALUE: 00008000 (00000000)   NAME: BIT_LED_GREEN^A
TYPE: 51   VALUE: 00000400 (00000000)   NAME: BIT_PNP^A
TYPE: 51   VALUE: 00000010 (00000000)   NAME: BIT_SCLK3^A
TYPE: 51   VALUE: 00000020 (00000000)   NAME: BIT_SCLK2^A
TYPE: 51   VALUE: 00000040 (00000000)   NAME: BIT_SCLK1^A
TYPE: 51   VALUE: 00000080 (00000000)   NAME: BIT_SCLK0^A
TYPE: 51   VALUE: 00000008 (00000000)   NAME: BIT_WPN^A
TYPE: 51   VALUE: 00000100 (00000000)   NAME: BIT_MISO^A
TYPE: 51   VALUE: 00000001 (00000000)   NAME: BIT_CEN^A
TYPE: 51   VALUE: 00000002 (00000000)   NAME: BIT_CEN_1^A
TYPE: 51   VALUE: 00001000 (00000000)   NAME: BIT_HOLDN^A
TYPE: 51   VALUE: 00000004 (00000000)   NAME: BIT_MOSI^A
TYPE: 51   VALUE: 00000200 (00000000)   NAME: BIT_PLUGTESTN^A
TYPE: 51   VALUE: 00000003 (00000000)   NAME: MASK_CEN_AVAIL^A
TYPE: 51   VALUE: 000000F0 (00000000)   NAME: MASK_SCLK_AVAIL^A
TYPE: 51   VALUE: 000011FF (00000000)   NAME: MASK_SPI_BUS_AVAIL^A
TYPE: 51   VALUE: 000000F0 (00000000)   NAME: MASK_SCLK_ACTIVE^A
TYPE: 50   VALUE: 00000101 (00000000)   NAME: HIGH^A
TYPE: 50   VALUE: 00000102 (00000000)   NAME: LOW^A
TYPE: 51   VALUE: FFFFFFFF (00000000)   NAME: P_ON^B
TYPE: 51   VALUE: 00000000 (00000000)   NAME: P_OFF^B
TYPE: 51   VALUE: 00000001 (00000000)   NAME: P_1^B
TYPE: 51   VALUE: 00000002 (00000000)   NAME: P_2^B
TYPE: 51   VALUE: 00000003 (00000000)   NAME: P_3^B
TYPE: 51   VALUE: 00000004 (00000000)   NAME: P_4^B
TYPE: 51   VALUE: 00000005 (00000000)   NAME: P_5^B
TYPE: 51   VALUE: 00000006 (00000000)   NAME: P_MAX^B
TYPE: 51   VALUE: 000F4240 (00000000)   NAME: CYCLE_TIME^B
TYPE: 51   VALUE: 000003E8 (00000000)   NAME: LOOP_TIME^B
TYPE: 51   VALUE: 00000053 (00000000)   NAME: PHASE_INIT^B
TYPE: 51   VALUE: 000003E4 (00000000)   NAME: CYCLE_INIT^B
TYPE: 51   VALUE: 00000000 (00000000)   NAME: TSTAMPERROR^B
TYPE: 50   VALUE: 00000001 (00000000)   NAME: START^B
TYPE: 50   VALUE: 00000002 (00000000)   NAME: STOP^B
TYPE: 50   VALUE: 00000103 (00000000)   NAME: CHECK^B
TYPE: 50   VALUE: 00000104 (00000000)   NAME: SET_D1^B
TYPE: 50   VALUE: 00000105 (00000000)   NAME: SET_D2^B
TYPE: 50   VALUE: 00000106 (00000000)   NAME: SET_D3^B
TYPE: 50   VALUE: 00000007 (00000000)   NAME: SET^B
TYPE: 50   VALUE: 00000008 (00000000)   NAME: CLR^B
TYPE: 50   VALUE: 00000009 (00000000)   NAME: GET_D1^B
TYPE: 50   VALUE: 0000000A (00000000)   NAME: GET_D2^B
TYPE: 50   VALUE: 0000000B (00000000)   NAME: GET_D3^B
TYPE: 4E   VALUE: 00000004 (00000000)   NAME: ERRCODE
TYPE: 4E   VALUE: 00000000 (00000000)   NAME: R

Distilled longs: 8

OBJ bytes: 751

_CLKMODE: 00
_CLKFREQ: 00B71B00

0000- 50 00 64 02 2C 00 02 02 10 00 00 00 FC 01 00 00   P.d.,...........
0010- 2C 00 00 00 38 29 64 36 0D 0D 37 00 0D 0C 64 37   ,...8)d6..7...d7
0020- 21 ED 38 06 E5 61 0C 34 61 0C 35 61 0C 32 00 00   !.8..a.4a.5a.2..
0030- D0 01 11 02 50 00 04 00 63 00 00 00 74 00 00 00   ....P...c...t...
0040- 82 00 00 00 88 00 00 00 8E 00 00 00 94 00 00 00   ................
0050- A1 00 00 00 AE 00 00 00 B5 00 00 00 BC 00 00 00   ................
0060- C3 00 00 00 D2 00 00 00 DA 00 00 00 E2 00 00 00   ................
0070- EA 00 24 00 D0 01 50 00 F0 01 50 00 00 00 00 00   ..$...P...P.....
0080- 01 05 02 37 03 43 15 28 36 EC 87 4C 35 92 80 35   ...7.C.(6..L5..5
0090- FA 65 32 87 4C 35 90 35 FA 0A 08 87 4C 35 92 98   .e2.L5.5....L5..
00A0- 36 ED 21 32 01 05 07 01 64 3F 91 06 12 04 01 05   6.!2....d?......
00B0- 08 32 64 87 4D 35 91 32 64 87 4E 35 91 32 64 87   .2d.M5.2d.N5.2d.
00C0- 4F 35 91 32 01 34 05 04 01 34 05 05 01 34 05 06   O5.2.4...4...4..
00D0- 32 01 35 05 04 01 35 05 05 01 35 05 06 32 87 4D   2.5...5...5..2.M
00E0- 35 92 90 61 32 87 4E 35 92 90 61 32 87 4F 35 92   5..a2.N5..a2.O5.
00F0- 90 61 32 37 23 38 0D 3E D4 18 37 23 38 0D 3E D6   .a27#8.>..7#8.>.
0100- 1C 32 64 35 FB 37 23 3D B4 32 64 35 FB 38 0E 3D   .2d5.7#=.2d5.8.=
0110- B4 32 64 35 FB 38 0D 3D B4 32 01 05 0C 35 CD 24   .2d5.8.=.2...5.$
0120- 35 69 3F 91 65 87 4D 35 92 90 6D 87 4E 35 92 90   5i?.e.M5..m.N5..
0130- 71 87 4F 35 92 90 75 6C 35 FA 7A 48 70 35 FA 7E   q.O5..ul5.zHp5.~
0140- 48 74 35 FA CE 20 48 68 35 FC 0A 34 38 53 69 CC   Ht5.. Hh5..48Si.
0150- 24 35 FC 0A 1A 39 03 E4 CD 24 6C 36 E3 36 ED 79   $5...9...$l6.6.y
0160- 70 36 E3 36 ED 7D 74 36 E3 36 ED CD 20 04 11 78   p6.6.}t6.6.. ..x
0170- 35 FA 7A 4C 7C 35 FA 7E 4C CC 20 35 FA CE 20 4C   5.zL|5.~L. 5.. L
0180- 39 01 6D 6C 34 0D 0A 36 38 06 0E 0A 01 35 05 0D   9.ml4..68....5..
0190- 0C 01 34 05 0D 0C 01 78 36 E8 05 0D 0C 39 01 8A   ..4....x6....9..
01A0- 70 34 0D 0A 36 38 06 0E 0A 01 35 05 0E 0C 01 34   p4..68....5....4
01B0- 05 0E 0C 01 7C 36 E8 05 0E 0C 39 01 B4 74 34 0D   ....|6....9..t4.
01C0- 0E 37 60 0D 0F 36 38 06 0E 12 01 35 05 0F 0C 01   .7`..68....5....
01D0- 34 05 0F 0C 01 38 09 3D 92 05 0F 0C 01 CC 20 36   4....8.=...... 6
01E0- E8 05 0F 0C 6A 3E CE 24 3E 64 35 ED 35 C0 3A 0F   ....j>.$>d5.5.:.
01F0- 42 40 F6 39 03 E8 F4 EC 23 04 FF 26 32 00 00 00   B@.9....#..&2...
0200- 20 00 03 00 0C 00 00 00 15 00 00 00 64 3D D4 1C    ...........d=..
0210- 64 3D D6 1C 32 64 3D D4 18 64 3D D6 1C 32 00 00   d=..2d=..d=..2..
0220- 48 00 05 00 14 00 00 00 21 00 00 00 32 00 00 00   H.......!...2...
0230- 3A 00 00 00 35 C0 64 F4 39 01 7D E4 3F 91 EC 23   :...5.d.9.}.?..#
0240- 32 35 C0 39 03 E8 F6 64 F4 39 01 7D E4 3F 91 EC   25.9...d.9.}.?..
0250- 23 32 35 C0 64 F4 68 EC 23 32 35 C0 39 03 E8 F6   #25.d.h.#25.9...
0260- 64 F4 68 EC 23 32 00 00 2C 45 52 52 5F 52 53 54   d.h.#2..,ERR_RST
0270- 10 01 00 00 00 45 52 52 5F 43 41 4E 43 45 4C 10   .....ERR_CANCEL.
0280- 02 00 00 00 45 52 52 5F 53 55 43 43 45 53 53 10   ....ERR_SUCCESS.
0290- 03 00 00 00 45 52 52 5F 48 41 4E 44 53 48 41 4B   ....ERR_HANDSHAK
02A0- 45 10 04 00 00 00 45 52 52 5F 54 49 4D 45 4F 55   E.....ERR_TIMEOU
02B0- 54 10 05 00 00 00 45 52 52 5F 4A 4F 42 10 06 00   T.....ERR_JOB...
02C0- 00 00 45 52 52 5F 54 58 10 07 00 00 00 45 52 52   ..ERR_TX.....ERR
02D0- 5F 43 4F 44 45 10 08 00 00 00 45 52 52 5F 4E 4F   _CODE.....ERR_NO
02E0- 43 4F 47 10 09 00 00 00 53 54 41 54 55 53 01      COG.....STATUS.

______________________________________________________________________________
********************************************************* File starts here ***
Zerocat Chipflasher --- Flash free firmware, kick the Management Engine.

File error.spin --- provide error codes and exit method.

Copyright (C) 2020, 2021, 2022  Kai Mertens 

This file is part of Zerocat Chipflasher.

See end of file for terms of use.

******************************************************************************


# Object Summary

Object "../../firmware2/src/error" Interface:

PUB  status(errcode) : 

Program:  153 Longs
Variable: 20 Longs


# Objects

Load pin configuration object.
Load ledstat object.


# Constants

ENUM t_ERR
  ERR_RST           -> ledstat#P_ON
  ERR_CANCEL        -> ledstat#P_OFF
  ERR_SUCCESS       -> ledstat#P_OFF
  ERR_HANDSHAKE     -> ledstat#P_1
  ERR_TIMEOUT       -> ledstat#P_2
  ERR_JOB           -> ledstat#P_3
  ERR_TX            -> ledstat#P_4
  ERR_CODE          -> ledstat#P_5
  ERR_NOCOG         -> ledstat#P_MAX


# Functions

_______________________
PUB  status(errcode) : 

Translate error codes of type t_ERR into status values for D1..D3.


******************************************************************************
Terms of Use:

Zerocat Chipflasher is free software: you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

Zerocat Chipflasher is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License along
with Zerocat Chipflasher.  If not, see <http://www.gnu.org/licenses/>.

************************************************************** End of File ***