You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a list of notices (messages) generated during the Propeller loading process. They match the PropLoader message values and meaning as closely as possible.
5
+
6
+
A numeric code is prepended to each notice in the format ###-<text_notice>.
7
+
8
+
There are three categories of notices and notice codes:
9
+
10
+
* Status - These express state/progress/event information and are given codes 001 through 099.
11
+
* Error - These express fatal problems and are given codes 100 and beyond.
12
+
* Verbose - These are for seasoned developers. They may express state information or specific deep error information that is usually only helpful to a small
13
+
set of users, thus, they are only shown in debug output. These are all automatically given the code 000.
14
+
15
+
Code numbers ARE NEVER REUSED for a condition that means something different than what was first intended by a notice. When a new Status or Error notice
16
+
is created, it simply takes on the next available code number even if it's logically related to another far away notice.
17
+
*/
18
+
19
+
// Status Notice IDs ("rsvd" are reserved by PropLoader and/or for future use)
20
+
//rsvd nsOpeningFile = 001;
21
+
constnsDownloading=002;
22
+
constnsVerifyingRAM=003;
23
+
//rsvd nsOpeningFile = 004;
24
+
constnsDownloadSuccessful=005;
25
+
//rsvd nsTerminalMode = 006;
26
+
//rsvd nsWritingToSDCard = 007;
27
+
//rsvd nsBytesRemaining = 008;
28
+
//rsvd nsBytesSent = 009;
29
+
//rsvd nsSettingModuleName = 010;
30
+
//rsvd nsUsingAlternatePort = 011;
31
+
//rsvd nsSteppingDownBaudRate = 012;
32
+
//rsvd nsUsingSingleStageLoader = 013;
33
+
constnsVerifyingEEPROM=014;
34
+
35
+
// Error Notice IDs
36
+
//rsvd neCanOnlyNameWIFIModules = 100;
37
+
//rsvd neInvalidModuleAddress = 101;
38
+
constneDownloadFailed=102;
39
+
//rsvd neCantOpenFile = 103;
40
+
constnePropellerNotFound=104;
41
+
//rsvd neFailedToEnterTerminalMode = 105;
42
+
//rsvd neWrongWIFIModuleFirmware = 106;
43
+
//rsvd neFailedToWriteToSDCard = 107;
44
+
//rsvd neInvalidModuleName = 108;
45
+
//rsvd neFailedToSetModuleName = 109;
46
+
//rsvd neFileTruncated = 110;
47
+
//rsvd neFileCorrupted = 111;
48
+
//rsvd neCantReadPropellerAppFile = 112;
49
+
//rsvd neWIFIModuleDiscoveryFailed = 113;
50
+
//rsvd neNoWIFIModulesFound = 114;
51
+
//rsvd neSerialPortDiscoveryFailed = 115;
52
+
//rsvd neNoSerialPortsFound = 116;
53
+
constneCanNotOpenPort=117;
54
+
//rsvd neCanNotConnectToModule = 118;
55
+
constneCanNotSetBaudrate=119;
56
+
//rsvd neInternalCodeError = 120;
57
+
//rsvd neInsufficientMemory = 121;
58
+
//rsvd neNoResetMethod = 122;
59
+
//rsvd neResetFailed = 123;
60
+
constneUnknownPropellerVersion=124;
61
+
constneRAMChecksumFailed=125;
62
+
//rsvd neEEPROMChecksumFailed = 126;
63
+
constneEEPROMVerifyFailed=127;
64
+
constneCommunicationLost=128;
65
+
constneLoaderFailed=129;
66
+
constneCommunicationFailed=199;
67
+
68
+
// Notices, by ID
69
+
notices={
70
+
[nsDownloading] : "Downloading",
71
+
[nsVerifyingRAM] : "Verifying RAM",
72
+
[nsDownloadSuccessful] : "Download successful!",
73
+
[nsVerifyingEEPROM] : "Programming and verifying EEPROM",
74
+
[neDownloadFailed] : "Download failed!",
75
+
[nePropellerNotFound] : "Propeller not found",
76
+
[neCanNotOpenPort] : "Can not open port %s",
77
+
[neCanNotSetBaudrate] : "Can not set port %s to baudrate %s",
78
+
[neUnknownPropellerVersion] : "Found Propeller version %d - expected version 1",
/* Notice (message) retriever. Returns textual message indicated by the noticeId, inserts the optional values into it, and prepends with the noticeId value
88
+
in the form ###-<message>.
89
+
noticeId is the identifier of the notice; ex: nsDownloading.
90
+
values is an optional array of values to stuff into notice.*/
91
+
//Retrieve notice; if undefined,
92
+
nMsg=notices[noticeId];
93
+
//Fill in variables if needed; if notice undefined, use first values element as notice.
0 commit comments