Documentation for “Zerocat Chipflasher” as of Fri, 30 Sep 2022 18:26:53 +0200
Repository: git://zerocat.org/zerocat/projects/chipflasher
Version: v0.6.9-1497-91b1f109
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
|-time.spin
Done.
Program size is 496 bytes
TYPE: 43   VALUE: 00000064 (00000000)   NAME: ERR_HELLO
TYPE: 43   VALUE: 00000065 (00000000)   NAME: ERR_RST
TYPE: 43   VALUE: 00000066 (00000000)   NAME: ERR_CANCEL
TYPE: 43   VALUE: 00000067 (00000000)   NAME: ERR_SUCCESS
TYPE: 43   VALUE: 00000068 (00000000)   NAME: ERR_HANDSHAKE
TYPE: 43   VALUE: 00000069 (00000000)   NAME: ERR_JOB
TYPE: 43   VALUE: 0000006A (00000000)   NAME: ERR_TIMEOUT
TYPE: 43   VALUE: 0000006B (00000000)   NAME: ERR_TX
TYPE: 43   VALUE: 0000006C (00000000)   NAME: ERR_CODE
TYPE: 43   VALUE: 0000006D (00000000)   NAME: ERR_INTERFACE
TYPE: 43   VALUE: 0000006E (00000000)   NAME: ERR_LOWVOLTAGE
TYPE: 43   VALUE: 0000006F (00000000)   NAME: ERR_REQUESTSUSPEND
TYPE: 53   VALUE: 00000101 (00000004)   NAME: DISPLAY
TYPE: 4F   VALUE: 00000002 (00000000)   NAME: PINS
TYPE: 4F   VALUE: 00000103 (00000000)   NAME: TIME
TYPE: 51   VALUE: 00000000 (00000000)   NAME: PIN_CEN1^A
TYPE: 51   VALUE: 00000001 (00000000)   NAME: PIN_CEN0^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: PIN_D3^A
TYPE: 51   VALUE: 0000000E (00000000)   NAME: PIN_D2^A
TYPE: 51   VALUE: 0000000F (00000000)   NAME: PIN_D1^A
TYPE: 51   VALUE: 0000001D (00000000)   NAME: PIN_TRIGGER^A
TYPE: 51   VALUE: 0000001E (00000000)   NAME: PIN_TX^A
TYPE: 51   VALUE: 0000001F (00000000)   NAME: PIN_RX^A
TYPE: 51   VALUE: 00000010 (00000000)   NAME: SWDIP_A^A
TYPE: 51   VALUE: 00000011 (00000000)   NAME: SWDIP_B^A
TYPE: 51   VALUE: 00000012 (00000000)   NAME: SWDIP_1^A
TYPE: 51   VALUE: 00000013 (00000000)   NAME: SWDIP_2^A
TYPE: 51   VALUE: 00000014 (00000000)   NAME: SWDIP_3^A
TYPE: 51   VALUE: 00000015 (00000000)   NAME: SWDIP_4^A
TYPE: 51   VALUE: 00000016 (00000000)   NAME: SWDIP_5^A
TYPE: 51   VALUE: 00000017 (00000000)   NAME: SWDIP_6^A
TYPE: 51   VALUE: 00000010 (00000000)   NAME: RST_DISABLE^A
TYPE: 51   VALUE: 00000018 (00000000)   NAME: RS232_RST^A
TYPE: 51   VALUE: 0000000B (00000000)   NAME: RST_INHIBIT^A
TYPE: 51   VALUE: 0000001B (00000000)   NAME: ADC_OUT^A
TYPE: 51   VALUE: 0000001A (00000000)   NAME: ADC_CALIBRATION^A
TYPE: 51   VALUE: 00000019 (00000000)   NAME: ADC_IN^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_ACTIVE100^A
TYPE: 51   VALUE: 000000E0 (00000000)   NAME: MASK_SCLK_ACTIVE75^A
TYPE: 51   VALUE: 000000C0 (00000000)   NAME: MASK_SCLK_ACTIVE50^A
TYPE: 51   VALUE: 00000080 (00000000)   NAME: MASK_SCLK_ACTIVE25^A
TYPE: 51   VALUE: 00000000 (00000000)   NAME: MASK_SCLK_ACTIVE0^A
TYPE: 51   VALUE: 000000F0 (00000000)   NAME: MASK_SCLK_ACTIVE^A
TYPE: 50   VALUE: 00000001 (00000000)   NAME: GET_BOARD_CONFIG^A
TYPE: 50   VALUE: 00000102 (00000000)   NAME: GET_BOARD_VERSION^A
TYPE: 50   VALUE: 00000103 (00000000)   NAME: GET_PIN_RSTINHIBIT^A
TYPE: 50   VALUE: 00000104 (00000000)   NAME: GET_MONITOR_HARDWARE^A
TYPE: 50   VALUE: 00000105 (00000000)   NAME: GET_POWERUP_TYPE^A
TYPE: 50   VALUE: 00000106 (00000000)   NAME: GET_ACCESS_TYPE^A
TYPE: 50   VALUE: 00000107 (00000000)   NAME: GET_MODE_SPI^A
TYPE: 50   VALUE: 00000108 (00000000)   NAME: GET_DRIVER_STRENGTH^A
TYPE: 50   VALUE: 00000109 (00000000)   NAME: GET_BAUDRATE^A
TYPE: 50   VALUE: 0000010A (00000000)   NAME: HIGH^A
TYPE: 50   VALUE: 0000010B (00000000)   NAME: LOW^A
TYPE: 51   VALUE: 0000017D (00000000)   NAME: SPIN_OVERHEAD^B
TYPE: 51   VALUE: 00000032 (00000000)   NAME: FDS_STOP^B
TYPE: 51   VALUE: 00000064 (00000000)   NAME: TCOOL_LINE^B
TYPE: 51   VALUE: 000004B0 (00000000)   NAME: TCOOL_BLOCK^B
TYPE: 50   VALUE: 00000101 (00000000)   NAME: SLEEP^B
TYPE: 50   VALUE: 00000102 (00000000)   NAME: SLEEP_MS^B
TYPE: 50   VALUE: 00000203 (00000000)   NAME: WAIT^B
TYPE: 50   VALUE: 00000204 (00000000)   NAME: WAIT_MS^B
TYPE: 4E   VALUE: 00000004 (00000000)   NAME: ERRCODE

