-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connecting via serial console crashes MicroPython #25
Comments
thanks for the workaround, problem still appears to be there. out of curiosity, what led to your statement "It seems that part of the problem concerns with the Python Interpreter changeing the baud rate... maybe" - I'm not sure how to process the above core panics. Are there symbols somewhere or should one rebuild the firmware on ones own to get them? |
The core panics were provided for the benefit of developers attempting to fix the bug, you won't need them if you are using the workaround. In order to work with them you would need the identical build of the firmware and the IDF tools provide scripts to generate more informative backtraces from the individual stack addresses. The baud rate thing was an observation, but this was half a year ago, I no longer know the specifics. Are you working on fixing the bug or just curious? |
I was just curious - my main goal was more around using Python this time around. But fixing the core issue around that fault is some yak I could follow for a while if not shave. PS: I should say I observed similar panics but I didn't compare the instruction pointers to see if they were the same. Since there might have been a couple of badgepython releases since then it might have changed and still be the same bug. PPS:
And
So the PC keeps changing (something something wrote at the wrong place in memory I suppose, which is the starting point for some interesting stories), but the backtrace between your diagnostic data and my two dumps is identical : glitch still here and quite simple to reproduce - follow the wiki instruction - start badgepython, open serial console, boom. |
Appears to be caused by garbage data being sent from the RP2040 to the ESP32 when a terminal program opens the USB CDC interface. Although even when receiving garbage data BadgePython should not crash so while th Analyzing the backtrace I get when causing the crash using addr2line on a development build gives:
We never saved the elf file for the released BadgePython executable. We should definitely do that next time because now we can't relate the backtraces supplied to us by a2800276 to the source code.
|
Shiny new micropython release this evening at https://github.com/micropython/micropython/releases/tag/v1.20.0 Would that warrant doing a new badgePython build with symbols available on the side or something? I'm down to test it see if the serial plug still panics it. |
Connecting to a running micropython instance crashes the interpreter in (unknown) circumstances.tend
It seems that part of the problem concerns with the Python Interpreter changeing the baud rate... maybe
Workaround for conference attendants: start the serial console before you start the Python App, you 'll see the reboot messages as Python starts, and for whatever reason, the Interpreter does not crash ...
The text was updated successfully, but these errors were encountered: