ESP32-D0WD-V3 (revision 3): how to properly configure platformio.ini?

Big thanks.

I probably expressed myself incorrectly.

I just couldn’t find a board in the list yesterday that declared 16MB of memory. Where I did not look - only 4 came across everywhere. But today I figured out how to do it myself using JSON.

But there was a problem with RAM. Despite the fact that I declared 520 memory in JSON, after compilation, the project still sees only 320. Although when compiled, it appears that the board has 520

": {
    "arduino":{
      "ldscript": "esp32_out.ld"
    },
    "core": "esp32",
    "extra_flags": "-DARDUINO_ESP32_DEV",
    "f_cpu": "240000000L",
    "f_flash": "40000000L",
    "flash_mode": "dio",
    "mcu": "esp32",
    "variant": "esp32"
  },
  "connectivity": [
    "wifi",
    "bluetooth",
    "ethernet",
    "can"
  ],
  "debug": {
    "openocd_board": "esp32-wrover.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "Espressif ESP32-WROVER-IE 16MB (ESP32-D0WD-V3)",
  "upload": {
    "flash_size": "16MB",
    "maximum_ram_size": 532480,
    "maximum_size": 16777216,
    "require_upload_port": true,
    "speed": 460800
  },
  "url": "https://en.wikipedia.org/wiki/ESP32",
  "vendor": "Espressif"
}