How to use 16MB esp32 and use all of its available flash

In mos.yml

build_vars:
  MGOS_ROOT_FS_SIZE: 524288 #  512kB = 0x80000
  APP_SLOT_SIZE: 2097152    # 2048kB = 0x200000
  # enable 16MB flash size
  ESP_IDF_SDKCONFIG_OPTS: >
    ${build_vars.ESP_IDF_SDKCONFIG_OPTS} 
      CONFIG_ESPTOOLPY_FLASHSIZE_4MB=
      CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
      CONFIG_ESPTOOLPY_FLASHSIZE=16MB
2 Likes