Choose the Dump File Type (Compact 7)
3/12/2014
You can set the type of dump file that the device generates. By selecting the type of dump file to generate, you can help balance your need for more information with the space that is available for storing it. Larger dump files provide more information, but embedded devices often have restricted amounts of memory available.
The following table shows the types of dump files available. The default is System dump. However, if the size of the System dump file is expected to be larger than the space allocated to it, the device generates a much smaller Context dump file. For information about the format of dump files, see Error Reporting Dump Files.
Capture method | Contents captured | Best used for |
---|---|---|
Context dump |
4 KB to 64 KB Context record Module and thread list Call stack of current thread Memory adjacent to current thread |
Best for a sequential, deterministic application
|
System dump |
64 KB to several MB All processes and threads executing at the time of capture Call stacks and context records for all threads 2048 bytes of memory above and below instruction pointer of current thread Global variables for current process |
Best for multithreaded applications, device drivers, and kernel processes.
|
Complete dump |
All physical memory |
|
If you want the dump file to be a System dump, you don’t need to change any registry values because that is the default setting. If you want to change the dump file type to Context or Complete, the registry value that you need to change is: [HKEY_LOCAL_MACHINE\System\ErrorReporting\DumpSettings] "DumpType".
To change the dump file type
In Platform Builder, open your OS design project.
In Solution Explorer, expand the OS design project node, and then expand the Parameter Files directory.
Under Parameter Files, double-click OSDesign.reg.
In the OSDesign.reg pane, expand HKEY_LOCAL_MACHINE, right-click System, click New, and then click Key.
Type ErrorReporting, and then press Enter.
Right-click ErrorReporting, click New, and then click Key.
Type DumpSettings, and then press Enter.
Right-click DumpSettings, click New, and then click DWORD Value.
Type DumpType, and then press Enter.
In the Properties pane for the DumpType registry value, set Data to 1 for Context dump or 3 for Complete dump.
Save and then build the OS design project.