I am looking at the SDK examples for the logging evkbmimxrt1170_log_bm and evkbmimxrt1170_log_freeRTOS.
As far I understand it allows to enable the logging capability of the running application and then send the logging entries to the UART. Not sure about the ring buffer option, how it is used.
What I am looking for - an ability to enable logging before running the application and then to get the logs during and after the application finished or crashed. Obviously this would require writing the logs to the non-volatile memory (flash) and ability to read this memory even when the application is not running.
Is there anything similar to this in MIMXRT1170 SDK or other platforms?
Limited size ring buffer log in non-volatile memory at fixed flash memory address might work I guess, I just wonder how do I extract this log when the application is not running? Should I write just another utility application for this? Would the ring buffer option in evkbmimxrt1170_log_bm work this way if fed with flash memory address?
Any input is appreciated.
Hi @VassiliN,
The logging information could definitely be saved in non-volatile memory for later reference, but I'm afraid it wouldn't be able to be extracted when the application is not running.
BR,
Edwin.
> I'm afraid it wouldn't be able to be extracted when the application is not running.
Edwin,
I understand that and I already wrote in my original post
> Should I write just another utility application for this?
As another idea, can I put a file system on top of flash memory to be able to extract the log data afterwards as files?
I just don't believe nobody uses persistent logging system on this platform.
Hi @VassiliN,
Yes, having a file system would be a good way of extracting the log files out of the system for later revisions.
BR,
Edwin.