Documentation

Error from Crash Info Function

Some target computers contain hardware that can retain information in memory from before a software restart. If these computers also contain a hard drive, they can save crash data after a fatal error.

Caution

After a fatal error, do not restart the computer manually by using the boot or power switch. A manual restart prevents the computer from saving the crash data.

Twenty seconds after a fatal error, the target computer restarts itself and saves the crash data on the target computer hard drive. When the computer is running again, you can call the SimulinkRealTime.crashInfo function from the development computer to retrieve the crash data.

When you call this function, you can see the error:

Error: -9:file not found

on the target computer screen and the error:

Could not open target file c:\SLRTCRB.bin

in the Command Window. If you see one of these messages, look for the following causes:

  • You restarted the target computer manually by using the boot or power switch instead of waiting for it to restart itself.

  • The target computer restarted with a different kernel from the one that it was running when it experienced the fatal error. For example, suppose that you install DOS Loader on the target computer. If you start the computer with a USB drive that you remove afterward, and the computer has a fatal error, the restart uses DOS Loader.

  • The target computer does not retain information in memory from before a software restart. If the target restarts itself after a fatal error but does not print a message referring to SimulinkRealTime.crashInfo, it does not retain information in memory.

  • The target computer does not have a functioning hard drive.

  • The target computer wrote data into a crash file, but the file was unreadable.

See Also

|

Was this topic helpful?