Closed ghost closed 3 years ago
Had the same problem. Is your board being detected? Try to uninstall and install the plugin. Double-check dependencies are being installed without issues.
@MyDataIsReady I am using Linux, so no issues with drivers that I am aware of. I will try to uninstall the plugin and reinstall.
@AstroDrabb by the look of your error message it looks like you are trying to run micropython code with regular python. You must run it on a micropython enabled microcontroller. Make sure you have enabled micropython support for the project by doing Settings > Languages & Frameworks > MicroPython > Enable MicroPython Support
If you right click on the file you have created you will now have the option to Run 'Flash main.py'
. This will flash your script to your connected micropython device so it can run on there, not on your computer.
I agree with @jdjjm about the most likely source of this problem. Thanks @jdjjm for answering!
Closing this issue as answered.
Please reopen this issue to investigate, the plugin failed to identify the actual board esp8266(It doesn't show "Flash main.py", it only shows Run 'main', using the default pyhon3.8). As you have mentioned already on the wiki that this board isn't supported, if in that case you can ignore my request! I am on MacOS 10.14.6 with pycharm 203.5981.165 installed, current mircopython plugin installed.
I have the same problems. I'm using ESP8266 and ESP32. See also https://forum.micropython.org/viewtopic.php?f=15&t=10771 Does the plugin try to load the wrong board?
I was able to install the Micropython plugin into PyCharm 2020.2, however I can't get even the simplest of examples to work. Example code:
What step(s) am I missing to test and upload script to run?