Upycraft What Does It Mean to Hope to Connect Internet and Try Again
This posts shows how to wink MicroPython firmware to ESP32/ESP8266 boards using the uPyCraft IDE software. It works on Windows, Linux, and Mac Bone X.
Before continuing with this tutorial, brand sure you follow one of these guides to install uPyCraft IDE on your figurer:
- Windows PC – Install uPyCraft IDE
- Mac OS Ten – Install uPyCraft IDE
- Linux Ubuntu – Install uPyCraft IDE
With uPyCraft IDE installed in your reckoner, you can easily flash your ESP32 or ESP8266 boards with the MicroPython firmware. This post is divided in two parts, read Function 1 or Part 2 depending on your lath:
- Part 1 – ESP32
- Role 2 – ESP8266
Annotation: After installing MicroPython firmware on your ESP32 or ESP8266, you can go dorsum and use Arduino IDE again. You simply demand to upload code using Arduino IDE. Then, if y'all want to employ MicroPython again, you need to flash MicroPython firmware.
[Part one – ESP32] Downloading and Flashing the MicroPython Firmware on ESP32
To download the latest version of MicroPython firmware for the ESP32, go to the MicroPython Downloads page and scroll all the way down to the ESP32 department.
You should see a like web page (see figure below) with the latest link to download the ESP32 .bin file – for instance: esp32-20181007-v1.9.four-631-g338635ccc.bin.
Notation: if you're using a unlike board (like a PyBoard, WiPy, or other), go to MicroPython Downloads page and download the correct firmware for your lath.
Selecting Serial Port
Become toTools > Serial and select your ESP32 COM port (in our example it'south COM5).
Important: if you plug your ESP32 board to your computer, but you can't find the ESP32 Port available in your uPyCraft IDE, it might be one of these two bug: 1. USB drivers missing or 2. USB cable without information wires.
i. If you don't see your ESP'south COM port available, this often means you don't have the USB drivers installed. Have a closer look at the chip side by side to the voltage regulator on board and check its proper name.
The ESP32 DEVKIT V1 DOIT board uses theCP2102 chip.
Get to Google and search for your specific chip to notice the drivers and install them in your operating system.
You can download the CP2102 drivers on the Silicon Labs website.
Afterwards they are installed, restart the uPyCraft IDE and you should see the COM port in the Tools menu.
2. If you take the drivers installed, merely you lot tin't meet your device, double-check that you're using a USB cable with data wires.
USB cables from powerbanks often don't have data wires (they are charge just). And so, your estimator will never establish a series communication with your ESP32. Using a a proper USB cablevision should solve your problem.
Selecting the Board
Go to Tools > Lath. For this tutorial, we assume that you lot're using the ESP32, and so make sure you lot select the "esp32" selection:
Flashing/Uploading MicroPython Firmware
Finally, go to Tools > BurnFirmware menu to flash your ESP32 with MicroPython.
Select all these options to flash the ESP32 lath:
- board: esp32
- burn_addr: 0x1000
- erase_flash: yep
- com: COMX (in our instance information technology's COM5)
- Firmware: Select "Users" and choose the ESP32 .bin file downloaded earlier
Afterwards pressing the "Choose" button, navigate to your Downloads folder and select the ESP32 .bin file:
Having all the settings selected, hold-down the "BOOT/Wink" button in your ESP32 board:
While holding downward the "Boot/Flash", click the "ok" button in the burn firmware window:
When the "EraseFlash" procedure begins, you tin release the "BOOT/FLASH" button. After a few seconds, the firmware volition be flashed into your ESP32 lath.
Note: if the "EraseFlash" bar doesn't move and you meet an mistake message proverb "erase false.", it means that your ESP32 wasn't in flashing mode. You need to repeat all the steps described before and concur the "Kicking/FLASH" button again to ensure that your ESP32 goes into flashing mode.
[Function ii – ESP8266] Downloading and Flashing the MicroPython Firmware on ESP8266
To download the latest version of MicroPython firmware for the ESP8266, go to the MicroPython Downloads page and coil all the way downwardly to the ESP8266 section.
You should encounter a similar web page (see figure below) with the latest link to download the ESP8266 .bin file – for example: esp8266-20180511-v1.9.4.bin.
Note: if you lot're using a different board (like a PyBoard, WiPy, or other), go to MicroPython Downloads page and download the right firmware for your board.
Selecting Serial Port
Go toTools > Series and select your ESP8266 COM port (in our case it'due south COM5).
Important: if you plug your ESP32 board to your reckoner, only you can't find the ESP32 Port available in your uPyCraft IDE, it might be i of these two bug: 1. USB drivers missing or two. USB cable without information wires.
ane. If you lot don't run into your ESP'southward COM port available, this ofttimes ways yous don't have the USB drivers installed. Take a closer look at the scrap next to the voltage regulator on lath and check its name.
The ESP8266 ESP-12E NodeMCU board uses theCP2102 chip.
Go to Google and search for your specific chip to find the drivers and install them in your operating system.
Yous can download the CP2102 drivers on the Silicon Labs website.
Later they are installed, restart the uPyCraft IDE and yous should see the COM port in the Tools menu.
two. If you lot have the drivers installed, merely you can't see your device, double-check that you're using a USB cable with data wires.
USB cables from powerbanks oft don't take data wires (they are charge just). So, your figurer will never found a serial advice with your ESP8266. Using a a proper USB cable should solve your problem.
Selecting the Lath
Go to Tools > Board. For this tutorial, nosotros assume that yous're using the ESP8266, and then make certain you lot select the "esp8266" pick:
Flashing/Uploading MicroPython Firmware
Finally, go to Tools > BurnFirmware menu to flash your ESP32 with MicroPython.
Select all these options to wink the ESP8266 board:
- board: esp8266
- burn_addr: 0x0
- erase_flash: yes
- com: COMX (in our example it'south COM5)
- Firmware: Select "Users" and choose the ESP8266 .bin file downloaded earlier
After pressing the "Choose" button, navigate to your Downloads folder and select the ESP8266.bin file:
Having all the settings selected, agree-down the "BOOT/Flash" button in your ESP8266 lath:
While holding downwards the "Kick/FLASH", click the "ok" button in the burn firmware window:
When the "EraseFlash" procedure begins, you can release the "Boot/Wink" button. After a few seconds, the firmware volition be flashed into your ESP8266 board.
Note: if the "EraseFlash" bar doesn't move and you see an error bulletin saying "erase false.", it ways that your ESP8266 wasn't in flashing mode. You need to echo all the steps described before and hold the "BOOT/Wink" button again to ensure that your ESP8266 goes into flashing style.
Wrapping Up
We hope you lot've plant this tutorial useful. Your ESP32/ESP8266 should at present exist flashed with MicroPython firmware. To acquire more than nearly MicroPython read: Getting Started with MicroPython on ESP32 and ESP8266.
If you liked this post, y'all might like our next ones, then make sure you subscribe to the RNT blog and download our free electronics eBooks.
Source: https://randomnerdtutorials.com/flash-upload-micropython-firmware-esp32-esp8266/
Postar um comentário for "Upycraft What Does It Mean to Hope to Connect Internet and Try Again"