MicroPython on ESP32 with SPIRAM support

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
patrick.pollet
Posts: 16
Joined: Fri Apr 29, 2016 7:08 pm

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

Post by patrick.pollet » Sun Sep 03, 2017 11:49 am

@loboris :

Thanks a lot for such great work.

i just tried to clone the repository and did a first call to BUILD.sh :

[code]
patrickpollet@patrickpollet-VirtualBox:~/esp32psram/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD$ ./BUILD.sh menuconfig
unpacking 'esp-idf'
unpacking 'esp-idf_psram'
unpacking 'xtensa-esp32-elf'
unpacking 'xtensa-esp32-elf_psram'

Building MicroPython for ESP32 with esp-idf master branch

DEFCONFIG
/home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/conf: 1: /home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/conf: Syntax error: ")" unexpected
'make menuconfig' FAILED!


[/code]

But there was an error, i did a retry and got a different error :

[code]
patrickpollet@patrickpollet-VirtualBox:~/esp32psram/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD$ ./BUILD.sh menuconfig

Building MicroPython for ESP32 with esp-idf master branch

MENUCONFIG
/home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/mconf: 1: /home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/mconf: Syntax error: "(" unexpected
'make menuconfig' FAILED!

[/code]

I do not know what to do, any help will be really appreciate.

Best regards.

Patrick

patrick.pollet
Posts: 16
Joined: Fri Apr 29, 2016 7:08 pm

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

Post by patrick.pollet » Sun Sep 03, 2017 12:09 pm

@loboris :

Thanks a lot for such great work.

i just tried to clone the repository and did a first call to BUILD.sh :

____________________
patrickpollet@patrickpollet-VirtualBox:~/esp32psram/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD$ ./BUILD.sh menuconfig
unpacking 'esp-idf'
unpacking 'esp-idf_psram'
unpacking 'xtensa-esp32-elf'
unpacking 'xtensa-esp32-elf_psram'

Building MicroPython for ESP32 with esp-idf master branch

DEFCONFIG
/home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/conf: 1: /home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/conf: Syntax error: ")" unexpected
'make menuconfig' FAILED!
____________________



But there was an error, i did a retry and got a different error :

____________________
patrickpollet@patrickpollet-VirtualBox:~/esp32psram/MicroPython_ESP32_psRAM_LoBo/MicroPython_BUILD$ ./BUILD.sh menuconfig

Building MicroPython for ESP32 with esp-idf master branch

MENUCONFIG
/home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/mconf: 1: /home/patrickpollet/esp32psram/MicroPython_ESP32_psRAM_LoBo/esp-idf/tools/kconfig/mconf: Syntax error: "(" unexpected
'make menuconfig' FAILED!
_____________________


I do not know what to do, any help will be really appreciate.

Best regards.

Patrick

slzatz
Posts: 92
Joined: Mon Feb 09, 2015 1:09 am

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

Post by slzatz » Sun Sep 03, 2017 12:13 pm

@loboris: Thanks for all the work and the documentation -- looking forward to testing.

User avatar
c.man
Posts: 21
Joined: Thu Jul 06, 2017 9:12 pm

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

Post by c.man » Sun Sep 03, 2017 2:40 pm

Hi,
I writed last loboris firmware, but when I verify memory in use, I see:

Code: Select all

>>> micropython.mem_info()
stack: 736 out of 15360
GC: total: 92032, used: 6720, free: 85312
 No. of 1-blocks: 22, 2-blocks: 10, max blk sz: 366, max free sz: 5222
I don't use 4 MB of memory ....

Why ?
I have a ESP WROOM32 device...
I need to configure somethings (with ./BUILD.sh menuconfig) ?

loboris
Posts: 317
Joined: Fri Oct 02, 2015 6:19 pm

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

Post by loboris » Sun Sep 03, 2017 3:12 pm

c.man wrote:I don't use 4 MB of memory ....
Why ?
What exactly is a problem?
You are using ESP-WROOM-32 module which does not have psRAM.
You have 92032 bytes of MicroPython heap of which 6720 bytes are used. That is what you can expect on start.
Do you expect to see more?

User avatar
c.man
Posts: 21
Joined: Thu Jul 06, 2017 9:12 pm

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

Post by c.man » Sun Sep 03, 2017 4:31 pm

ok. thanks.
I wrong to buy esp32 version.
What version of ESP32 have psRAM ?


loboris
Posts: 317
Joined: Fri Oct 02, 2015 6:19 pm

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

Post by loboris » Sun Sep 03, 2017 8:28 pm

patrick.pollet wrote:...I do not know what to do, any help will be really appreciate...
It looks its the same issue reported here
Plase read it, maybe it will help.

Online
User avatar
pythoncoder
Posts: 3711
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

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

Post by pythoncoder » Mon Sep 04, 2017 7:00 am

loboris wrote:...
@pythoncoder
I hope this answers your question.
It certainly does. It sounds awesome - I look forward to trying it :D
Peter Hinch

patrick.pollet
Posts: 16
Joined: Fri Apr 29, 2016 7:08 pm

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

Post by patrick.pollet » Mon Sep 04, 2017 9:01 am

loboris wrote: It looks its the same issue reported here
Plase read it, maybe it will help.
Thanks.
I just restarted from scratch on a fresh installed Ubuntu 16 and it works fine.

Post Reply