-
Notifications
You must be signed in to change notification settings - Fork 160
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
can't establish a connection anylonger after upload of main.py #66
Comments
That's an unusual main.py, because it exits instead of looping forever. Do you have the same problem with a Given that there are two shell programs that don't work, and one that does, it would be worth looking at what's actually being sent. Also, try a |
Finally i found some time to test your case. If i
everything works as expected. However if i put
in my
Again, if i put As a next step i will try to compare the code of |
@nichtleiter: Did you check the delay option as suggested? Got the same error message after adding wifi connection to the code. Setting the delay fixed ampy in my case.
|
Hiya! We are discontinuing support for ampy, and will no longer be maintaining it. We are leaving this repository available for continued use. If you would like to take over supporting it, please contact us on the Adafruit Discord server and we can transfer the repository to you. |
On my system runs:
ampy --version
→ampy, version 1.0.7
Used board: wemos lolin d32
Steps to reproduce the problem:
esptool.py --chip esp32 erase_flash
esptool.py --baud 600000 --chip esp32 --port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20181024-v1.9.4-674-g27ca9ab8b.bin
main.py
on the board withampy -p /dev/ttyUSB0 put main.py
main.py
withampy -p /dev/ttyUSB0 run main.py
(Execution ofmain.py
starts without any issues -> LEDs start blinking)main.py
on the board again withampy -p /dev/ttyUSB0 put main.py
After step 5
ampy
gives the following error:rshell
exists with a similar error (see dhylands/rshell#27 (comment)).After that if i erase the flash and flash the micropython firmware again everything works as expected until i uploaded
main.py
of my blinking example. Maybe it's also woth to mention that i can access the Micropython repl withpicocom
without any problems.At the same time
mpfshell
works without complaining. Here's a quick sample session i started right after invokingampy
:The text was updated successfully, but these errors were encountered: