beautypg.com

5 trapcode, 6 compile and download errors, Table 24. program download errors – Campbell Scientific CR200/CR200X-series Dataloggers User Manual

Page 164

background image

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