Step by Step Install

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Víðarr
Posts: 2
Joined: Sun Jul 29, 2018 11:55 pm

Step by Step Install

Post by Víðarr » Wed Aug 01, 2018 4:41 pm

Is there an official step-by-step tutorial to install MicroPython on the ESP32 somewhere? I have a Heltec TTGO LoRa and try several tutorials and getting problems. I follow instructions fine. I think some of the tutorials are not right. Some people skipping steps, others not identifying their correct board, some I know are just lying to to get youtube views.

There is no problem for me researching, but this has been hours everyday for almost a week.

Thank you,

Víðarr

fdufnews
Posts: 35
Joined: Mon Jul 25, 2016 11:31 am

Re: Step by Step Install

Post by fdufnews » Thu Aug 02, 2018 7:33 am

There are no doc for ESP32 port but instructions for ESP8266 can apply with minor modifications.

Providing that Python is already installed on your computer.
First step is installing esptool
pip install esptool

second step is downloading the firmware on MicroPython dowload page

Then you follow instructions on "Firmware for ESP32 boards" section of the download page
If it is the first time you program the ESP32 you shall erase the flash
esptool.py --chip esp32 erase_flash
Then you program the ESP32 with the firmware
esptool.py --chip esp32 --port /dev/ttyUSB1 write_flash -z 0x1000 esp32-20180802-v1.9.4-424-g0c161691b.bin
Change esp32-20180802-v1.9.4-424-g0c161691b.bin to the name of the firmware release you are using.

Up to now I always did it that way and never had problem.

Note: If you are using Windows maybe you need to install some driver to support USB to Serial hardware interface chip. I am using Linux so I can't be of any help on that part.

SpotlightKid
Posts: 425
Joined: Wed Apr 08, 2015 5:19 am

Re: Step by Step Install

Post by SpotlightKid » Thu Aug 02, 2018 11:39 pm

Víðarr wrote:
Wed Aug 01, 2018 4:41 pm
Is there an official step-by-step tutorial to install MicroPython on the ESP32 somewhere?
Is there something missing in the README.md in the ports/esp32 folder? If so, what exactly?

Víðarr
Posts: 2
Joined: Sun Jul 29, 2018 11:55 pm

Re: Step by Step Install

Post by Víðarr » Fri Aug 03, 2018 4:23 pm

[quote=SpotlightKid post_id=29099 time=1533253154 user_id=552]
[quote=Víðarr post_id=29051 time=1533141716 user_id=4187]
Is there an official step-by-step tutorial to install MicroPython on the ESP32 somewhere?
[/quote]

Is there something missing in the [url=https://github.com/micropython/micropyt ... /README.md]README.md[/url] in the [i]ports/esp32[/i] folder? If so, what exactly?
[/quote]

Too many problems doing this on Windows -- overly complicated. I just made a Linux virtual machine instead. Much better now.

Thank you also fdufnews. My problem I think was getting lost in the environment variables. Everything was installed but not "talking" properly. Hacking around in Windows to make it work like Linux makes no sense when I can just install Linux. I thought Windows would be more developed by now. Guess they are still way behind.

SpotlightKid
Posts: 425
Joined: Wed Apr 08, 2015 5:19 am

Re: Step by Step Install

Post by SpotlightKid » Fri Aug 03, 2018 5:42 pm

Did you try to use WSL as the README suggests, or did you try to install everything directly in Windows? If you used WSL and it didn't work, is there anything you think can be improved in the README to make it easier?

Post Reply