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
Step by Step Install
Re: Step by Step Install
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.
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.
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Step by Step Install
[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.
[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.
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: Step by Step Install
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?