Help Needed: Correct PlatformIO Configuration for Custom ESP32-S3 Board with ESP32-S3-WROOM-1-N4R2 (4MB Flash, 2MB PSRAM)

Do you have more details of this custom board?

This is my board’s details.

ESPRESSIF*

  • ESP32-S3-WROOM-1
  • CCAF22Y10170T3
  • FCC ID: 2AC7Z - ESPS3WROOM1
  • IC21098: ESPS3WROOM1
  • CMIIT ID: 2022DP2892
  • MCN4R2

I got solution Thank you

It would be great if you can share your solution.

What was the difference?

In the JSON file, I removed the default flash 8MB

1 Like

Ah, of course! I’m afraid I overlooked that. :man_facepalming:

The N4R2 is one of the few boards that has less than 8MB flash. Therefore the 4MB partition table must be used:

board_build.partitions = default.csv

Without editing the board manifest (json) the complete platformio.ini should be:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino

board_build.arduino.memory_type = qio_qspi
board_build.flash_mode = qio
board_build.psram_type = qio
board_upload.flash_size = 4MB
board_upload.maximum_size = 4194304
board_build.partitions = default.csv
board_build.extra_flags = 
  -DBOARD_HAS_PSRAM