Skip to content
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

Board stuck after upload #179

Open
webdeb opened this issue Dec 28, 2023 · 1 comment
Open

Board stuck after upload #179

webdeb opened this issue Dec 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@webdeb
Copy link

webdeb commented Dec 28, 2023

After some debugging, I found that the reset.soft.listen command gets a response from the board and tries to write it into the terminal, which is at least wrong formatted..

After the selected line is executed where data is the text in the hover tooltip the boad is stuck.

Bildschirm­foto 2023-12-28 um 14 27 58

'\r\nb'\r\nMPY: soft reboot\r\nStarting...\r\nInputs created\r\nsixmix_program.py\r\nAdd custom programs\r\n'\n!!PyboardError!!\ncould not enter raw repl\n'

!!PyboardError!!\ncould not enter raw repl is an error message from pyboard.py which is defined at several places, I would propose to first add numbers to those lines, so it could be analyzed more precisely.

However, when this line is not executed: did a simple check (not a real fix) that part of the error is gone

          if (!data.includes("PyboardError")) {
            terminal?.write(data);
          }

There seems to be an uncaught exception in pyboard-serial when doing a terminal.write at certain conditions. Cannot investigate it further as the code for it is packaged and minified.

@webdeb webdeb added the bug Something isn't working label Dec 28, 2023
@paulober
Copy link
Owner

Thanks for debugging. The source-code for pyboard-serial can be found in https://github.com/paulober/pyboard-serial-com

Do you also have this error with reset.soft.listen with an empty board and a new project where the main python program only includes a print for example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants