Skip to content
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

Upload to ESP32 failed #145

Open
dmp2tech opened this issue Mar 8, 2021 · 13 comments
Open

Upload to ESP32 failed #145

dmp2tech opened this issue Mar 8, 2021 · 13 comments

Comments

@dmp2tech
Copy link

dmp2tech commented Mar 8, 2021

Hello,
I have a problem uploading to my ESP32. When I try to upload with pycharm I have an error: ampy.pyboard.PyboardError: could not enter raw repl
So I tried to upload directly from the terminal without a virtual environment. And it works. So I logged into the virtual environment, updated ampy to version 1.1.1 and was able to upload it from the terminal. On the other hand, I cannot upload with pycharm because it wants to update version 1.0.5. How do I get the extension to accept version 1.1.1 of ampy. I'm on big macos on.

@Arcadia197
Copy link

Have you tried to change File -> Settings -> Languages&Frameworks -> MicroPython -> Device type to esp8266 in PyCharm?

As ampy is giving a pyboard error maybe you have forgotten to set this.

While esp32 is not directly supported it should work for most cases with the esp8266 settings (atleast it does for me)
Just watch out if you want to include folder structures - this did not work for me

@lensvol
Copy link
Collaborator

lensvol commented Apr 12, 2021

This can be related to the issue solved here: #142

You can try to increase hardcoded delay on the following line and see if it helps: https://github.com/vlasovskikh/intellij-micropython/blob/0322fb7c50bed3e196ee253fbb0f613344a56a48/scripts/microupload.py#L121

Path to microupload.py can be found in the Terminal window that appears when you try to upload files.

@kpostekk
Copy link

You can try to increase hardcoded delay on the following line and see if it helps

Solution by @lensvol has worked for me. I have changed value from 0.5 to 2.5 and it works.

Zrzut ekranu 2021-05-26 o 21 48 18Zrzut ekranu 2021-05-26 o 21 47 38

You can open file by following command
code "~/Library/Application Support/JetBrains/PyCharm2021.1/plugins/intellij-micropython/scripts/microupload.py"

@jwoolaway
Copy link

Running:
OSx 11.5.2
PyCharm 2021.2 V 11.0.11+9-b1504.13 x86_64
Plug-in MicroPython 1.2
The described edit to:
"/Users/<USER_NAME>/Library/Application Support/JetBrains/PyCharm2021.2/plugins/intellij-micropython/scripts/microupload.py"
Fixed it.

@jadn123
Copy link

jadn123 commented Jan 9, 2022

Fix works for me as well. Can this be considered being fixed in a PR?

@edwinm
Copy link

edwinm commented Aug 21, 2022

It's August 21st 2022 and I still had to use this hack to get my file uploading to work.

I'm using a five days old build.

PyCharm 2022.2.1 (Community Edition)
Build #PC-222.3739.56, built on August 16, 2022

Dear JetBrains, please fix this.

@Elizaveta239
Copy link
Contributor

Hi! We'll try to include it in the next update.

@DansDesigns
Copy link

Running: OSx 11.5.2 PyCharm 2021.2 V 11.0.11+9-b1504.13 x86_64 Plug-in MicroPython 1.2 The described edit to: "/Users/<USER_NAME>/Library/Application Support/JetBrains/PyCharm2021.2/plugins/intellij-micropython/scripts/microupload.py" Fixed it.

I just tried editing this file on Windows (Program Files\JetBrains\PyCharm.....\ etc) but there is no plugins\intellij-micropython\ folder.. I have downloaded the MicroPython Plugin from the Plugin Store, am I missing something?!

@kpostekk
Copy link

kpostekk commented Nov 28, 2022 via email

@DansDesigns
Copy link

DansDesigns commented Nov 28, 2022

Have you checked app data folder?

ah Thank you i didnt think of checking there...
In Users\AppData\JetBrains\ ...\plugins\ there is only intellij-micropython.zip in the plugins folder, should I extract it to the Program Files\JetBrains\ ...\plugins\ folder?

@LouisCAD
Copy link

@Elizaveta239 When will the next update be?

@jaylinwylie
Copy link

Are we still to do this hack? Kind of baffling that the ESP32 isnt already in the list.

@ygorgasparin
Copy link

Here works as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests