- Muchas notas - Fran Acién

20231219 - Errors while flash in ESP32S3WROOM N4 R8 becuase of flash size

In platform io is giving me some problems. This is my conf in arduino that works:

f71ec246c9a9afba46d9ddbe95599e8d.png

And then the configuration in platform io is like:

{
  "build": {
    "arduino":{
      "ldscript": "esp32s3_out.ld",
      "memory_type": "qio_opi"
    },
    "core": "esp32",
    "extra_flags": [
      "-DBOARD_HAS_PSRAM",
      "-DARDUINO_ESP32_S3_BOX",
      "-DARDUINO_USB_MODE=1",
      "-DARDUINO_USB_CDC_ON_BOOT=1"
    ],
    "f_cpu": "240000000L",
    "f_flash": "80000000L",
    "flash_mode": "qio",
    "hwids": [
      [
        "0X303A",
        "0x1001"
      ]
    ],
    "mcu": "esp32s3",
    "variant": "esp32s3box"
  },
  "connectivity": [
    "wifi",
    "bluetooth"
  ],
  "debug": {
    "openocd_target": "esp32s3.cfg"
  },
  "frameworks": [
    "arduino",
    "espidf"
  ],
  "name": "Espressif ESP32-S3-Box",
  "upload": {
    "flash_size": "4MB",
    "maximum_ram_size": 327680,
    "maximum_size": 4194304,
    "require_upload_port": true,
    "speed": 921600
  },
  "url": "https://www.mouser.dk/ProductDetail/Espressif-Systems/ESP32-S3-WROOM-1-N4R8?qs=Li%252BoUPsLEnsFpZnU9mcr%2FQ%3D%3D",
  "vendor": "Espressif"
}

Where you need to put it in ./boards/esp32s3wroom1n4r8.json. And then the next in the platform.ini:

[env:esp32s3wroom1n4r8]
platform = espressif32
board = esp32s3wroom1n4r8
framework = arduino
monitor_speed = 115200