Hello,
I'm attempting to use the RAM dump feature and have had no success. Using the QCLI_demo application, I've set the PLATFORM_RAMDUMP_CONFIG to 0x00000002 to enable the saving of the RAM dump information to flash and NOT wait for UART/USB to extract it. The reason I disabled the UART/USB function is because QDART locks up on my machine when the QCA4020 enumerates. Additionally, I would prefer the QCA4020 reset and execute the application as normal (and not wait for a USB connection).
Using the qapi_Ramdump_Handle API call in the QCLI_demo I get "Platform: Failed to get ramdump state". The only modification I added to the stock QCLI_demo applciation was to add a CLI command to perform an illegal memory access to initiate a fault. I execute this command after setting up WiFi and networking. I can ping my FTP server, but it seems that is not relevant because the API call indicates the RAM dump information is not present.
Here is the QCLI_demo output after I trigger a fault:
Platform$> Platform: Failed to get ramdump state 15 Platform: ===========M4 coredump start=========== Platform: coredump version = [1] Platform: os type=[4] Platform: os version = [1] Platform: arch version = [1] Platform: error message = [Error Fatal, parameters: %d %d %d] Platform: file name = [Exception Detected : Memory Management Fault] Platform: line number = [0] Platform: param[0] = [0] Platform: param[1] = [0] Platform: param[2] = [0] Platform: ===========M4 coredump end=========== Platform: Platform: ===========M0 coredump start=========== Platform: coredump version = [1] Platform: os type=[4] Platform: os version = [1] Platform: arch version = [1] Platform: error message = [Error Fatal, parameters: %d %d %d] Platform: file name = [] Platform: line number = [66] Platform: param[0] = [0] Platform: param[1] = [0] Platform: param[2] = [0] Platform: ===========M0 coredump end=========== Platform: Platform$>
Please provide a configuration that will save the RAM dump information to flash as well as a means of triggering the process to occur. I would prefer to use the FTP mechanism to extract the RAM dump information.
Thank you,
Ryan
How much flash is required for the RAM dump information? Is it a portion of the size of RAM? All of RAM? Please provide an the actual amount of flash that is required to save the RAM dump information, how to calculate it, and how to configure it.
I verified the "PLATFORM RAMDUMP CONFIG" is enabled in DevCfg_master_fom_out_cdb.xml.
<props id="11" id_name="PLATFORM RAMDUMP CONFIG" oem_configurable="true" helptext="Configure the RAM Dump. " type="0x00000002">
How much flash is required for the RAM dump information? Is it a portion of the size of RAM? All of RAM? Please provide an the actual amount of flash that is required to save the RAM dump information, how to calculate it, and how to configure it.
I verified the "PLATFORM RAMDUMP CONFIG" is enabled in DevCfg_master_fom_out_cdb.xml.
<props id="11" id_name="PLATFORM RAMDUMP CONFIG" oem_configurable="true" helptext="Configure the RAM Dump. " type="0x00000002">