#  Collect RAM dumps 

Source: [https://docs.qualcomm.com/doc/80-88500-3/topic/109__Collect_RAM_dumps_.html](https://docs.qualcomm.com/doc/80-88500-3/topic/109__Collect_RAM_dumps_.html)

The RAM dumps capture the state of the system when the device encounters critical exceptions. The
      RAM dumps can be extracted then analyzed by tools to identify the call stack and other state
      information of the hardware when the issue occurs.

## Prerequisites

The HLOS (Linux) portion must be built with the debug configuration of the kernel.

## Collect RAM dump

The following procedure collects RAM dumps using Qualcomm PCAT tool (recommended) OR Qualcomm
        Product Support Tool (QPST) at the time of the device crash.

1. Ensure that the following parameter is enabled.
    Download
            mode

        echo 1 > /sys/module/restart/parameters/download_modeCopy to clipboard

    On
            some new versions, it is controlled by the following
          `sysfsnode`.

        echo 1 > /sys/module/msm_poweroff/parameters/download_modeCopy to clipboard
2. Launch the QPST tool.
    Whenever a device crashes, it goes into RAM dump mode (900E). In
            QPST, the display of a green indicator means that a dump is being downloaded.

    Go
            to HELP &gt; Open log file directory &gt;
              Sahara to collect the dumps from the PORT\_COM.

- **[Crash collection plug-in](https://docs.qualcomm.com/doc/80-88500-3/topic/110_Crash_collection_plugin.html)**
- **[Crash collection parameters](https://docs.qualcomm.com/doc/80-88500-3/topic/111_Crash_collection.html)**

**Parent Topic:** [Debug mechanisms](https://docs.qualcomm.com/doc/80-88500-3/topic/77_Debugging_procedures.html)

Last Published: Sep 26, 2023

[Previous Topic
Collect core dumps](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/108_Collect_core_dumps_.md) [Next Topic
Crash collection plug-in](https://docs.qualcomm.com/bundle/publicresource/80-88500-3/topics/110_Crash_collection_plugin.md)