Sys.Runmode R/O Property

Top  Previous  Next

 

Function:

Returns current run (execution) mode.

Type:

Enum (pl_sys_mode, byte)

Value Range:

0- PL_SYS_MODE_RELEASE: debugging is not possible, application execution starts immediately after device powers up. Severe errors such as "divizion by zero" are ignored and do not stop execution.

1- PL_SYS_MODE_DEBUG: debug mode in which it is possible to cross-debug the application (under the control of TIDE software). Application execution is not started automatically after the power up. Severe errors such as "divizion by zero" halt execution.

See Also:

sys.currentpll, sys.newpll, sys.resettype, and sys.halt

 


Details

For some programs, it may be useful to know if the program is currently executing in debug or release mode.