MicroPython on ESP-WROVER with 4MB of psRAM

joicetm
Posts: 13
Joined: Mon Apr 10, 2017 12:47 pm

Re: MicroPython on ESP-WROVER with 4MB of psRAM

Postby joicetm » Fri Sep 29, 2017 8:03 am

thanks for all the good work :)

I was using idf 2.0 and now i have updated the idf to release 2.1
But none of the example codes are not working, ie.. i am able to compile the code and flash it to the board. but it shows some hex values on the terminal.
what am i missing?
current version of esptool is : esptool.py v2.1 - ESP8266 ROM Bootloader Utility

User avatar
loboris
Posts: 231
Joined: Wed Dec 21, 2016 7:40 pm

Re: MicroPython on ESP-WROVER with 4MB of psRAM

Postby loboris » Fri Sep 29, 2017 9:21 am

joicetm wrote:thanks for all the good work :)

I was using idf 2.0 and now i have updated the idf to release 2.1
But none of the example codes are not working, ie.. i am able to compile the code and flash it to the board. but it shows some hex values on the terminal.
what am i missing?
current version of esptool is : esptool.py v2.1 - ESP8266 ROM Bootloader Utility

This MicroPython implementation is based on the latest esp-idf master branch and xtensa toolchain.
The GitHub repository includes both esp-idf and xtensa toolchain packed in xz archives (in Tools directory).

As the first step after cloning the repository, you should run ./BUILD.sh menuconfig in MicroPython_BUILD directory. This will unpack the esp-idf and toolchain for your platform and create initial sdkconfig.

If, after flashing, you get "some hex values on the terminal", you have probably set the wrong value for XTAL frequency (→ Component config → ESP32-specific → Main XTAL frequency). Set it to the crystal which is used on your board. Most boards use 40MHz crystal, some use 26MHz crystal.

nissim@TelnT.com
Posts: 3
Joined: Fri Jun 02, 2017 10:19 am

Re: MicroPython on ESP-WROVER with 4MB of psRAM

Postby nissim@TelnT.com » Wed Oct 11, 2017 11:24 pm

In the MicroPython ESP32_LoBo_v2.0.4 it seems that main.py is not flashed to ESP32
only boot.py exist on esp32

(132) intr_alloc: Connected src 34 to int 3 (cpu 1)
Reset reason: Power on reset Wakeup: Power on wake
D (142) intr_alloc: Connected src 22 to int 4 (cpu 1)
OSError: [Errno 2] ENOENT
MicroPython ESP32_LoBo_v2.0.4 - 2017-10-08 on ESP32 board with ESP32
Type "help()" for more information.
>>>
Is that a bug ?
Dr. Nissim Zur
Consultant design house for Artificial Intelligence
Internet of Things ("IoT") wireless devices.

http://www.TelnT.com
nissim@TelnT.com

User avatar
loboris
Posts: 231
Joined: Wed Dec 21, 2016 7:40 pm

Re: MicroPython on ESP-WROVER with 4MB of psRAM

Postby loboris » Thu Oct 12, 2017 7:51 am

nissim@TelnT.com wrote:In the MicroPython ESP32_LoBo_v2.0.4 it seems that main.py is not flashed to ESP32
only boot.py exist on esp32
...
Is that a bug ?

It is not a bug.
It is up to the user to create main.py if it is needed.

The existence of the main.py could be checked on boot so that the OSError: [Errno 2] ENOENT is not printed. I'll look at it.

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests