MicroPython on ESP32 with SPIRAM support

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
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 10, 2017 8:05 pm

@loboris
Regarding network.mqtt -- not a big deal but in my tests the connected_cb when set in mqtts.config does not seem to actually be called when a connection is made.

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 » Wed Sep 13, 2017 1:04 am

Dear All,

Is someone was able to transfer large file to /flash ?

If "yes", how did you do ?

On my side i tried with the ftpserver but it crashed even with small files and it corrupt the flash (i like the ftp server which works fine with LOPY and LO1).
I also tried with pye by opening a new file and doing a copy-paste, but it also crashed.
I did not try with ymodem.

Best regards.

Patrick

[EDIT] ymodem seems to works

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

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

Post by loboris » Wed Sep 13, 2017 7:52 am

patrick.pollet wrote:Is someone was able to transfer large file to /flash ?
New update with FTP module implemented in C and running in background will be pushed later totay. Tested with large files (up to 1MB with flash, >10MB with sdcard).

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

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

Post by loboris » Wed Sep 13, 2017 2:33 pm

:!: Update
Some modules added and updated, many bugfixes and improvements.

Basic documentation added, it will soon be updated to include more detailed documentation for all added/changed modules and features specific to this port.

New implementation of the FTP server is added, it runs in separate ESP32 task, like Telnet server, check the basic documentation for more info.

Added freq argument to I2C initialization for compatibility with other MicroPython implementations.

Some examples can be found in modules_examples directory.

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 » Wed Sep 13, 2017 4:22 pm

Dear Loboris,

once again thanks for this awesome work and for your fast answers.

I just pulled the new release, compile and flash an esp32-psram.

The ftp server is present and i can connect to it (with filezilla), i can see the content of "/", but if i try to open "flash" (CWD flash) i have an error 550, and if i try to transfer a file directly in / i also have a 550 error.

Did i miss something to do before compiling ?

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 » Wed Sep 13, 2017 4:24 pm

If that helps,

network.ftp.status()

return :

(7, 0, 'Connected', 'Data: Disconnected')

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

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

Post by loboris » Wed Sep 13, 2017 7:51 pm

@patrick.pollet
There are some changes in the default configuration needed for ftp server to work which were not commited.
Sorry about that and thank you for reporting.
The repository is updated now, please pull the changes.
I would also recommend to delete your old sdkconfig, sdkconfig.old and build directory.
Run BUILD.sh menuconfig, build and try again. It should work now. If not, please report again.

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

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

Post by loboris » Thu Sep 14, 2017 1:14 pm

:!: Update
  • Some bugs in FTP mudule are fixed.
  • New organization of toolchain and esp-idf directories
  • BUILD.sh now checks for toolchain & esp-idf version
  • Building on MacOS is now fully supported, all needed toolchains are included.
    BUILD.sh detects the OS and unpacks the right toolchains for it.
    Tested on MacOS Sierra.

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 » Thu Sep 14, 2017 2:22 pm

@loboris:

ftp sever works fine now, thanks.

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

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

Post by slzatz » Sat Sep 16, 2017 7:14 am

Is there any documentation available for the display module?

Post Reply