How read dump logs type: panic.

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
prem111
Posts: 127
Joined: Sun Feb 23, 2020 3:18 pm

How read dump logs type: panic.

Post by prem111 » Sat Feb 27, 2021 3:14 pm

Sorry for the obvious question for you. How to read dump panic'ed logs? Thanks.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: How read dump logs type: panic.

Post by dhylands » Sat Feb 27, 2021 9:24 pm

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

Post Reply