This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Troubleshoot Missing or Unreadable Crash Information

I get missing or unreadable development computer crash information and errors for the SimulinkRealTime.crashInfo function.

What This Issue Means

Target computers save crash data to their hard disk after a fatal error. Use the SimulinkRealTime.crashInfo function to view this information.

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.

If an error occurs when you call the SimulinkRealTime.crashInfo function, the target computer can display error:

Error: -9:file not found

And, the development computer can display the error:

Could not open target file c:\SLRTCRB.bin

Try This Workaround

If you see one of the messages in the examples, look for one of these causes and try the related workaround.

Wait for the Target Computer Restart

If you restarted the target computer manually by using the boot or power switch, the manual restart prevented the target computer from generating crash information. Try waiting for the target computer to restart itself instead if another crash occurs.

Check the Boot Kernel

If the target computer restarted with a different kernel from the one that it was running when it experienced the fatal error, the different kernel can prevent the target computer from generating crash information. 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. Try to make sure that the target computer can boot from the same kernel (not a different kernel) if another crash occurs.

Check the Crash Message

If the target computer restarts itself after a fatal error but does not print a message referring to SimulinkRealTime.crashInfo, the target computer does not retain information in memory. The target computer does not retain information in memory from before a software restart. Try to make sure that you see a message referring to SimulinkRealTime.crashInfo after a crash occurs.

Check the Target Computer Drive

If the target computer does not have a functioning hard drive (for example, it uses a RAM drive instead), the target computer does not retain crash information. Try checking whether the target computer hard drive is functional.

Check the Crash Info File

If the target computer wrote data into a crash file, the SimulinkRealTime.crashInfo function fails if the file is unreadable. Try checking whether the crash information file is readable.

See Also

|