Git Product home page Git Product logo

Comments (2)

tdicola avatar tdicola commented on August 18, 2024

Ah that's a tricky one since the pyboard.py file from MicroPython's source is what owns and controls the serial connection. I try not to modify this file since it's pulled from their repo and might change over time, but it does look like I might be able to ensure the close is called on the serial port even if the program crashes or ctrl-c exits. I just added logic in the latest 1.0.1 version of the tool so it will try to close the serial port no matter what when exiting or crashing. I couldn't repro it to confirm but try upgrading to the latest ampy and let's see if that helps make ctrl-c not keep the port open. You can upgrade by running:

pip install adafruit-ampy --upgrade

Look for the 1.0.1 version to have this change, thanks!

from ampy.

carterw avatar carterw commented on August 18, 2024

I installed your version 1.0.1, thanks very much for the update. I'm able to work with the high COM port numbers, no problem. However I am still seeing random situations where ampy hangs for some reason and I have to control-c to exit. It is probably 1 out of 5 times. When this happens I am seeing a zombie python process in the windows task manager and I have to manually kill it. I can then invoke the exact same command and it usually works.

There is no obvious pattern to it, even "ampy --port COM24 ls" may fail.

from ampy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.