question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Official ESP32 Support

See original GitHub issue

@vlasovskikh - Can the ESP32 be declared as officially supported now? There is now a huge ESP32 success sample space of at least 2 users 😃

I suggest that it be identified as a separate board/device type (ESP32) in the Frameworks menu as I suspect in the future there may be differences between the two that matter to the plugin (OTA/wireless support looks like it could be one of these areas from my early investigation).

In addition, I would like to suggest that the board/device type be passed as an optional parameter to the python scripts (possibly something like --devtype ESP8266 on the command line. We currently have ESP8266, Micro:bit and Pyboard). If not specified, it would default to None.

This would allow conditional execution of the couple of delay() statements in the scripts that are commented as being ESP8266 specific.

I also have a feeling that this may help in the area of Micro:bit support although I have not explored that yet. I plan on looking at the scripts in #40 today to see how/if they would fit into the existing scripting framework if you are not already doing so. I dug out my Micro:bit so I should be able to check things out pretty readily.

I would be happy to take care of the python side of the new option as part of the docopt update. It could be implemented initially with no ‘behaviour’ based on the option if you prefer. I am not comfortable enough with my weak, weak abilities to read kotlin to take care of the kotlin side of this so I would have to coordinate with you on the activity.

I know you are handling some of the board specifics in the kotlin code (i.e. defining vendor_id:port_id’s to scan in order to detect serial ports) but it may be worth considering pushing all of this down to the python layer and creating an abstract devboard class in python that is then used to create concrete classes for the various board types. The class interface would be optimised for plugin operations such as uploading a file to the device, removing files, accessing the REPL, etc.

Just some thoughts for consideration, I recognise that I am much more comfortable in python so I could be trying to use my hammer in places it isn’t wanted 😃 Please feel free to tell me to butt out on this one.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:18
  • Comments:23 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
tcinbiscommented, Oct 3, 2018

Would be great to see the ESP32 as a feature in the future.

3reactions
jamesle-0812commented, Nov 27, 2019

Hi everyone, I have a NodeMCU ESP-WROOM-32, shipped from China, and I wanna play around with MicroPython. So I’ve erased the flash and then flashed a firmware recommended on micropython.org for ESP32. From PyCharm, I’ve installed ampy and MicroPython plugins, set up to ESP8266 with a proper COM Port. I also run MicroPython REPL and then close the terminal before flash the demo code on https://blog.jetbrains.com/pycharm/2018/01/micropython-plugin-for-pycharm/ to my ESP32 for blinking LED. The funny thing is it can connect to COM port, upload files 100% but then immediately do a soft reboot and the LED doesn’t blink at all.

“C:\Users\James\PycharmProjects\ESP32\uPython 101\venv\Scripts\python.exe” C:\Users\James.PyCharmCE2018.3\config\plugins\intellij-micropython/scripts/microupload.py -C “C:/Users/James/PycharmProjects/ESP32/uPython 101” -v COM9 “C:/Users/James/PycharmProjects/ESP32/uPython 101/main.py” Connecting to COM9 Uploading files: 0% (0/1) C:\Users\James\PycharmProjects\ESP32\uPython 101\main.py -> main.py Uploading files: 100% (1/1) Soft reboot

Is there any suggestion? I much appreciate your time and support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESP32 Resources - Espressif Systems
ESP32 Resources: SDK & Demos, Tools, Sample Codes, Documentation and FAQ.
Read more >
Technical Inquiries - Espressif Systems
Please get in touch with Espressif's support team by submitting the online ... You're welcome to visitEspressif's Official Forumfor discussing technical ...
Read more >
ESP32 Wi-Fi & Bluetooth MCU I Espressif Systems
ESP32 is a feature-rich MCU with integrated Wi-Fi and Bluetooth connectivity for a wide-range of applications. ... Technical Support. Getting Started.
Read more >
Download Overview - Espressif Systems
Title Platform Version Release Date ESP SoftAP Provisioning for iOS IOS V2.1.0 2022.10.08 ESP BLE Provisioning for iOS IOS V2.1.0 2022.10.08 ESP SoftAP Provisioning for Android...
Read more >
Advanced Customer Support - Espressif Systems
Also, our engineers are constantly active on our official forums, giving answers to any questions you might have. Technical Documents. Open-Source Software. We ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found