Hi,
I saw that LOG_HEXDUMP_INF prints debug data to a console, Is it possible to write in a dump file at memory..?
As I have a requirement to generate core dump file
Thanks
Hi,
I saw that LOG_HEXDUMP_INF prints debug data to a console, Is it possible to write in a dump file at memory..?
As I have a requirement to generate core dump file
Thanks
Hi,
Yes, you can use CONFIG_LOG_BACKEND_FS
You also have memfault, with the CONFIG_MEMFAULT_NCS_INTERNAL_FLASH_BACKED_COREDUMP setting
Thanks Sigurd,
Yes, you can
Do I have any sample provided by nCS wherein I can experiment with this feature..?
Thanks,
We have a memfault sample here(for nrf9160): https://github.com/nrfconnect/sdk-nrf/tree/v2.1.2/samples/nrf9160/memfault
for CONFIG_LOG_BACKEND_FS, there seems to be a test case here that shows the usage: https://github.com/nrfconnect/sdk-zephyr/tree/v3.1.99-ncs1/tests/subsys/logging/log_backend_fs
We have a memfault sample here(for nrf9160): https://github.com/nrfconnect/sdk-nrf/tree/v2.1.2/samples/nrf9160/memfault
for CONFIG_LOG_BACKEND_FS, there seems to be a test case here that shows the usage: https://github.com/nrfconnect/sdk-zephyr/tree/v3.1.99-ncs1/tests/subsys/logging/log_backend_fs