gepd/uPiotMicroPythonTool

Unable to connect to board

jevers76 opened this issue · 9 comments

Windows 8.1
Sparkfun ESP32 Thing

I installed uPiot to Sublime 3. When I issue any of the commands that would talk to the board through the serial port I get a dialog box to select which COM port to use, but when I select the port my ESP32 is connected to the port select window closes with no apparent communications. I have tried open console, erase flash, download firmware, etc. I have tried two different boards one with Micropython already programmed and one erased. I have been able to use uPyCraft successfully so the boards and COM port are OK.

gepd commented

Can you please check the output of the Sublime Text console ST Menu > View > Show Console, after try to open the console or any other command it should show any possible error. Paste the output here so I can help you

gepd commented

Now I've realized; after you select the port no new window is open? It should create a new one with the console, I'll try the plugin at windows 8, can you confirm the Sublime Text version you have installed?

gepd commented

I've installed Windows 8.1 and this is how it looks like:

console_w8

So I think the problem may be with the board (it's weird because ampy is from adafruit too), as I don't have one to debug it, can you try ampy in the board?

The are the steps to install it and test it:

  • Install it with pip install adafruit-ampy
  • List the file in your device with ampy -p yourport ls

Let me know if that command work with your board

gepd commented

The problem was there; if the plugin detect only one device, it will automatically select it and open the console if you have more than one devices it will make you select a port, but if you already have selected one and it's available it will select that port. To choose a new one, you should use the option UPIOT: Select Serial Port and then open the console.

There was a bug when multiples devices were connected. I've already fixed and you should get the update the next time you use ST, I still don't add a warning to restart Sublime after update the plugin, but you should do it to note the new changes.

I'm GMT-3 Santiago, Chile

Let me know if the problem is fixed or you find a new one, I'll happy to help you

gepd commented

I'll move your las question to a new issue to make this more organized. see #2