purduesigbots / pros-atom

Main plugin for supporting PROS development in Atom
http://atom.io/packages/pros
Mozilla Public License 2.0
11 stars 9 forks source link

Hanging on Flash #39

Closed Reichenbachian closed 7 years ago

Reichenbachian commented 7 years ago

Expected Behavior:

I'm hoping for the program to flash to the VexNet.

Actual Behavior:

Instead, it is hanging on either 'Stopping user code' or 'Asking for system information'. Upon further inspection, I saw that both of these scenarios are caused by a hang in port.flush().

I'm working with the OS-X version of atom and the most recent version of this repository.

Reichenbachian commented 7 years ago

For further information: On the times it receives data and hangs, the output of received is b'' On the times it receives data and doesn't hang, the output of received is b'\xaaU!\n\x04\x19\x04\x19s\x00\x00\x10\x00\t'

Reichenbachian commented 7 years ago

I added reset_cortex(port) before the flush, and now it consistently gets past both 'Stopping user code' or 'Asking for system information'.

def stop_user_code(port, ctx=proscli.utils.State()):
    reset_cortex(port)
    ....
edjubuh commented 7 years ago

Alex, sorry for the lack of responses on our end. We've been working on making downloading more reliable on purduesigbots/pros-cli#27. If you have a chance, try seeing if you get better success on that branch. Run pip install -e git+https://github.com/purduesigbots/pros-cli.git@flasher-tinkering#egg=pros-cli to get this pre-production version. To get back out of it, just run pip install pros-cli and you'll be put back on the production version.