I get missing or unreadable development computer crash information and errors for the
Target computers save crash data to their hard disk after a fatal error. Use the
SimulinkRealTime.crashInfo function to
view this information.
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: -9:file not found
And, the development computer can display the error:
Could not open target file c:\SLRTCRB.bin
If you see one of the messages in the examples, look for one of these causes and try the related workaround.
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.
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.
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
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.
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.