Page 1 of 1

How read dump logs type: panic.

Posted: Sat Feb 27, 2021 3:14 pm
by prem111
Sorry for the obvious question for you. How to read dump panic'ed logs? Thanks.

Re: How read dump logs type: panic.

Posted: Sat Feb 27, 2021 9:24 pm
by dhylands
You can use a tool like rshell (or ampy or thonny) and cat the file.

Or you can write some code in python to read the file.

If pyboard.py works with your board, you could do something like this:

Code: Select all

with open('/flash/panic.log', 'r') as logfile:
    for line in logfile:
        print(line)
and put that in a file on your local machine and then execute it on your board using pyboard,py