Distilled longs: 0

OBJ bytes: 680

_CLKMODE: 00
_CLKFREQ: 00B71B00

0000- 00 00 E0 01 88 00 02 02 10 00 00 00 88 00 00 00   ................
0010- 98 01 00 00 38 85 64 38 64 0D 38 38 65 0D 80 56   ....8.d8d.88e..V
0020- 38 66 0D 80 5E 01 39 01 5E 06 03 02 64 38 67 ED   8f..^.9.^...d8g.
0030- 08 19 38 0E 3D D4 1C 01 38 32 06 03 02 38 0E 3D   ..8.=...82...8.=
0040- D4 18 01 39 01 2C 06 03 02 09 67 01 39 01 5E 06   ...9.,....g.9.^.
0050- 03 02 0C 01 38 64 06 03 02 37 22 37 23 38 0D 3E   ....8d...7"7#8.>
0060- B4 01 39 01 2C 06 03 02 35 37 23 38 0D 3E B4 01   ..9.,...57#8.>..
0070- 38 64 06 03 02 0C 38 0E 3D D4 1C 01 39 01 2C 06   8d....8.=...9.,.
0080- 03 02 0C 38 0E 3D D4 18 0C 32 00 00 10 01 0C 00   ...8.=...2......
0090- 30 00 00 00 4B 00 00 00 53 00 00 00 65 00 00 00   0...K...S...e...
00A0- 75 00 00 00 8A 00 00 00 9F 00 00 00 BB 00 00 00   u...............
00B0- D1 00 00 00 FD 00 00 00 06 01 00 00 38 17 38 12   ............8.8.
00C0- 3E 92 E7 37 25 E8 61 37 00 62 43 38 11 37 03 3E   >..7%.a7.bC8.7.>
00D0- 92 37 21 E8 62 4A 32 64 37 21 E8 36 EC 33 32 38   .7!.bJ2d7!.6.328
00E0- 64 00 64 05 02 36 0D 04 38 0B 33 0C 37 03 33 0C   d.d..6..8.3.7.3.
00F0- 32 38 74 00 64 05 02 36 0D 03 34 33 0C 35 33 0C   28t.d..6..43.53.
0100- 32 38 89 00 64 05 02 36 0D 08 64 37 06 E8 35 FB   28..d..6..d7..5.
0110- 33 0C 34 33 0C 32 38 9E 00 64 05 02 36 0D 08 64   3.43.28..d..6..d
0120- 37 05 E8 35 FB 33 0C 35 33 0C 32 38 BA 00 64 05   7..5.3.53.28..d.
0130- 02 36 0D 0E 64 37 03 E8 0A 04 35 33 04 03 37 21   .6..d7....53..7!
0140- 33 0C 37 21 33 0C 32 38 D0 00 64 05 02 36 0D 09   3.7!3.28..d..6..
0150- 64 38 0C E8 37 00 E2 33 0C 36 33 0C 32 38 FC 00   d8..7..3.63.28..
0160- 64 05 02 36 0D 1C 38 F5 64 37 04 E8 38 05 E2 35   d..6..8.d7..8..5
0170- 0D 04 36 0D 07 0C 3A 01 C2 00 33 0C 39 E1 00 33   ..6...:...3.9..3
0180- 0C 0C 3A 01 C2 00 33 0C 32 64 3D D4 1C 64 3D D6   ..:...3.2d=..d=.
0190- 1C 32 64 3D D4 18 64 3D D6 1C 32 00 48 00 05 00   .2d=..d=..2.H...
01A0- 14 00 00 00 21 00 00 00 32 00 00 00 3A 00 00 00   ....!...2...:...
01B0- 35 C0 64 F4 39 01 7D E4 3F 91 EC 23 32 35 C0 39   5.d.9.}.?..#25.9
01C0- 03 E8 F6 64 F4 39 01 7D E4 3F 91 EC 23 32 35 C0   ...d.9.}.?..#25.
01D0- 64 F4 68 EC 23 32 35 C0 39 03 E8 F6 64 F4 68 EC   d.h.#25.9...d.h.
01E0- 23 32 00 00 AB 45 52 52 5F 48 45 4C 4C 4F 10 64   #2...ERR_HELLO.d
01F0- 00 00 00 45 52 52 5F 52 53 54 10 65 00 00 00 45   ...ERR_RST.e...E
0200- 52 52 5F 43 41 4E 43 45 4C 10 66 00 00 00 45 52   RR_CANCEL.f...ER
0210- 52 5F 53 55 43 43 45 53 53 10 67 00 00 00 45 52   R_SUCCESS.g...ER
0220- 52 5F 48 41 4E 44 53 48 41 4B 45 10 68 00 00 00   R_HANDSHAKE.h...
0230- 45 52 52 5F 4A 4F 42 10 69 00 00 00 45 52 52 5F   ERR_JOB.i...ERR_
0240- 54 49 4D 45 4F 55 54 10 6A 00 00 00 45 52 52 5F   TIMEOUT.j...ERR_
0250- 54 58 10 6B 00 00 00 45 52 52 5F 43 4F 44 45 10   TX.k...ERR_CODE.
0260- 6C 00 00 00 45 52 52 5F 49 4E 54 45 52 46 41 43   l...ERR_INTERFAC
0270- 45 10 6D 00 00 00 45 52 52 5F 4C 4F 57 56 4F 4C   E.m...ERR_LOWVOL
0280- 54 41 47 45 10 6E 00 00 00 45 52 52 5F 52 45 51   TAGE.n...ERR_REQ
0290- 55 45 53 54 53 55 53 50 45 4E 44 10 6F 00 00 00   UESTSUSPEND.o...
02A0- 44 49 53 50 4C 41 59 01                           DISPLAY.

______________________________________________________________________________
********************************************************* 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  display(errcode)

Program:  120 Longs
Variable: 0 Longs


# Objects

Load pin configuration object.
Load time object.


# Constants

ENUM t_ERR
  ERR_HELLO                         -> all LEDs blink once
  ERR_RST                           -> LED D2 on
  ERR_CANCEL, same as ERRCODE_QUIT  -> LED D2 off
  ERR_SUCCESS                       -> LED D2 off
  ERR_HANDSHAKE     -> LED D2 blinks once
  ERR_JOB           -> LED D2 blinks twice
  ERR_TIMEOUT       -> LED D2 blinks three times
  ERR_TX            -> LED D2 blinks 4 times
  ERR_CODE          -> LED D2 blinks 5 times
  ERR_INTERFACE     -> LED D2 blinks 6 times
  ERR_LOWVOLTAGE    -> LED D2 blinks 7 times
  ERR_REQUESTSUSPEND      --- internal flag


# Functions

_____________________
PUB  display(errcode)

Display status codes with 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 ***