Documentation for “Zerocat Chipflasher” as of Sat, 07 Dec 2024 11:40:48 +0100
Repository:
Version: v2.0.5-18-05a6c4fe7
Branch: master

../../firmware2/src/error.spin.flashrom.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 516 bytes
TYPE: 43   VALUE: 00000000 (00000000)   NAME: ERR_HELLO
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_JOB
TYPE: 43   VALUE: 00000006 (00000000)   NAME: ERR_TIMEOUT
TYPE: 43   VALUE: 00000007 (00000000)   NAME: ERR_TX
TYPE: 43   VALUE: 00000008 (00000000)   NAME: ERR_CODE
TYPE: 43   VALUE: 00000009 (00000000)   NAME: ERR_INTERFACE
TYPE: 43   VALUE: 0000000A (00000000)   NAME: ERR_LOWVOLTAGE
TYPE: 43   VALUE: 0000000B (00000000)   NAME: ERR_CABLE
TYPE: 43   VALUE: 0000000C (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: CHECK_CABLE^A
TYPE: 50   VALUE: 00000002 (00000000)   NAME: GET_BOARD_CONFIG^A
TYPE: 50   VALUE: 00000103 (00000000)   NAME: GET_BOARD_VERSION^A
TYPE: 50   VALUE: 00000104 (00000000)   NAME: GET_PIN_RSTINHIBIT^A
TYPE: 50   VALUE: 00000105 (00000000)   NAME: GET_MONITOR_HARDWARE^A
TYPE: 50   VALUE: 00000106 (00000000)   NAME: GET_POWERUP_TYPE^A
TYPE: 50   VALUE: 00000107 (00000000)   NAME: GET_SUSPEND_INHIBIT^A
TYPE: 50   VALUE: 00000108 (00000000)   NAME: GET_MODE_SPI^A
TYPE: 50   VALUE: 00000109 (00000000)   NAME: GET_DRIVER_STRENGTH^A
TYPE: 50   VALUE: 0000010A (00000000)   NAME: GET_BAUDRATE^A
TYPE: 50   VALUE: 0000010B (00000000)   NAME: HIGH^A
TYPE: 50   VALUE: 0000010C (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: 714

_CLKMODE: 00
_CLKFREQ: 00B71B00

0000- 00 00 F4 01 8C 00 02 02 10 00 00 00 8C 00 00 00   ................
0010- AC 01 00 00 38 88 64 35 0D 3C 36 0D 80 5B 37 00   ....8.d5.<6..[7.
0020- 0D 80 63 38 0E 3D D4 18 01 39 01 5E 06 03 02 64   ..c8.=...9.^...d
0030- 37 21 ED 08 19 38 0E 3D D4 1C 01 38 32 06 03 02   7!...8.=...82...
0040- 38 0E 3D D4 18 01 39 01 5E 06 03 02 09 67 01 39   8.=...9.^....g.9
0050- 01 5E 06 03 02 0C 01 38 64 06 03 02 37 22 37 23   .^.....8d...7"7#
0060- 38 0D 3E B4 01 39 01 2C 06 03 02 35 37 23 38 0D   8.>..9.,...57#8.
0070- 3E B4 01 38 64 06 03 02 0C 38 0E 3D D4 1C 01 39   >..8d....8.=...9
0080- 01 2C 06 03 02 0C 38 0E 3D D4 18 0C 32 00 00 00   .,....8.=...2...
0090- 20 01 0D 00 34 00 00 00 3E 00 00 00 59 00 00 00    ...4...>...Y...
00A0- 61 00 00 00 73 00 00 00 83 00 00 00 98 00 00 00   a...s...........
00B0- AD 00 00 00 C9 00 00 00 DF 00 00 00 0D 01 00 00   ................
00C0- 16 01 00 00 38 09 3D 92 35 FB 61 62 47 32 38 17   ....8.=.5.abG28.
00D0- 38 12 3E 92 E7 37 25 E8 61 37 00 62 43 38 11 37   8.>..7%.a7.bC8.7
00E0- 03 3E 92 37 21 E8 62 4A 32 64 37 21 E8 36 EC 33   .>.7!.bJ2d7!.6.3
00F0- 32 38 72 00 64 05 03 36 0D 04 38 0B 33 0C 37 03   28r.d..6..8.3.7.
0100- 33 0C 32 38 82 00 64 05 03 36 0D 03 34 33 0C 35   3.28..d..6..43.5
0110- 33 0C 32 38 97 00 64 05 03 36 0D 08 64 37 06 E8   3.28..d..6..d7..
0120- 35 FB 33 0C 34 33 0C 32 38 AC 00 64 05 03 36 0D   5.3.43.28..d..6.
0130- 08 64 37 05 E8 35 FB 33 0C 35 33 0C 32 38 C8 00   .d7..5.3.53.28..
0140- 64 05 03 36 0D 0E 64 37 03 E8 0A 04 35 33 04 03   d..6..d7....53..
0150- 37 21 33 0C 37 21 33 0C 32 38 DE 00 64 05 03 36   7!3.7!3.28..d..6
0160- 0D 09 64 38 0C E8 37 00 E2 33 0C 36 33 0C 32 39   ..d8..7..3.63.29
0170- 01 0C 00 64 05 03 36 0D 1D 39 01 05 64 37 04 E8   ...d..6..9..d7..
0180- 38 05 E2 35 0D 04 36 0D 07 0C 3A 01 C2 00 33 0C   8..5..6...:...3.
0190- 39 E1 00 33 0C 0C 3A 01 C2 00 33 0C 32 64 3D D4   9..3..:...3.2d=.
01A0- 1C 64 3D D6 1C 32 64 3D D4 18 64 3D D6 1C 32 00   .d=..2d=..d=..2.
01B0- 48 00 05 00 14 00 00 00 21 00 00 00 32 00 00 00   H.......!...2...
01C0- 3A 00 00 00 35 C0 64 F4 39 01 7D E4 3F 91 EC 23   :...5.d.9.}.?..#
01D0- 32 35 C0 39 03 E8 F6 64 F4 39 01 7D E4 3F 91 EC   25.9...d.9.}.?..
01E0- 23 32 35 C0 64 F4 68 EC 23 32 35 C0 39 03 E8 F6   #25.d.h.#25.9...
01F0- 64 F4 68 EC 23 32 00 00 5A 45 52 52 5F 48 45 4C   d.h.#2..ZERR_HEL
0200- 4C 4F 10 00 00 00 00 45 52 52 5F 52 53 54 10 01   LO.....ERR_RST..
0210- 00 00 00 45 52 52 5F 43 41 4E 43 45 4C 10 02 00   ...ERR_CANCEL...
0220- 00 00 45 52 52 5F 53 55 43 43 45 53 53 10 03 00   ..ERR_SUCCESS...
0230- 00 00 45 52 52 5F 48 41 4E 44 53 48 41 4B 45 10   ..ERR_HANDSHAKE.
0240- 04 00 00 00 45 52 52 5F 4A 4F 42 10 05 00 00 00   ....ERR_JOB.....
0250- 45 52 52 5F 54 49 4D 45 4F 55 54 10 06 00 00 00   ERR_TIMEOUT.....
0260- 45 52 52 5F 54 58 10 07 00 00 00 45 52 52 5F 43   ERR_TX.....ERR_C
0270- 4F 44 45 10 08 00 00 00 45 52 52 5F 49 4E 54 45   ODE.....ERR_INTE
0280- 52 46 41 43 45 10 09 00 00 00 45 52 52 5F 4C 4F   RFACE.....ERR_LO
0290- 57 56 4F 4C 54 41 47 45 10 0A 00 00 00 45 52 52   WVOLTAGE.....ERR
02A0- 5F 43 41 42 4C 45 10 0B 00 00 00 45 52 52 5F 52   _CABLE.....ERR_R
02B0- 45 51 55 45 53 54 53 55 53 50 45 4E 44 10 0C 00   EQUESTSUSPEND...
02C0- 00 00 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:  125 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          same as ERRCODE_TRANSMISSION_ERROR  -> LED D2 blinks 4 times
  ERR_CODE        same as ERRCODE_CODE                -> LED D2 blinks 5 times
  ERR_INTERFACE                                       -> LED D2 blinks 6 times
  ERR_LOWVOLTAGE                                      -> LED D2 blinks 7 times
  ERR_CABLE                                           -> LED D2 blinks 8 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 ***