Campbell Scientific CR200X CR200/CR200X-series Dataloggers - Page 164

TrapCode, 1.1.6, Compile and Download Errors

Page 164 highlights

Section 18. Troubleshooting 18.1.1.5 TrapCode Normally this value is zero. If set to a value of 16, TrapCode indicates an EEPROM memory failure. When this occurs the datalogger stops running its program and the red LED flashes twice per scan interval. The datalogger must be returned to CSI to replace the Serial Flash EEPROM. Contact a Campbell Scientific applications engineer to receive an RMA number. 18.1.1.6 Compile and Download Errors When a user program is compiled , it is checked for errors. Errors caught by the compiler are termed "Compile Errors." Because CR200(X) programs are compiled externally by the datalogger support software, most programming errors are found before the program reaches the CR200(X). A program wherein no compile errors are found may still have errors only detectable after the program reaches the CR200(X). These errors are "Download Errors." TABLE. Program Download Errors p. 152 lists possible error messages and conditions. Table 24. Program Download Errors Download Error / Condition Error Meaning "No Prog Running" Flash memory holding the program has been erased. "Wrong OS Ver" Program was compiled in the CRBASIC Editor with an incorrect (usually older) compiler executable that does not match the operating system resident in the CR200(X). Notes Compiler executable file (C:\Campbellsci\Lib\ CR200Compilers \cr2compvxxxx.exe) must match the CR200(X) operating system (cr2osvxxxx.a43), where xxxx is the operating system version number. Compiler executable version is shown on the first line of the compile results in CRBASIC Editor. This error typically occurs only when forcing a .BIN file to be sent to the CR200(X). By default, datalogger support software "sends" the .CR2 file, automatically matching OS and compiler. "Wrong Prog" "Prog Corrupt" "Flash Erased" No error detected but program does not run. No error detected, program runs but malfunctions. Program down load started then was either aborted or not completed because of a communication error, etc. Program is corrupt or damaged. Flash area has been erased The CR200(X) may not have adequate memory. Often due to a short Scan() time. Current compilers can be obtained at www.campbellsci.com. Attempt to re-send program. When power is cycled, program is re-loaded from FLASH. If program stored in FLASH becomes corrupt, this error may occur. When power is cycled, program is re-loaded from FLASH. If FLASH has been erased because of a system problem, this error may occur. Check program memory requirements for data tables and variables. Increase the scan rate or remove lower priority instructions. 152

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208

Section 18.
Troubleshooting
18.1.1.5 TrapCode
Normally this value is zero. If set to a value of 16, TrapCode indicates an
EEPROM memory failure. When this occurs the datalogger stops running its
program and the red LED flashes twice per scan interval. The datalogger must
be returned to CSI to replace the Serial Flash EEPROM. Contact a Campbell
Scientific applications engineer to receive an RMA number.
18.1.1.6
Compile and Download Errors
When a user program is compiled , it is checked for errors.
Errors caught by the
compiler are termed “Compile Errors.”
Because CR200(X) programs are
compiled externally by the datalogger support software, most programming
errors are found before the program reaches the CR200(X).
A program wherein
no compile errors are found may still have errors only detectable after the
program reaches the CR200(X).
These errors are “Download Errors.”
TABLE.
Program Download Errors
p. 152 lists possible error messages and conditions.
Table 24.
Program Download Errors
Download Error / Condition
Error Meaning
Notes
"No Prog Running"
Flash memory holding the program
has been erased.
"Wrong OS Ver"
Program was compiled in the
CRBASIC Editor with an incorrect
(usually older) compiler executable
that does not match the operating
system resident in the CR200(X).
Compiler executable file
(C:\Campbellsci\Lib\ CR200Compilers
\cr2compvxxxx.exe) must match the
CR200(X) operating system
(cr2osvxxxx.a43), where
xxxx is the
operating system version number.
Compiler executable version is shown on
the first line of the compile results in
CRBASIC Editor.
This error typically occurs only when forcing
a .BIN file to be sent to the
CR200(X).
By default, datalogger support
software "sends" the .CR2 file,
automatically matching OS and compiler.
Current compilers can be obtained at
www.campbellsci.com.
"Wrong Prog"
Program down load started then was
either aborted or not completed
because of a communication error,
etc.
Attempt to re-send program.
"Prog Corrupt"
Program is corrupt or damaged.
When power is cycled, program is re-loaded
from FLASH.
If program stored in FLASH
becomes corrupt, this error may occur.
"Flash Erased"
Flash area has been erased
When power is cycled, program is re-loaded
from FLASH.
If FLASH has been erased
because of a system problem, this error
may occur.
No error detected but program
does not run.
The CR200(X) may not have
adequate memory.
Check program memory requirements
for
data tables and variables.
No error detected, program runs
but malfunctions.
Often due to a short Scan() time.
Increase the scan rate or remove lower
priority instructions.
152