loboris / MicroPython_ESP32_psRAM_LoBo

MicroPython for ESP32 with psRAM support
Other
831 stars 344 forks source link

MicroPython with SPIFFS on ESP32-D2WD (2MiB)? #301

Closed zrecore closed 5 years ago

zrecore commented 5 years ago

Espressif also makes the ESP32-D2WD with 2MiB of internal SPI Flash. Although I can get the official MicroPython binary to load, I can't get the file system working with the default config of 4MiB expected SPI Flash (obviously).

I'm not familiar with the partitioning. This is what I currently have in partitions.csv:

# -------------------------------------------------------
# -    Partition layout generated by BUILD.sh script    -
# -------------------------------------------------------
# Name,         Type, SubType, Offset,  Size,       Flags
# -------------------------------------------------------
nvs,            data, nvs,       0x9000,  0x6000,
phy_init,       data, phy,       0xf000,  0x1000,
MicroPython,    app,  factory,   0x10000, 1M,
internalfs,     data, spiffs,       ,        960K,

...Do I need to set any particular settings in ./BUILD.sh menuconfig? It flashes, but the REPL prompt never loads.

zrecore commented 5 years ago

Note, had to make a customized Micropython build from micropython/micropython repo wherein ports/esp32/modules/flashbdev.py was modified to not use a hard coded 0x200000 size, ports/esp32/modesp.c returned a lower flash user start address, and ports/esp32/partitions.csv was set up to fit the app and fs data partitions within the 2MiB flash size. Screenshot from 2019-08-07 03-15-20 Screenshot from 2019-08-07 03-15-33 Screenshot from 2019-08-07 03-16-09

...Maybe not relevant to this repo... so closing this ticket.