Documentation for “Zerocat Chipflasher” as of Sat, 18 Jun 2022 21:45:43 +0200
Repository: git://zerocat.org/zerocat/projects/chipflasher
Version: v0.6.9
Branch: master

../../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 640 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: 763

_CLKMODE: 00
_CLKFREQ: 00B71B00

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

This file is part of Zerocat Chipflasher.

See end of file for terms of use.

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

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

PUB  status(errcode) : 

Program:  156 Longs
Variable: 20 Longs

CON Block:
ENUM ERR_type
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

_______________________
PUB  status(errcode) : 

Translate error codes of type ERR_type 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 ***