sg-wireless / pymakr-atom

Adds a REPL console to Atom that connects to your Pycom board. It can run code on the board or synchronize your project files.
Other
35 stars 11 forks source link

Error: Writing to COM port (GetOverlappedResult): Operation aborted) #45

Closed jhoguaman closed 6 years ago

jhoguaman commented 6 years ago

I updated Atom (1.21.1) and Pymakr (1.2.0). The option Run in to REPL console works good. But when I want synchronize (Upload) a file, I get this error:

Error: Writing to COM port (GetOverlappedResult): Operation aborted Failed to read project status, uploading all files

When I worked with previous versions I didn't have any problem.

RalphHogenbirk commented 6 years ago

Hi @jhoguaman, sorry to hear about this error. Looking at it, it should be a windows only issue. I didn't get it on my own windows machine when testing, but I'll try to reproduce it. Can you send me the versions you are using? (output of apm --version)

I'm on a short trip outside the office until Monday, so I'll have a look at it first thing on tuesday. Hope that's not a problem for you. You could temporarily switch back to an older version for now, or use visual studio code

jhoguaman commented 6 years ago

Hi @RalphHogenbirk, Do you refer to this?

image

Currently, I have returned to older version of Atom(1.19.2) and Pymakr (1.1.1). Thanks for your response friend..!!

RalphHogenbirk commented 6 years ago

@jhoguaman I tested it today on my windows machine but can't seem to reproduce it. Only difference is that it's 32bit instead of your 64, so the difference might be there. I'll try to do a test tonight on my home 64bit machine. Sorry for taking so long!

mkrummenacher commented 6 years ago

I can confirm the problem on Windows 10 x64. Before the update it worked with expansion board and PySense. Now it's working if the LoPy is mounted on the PySense board, but not on the expansion board.

RalphHogenbirk commented 6 years ago

Thanks for the extra info @mkrummenacher, that will help me narrow the problem down! I'll keep you guys up to date

Smeedy commented 6 years ago

Running on OS/X I have a similar problem running Pymakr 1.2.0 on Atom 1.22.0

image

apm --version
apm  1.18.8
npm  3.10.10
node 6.9.5 x64
python 2.7.14
git 2.13.5

I'm running a genuine FTDI 3.3V TTL directly to the breadboard. Running an apm install pymakr@1.1.0 did the trick to get things working again for some days but looks like the 1.22.0 update also killed that one

danicampora commented 6 years ago

@Smeedy thanks for the report. There is an issue with the latest firmware that is causing this. We are solving it and a new firmware release will be out within 48hrs.

ThomasBastien commented 6 years ago

I think I am running the same issue with my LoPy on an extension board Found 1 serialport COM6 (copied to clipboard)

Disconnected. Click here to reconnect. Connecting on COM6... Connecting on COM6... MicroPython v1.8.6-796-g489fafa0 on 2017-10-15; LoPy with ESP32 Type "help()" for more information.

Found 1 serialport COM6 (copied to clipboard) '1.9.2.b2'

Downloading project (main folder)...

Reading files from board Found 2 existing files Downloading 2 files... [1/2] Reading main.py [2/2] Reading boot.py

Failed to connect (Error: Writing to COM port (GetOverlappedResult): Operation aborted). Click here to try again. Failed to download boot.py All items overritten Connecting on COM6...

On another LoPy board, I've updated to the latest firmware 1.10.0.b1 and it fails to connect to the COM port with the Expension board

ThomasBastien commented 6 years ago

The issue comes from Pymakr plugin for ATOM, with the release 1.1.5 it works.

agallo commented 6 years ago

This is happening on Windows 7, Atom 1.22.1, Pymakr 1.2.1

mkrummenacher commented 6 years ago

I have updated the firmware to 1.10.1.b1 but still have the same problem: grafik

Windows 10 x64 Atom 1.22.1 Pymakr 1.2.1

Only uploading does not work, "show firmware version" and "run" are working.

shailes commented 6 years ago

I also have precisely the same problem (and have been having it for the past 3 weeks or so, with different versions of Pymakr and the firmware):

Current configuration: LoPy Firmware 1.10.1.b1 Windows 10 x64 Atom 1.22.1 Pymakr 1.2.1

Upload doesn't work, but run does:

Failed to connect (Error: Writing to COM port (GetOverlappedResult): Operation aborted). Click here to try again.

pkilcoyne commented 6 years ago

I'm seeing the same issue, uploads work fine from pysense board but on the expansion board I'm getting the above error. I'm on a windows 10 machine running Atom 1.22.1 and Pymakr 1.2.1

Has this been resolved yet or is there a work around?

Thanks,

Paul

RalphHogenbirk commented 6 years ago

Pymakr v1.2.2 has now been released which should fix this bug! Let me know if it solves your issues

agallo commented 6 years ago

Windows 7 64-bit, Atom 1.22.1, Pymakr v1.2.2 -- working so far.

Thanks for the fix.

mkrummenacher commented 6 years ago

I can confirm that it's working with the new version. Windows 10 1709 x64, Atom 1.22.1, Pymakr 1.2.2.

Thank you for your help!

SpoofEx commented 6 years ago

It seems I have a similar issue with uploading the simplest project with only a main.py file containing print("Hello World"): afbeelding

Current configuration: windows 10 1709 16299.125 atom 1.23.3 Pymakr 1.2.27

I moved back to Pymaker 1.1.0 as Smeedy suggested, but the communication via COM6 with the ESP directly hangs: afbeelding

clicking on 'more' > 'Get serial ports' results in: afbeelding