Load Arduino Sketch to a custom board using ESP32 (8MB SPI Flash)

huynh213
Posts: 5
Joined: Tue Dec 18, 2018 4:45 pm

Load Arduino Sketch to a custom board using ESP32 (8MB SPI Flash)

Postby huynh213 » Tue Dec 18, 2018 8:09 pm

Hi there,

Goal: To load my sketch (1,508,722 bytes) to a custom board using ESP32-WROM-32D (8MB) module

I recently upgrade my design from using the ESP32-WROM-32D (4MB) module to the ESP32-WROM-32D (8MB) module since my new sketch, which includes BLE, OTA, and Wifi libraries, is too big.

In the past, I just set the Arduino IDE settings as below, and it works just fine. At the point, my sketch is less than 1MB
Board: Nano (I used my custom board, but this option seemed to work fine)
Upload Speed: 115200
Flash Frequency: 80Mhz

Now, I've been adding some new features into the sketch to carry both BLE and Wifi feature for OTA update, and the sketch takes up to 1,508722 bytes. I know the Nano board under boards.txt is only set at maximum_size=1310720, and obviously, I keep getting this error when loading the new sketch:

Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board Nano32.


I am not entirely sure how to correct the issue without messing up things around including the Partition set-up. Does anyone have any recommendation?

Thanks

ESP_Sprite
Posts: 9051
Joined: Thu Nov 26, 2015 4:08 am

Re: Load Arduino Sketch to a custom board using ESP32 (8MB SPI Flash)

Postby ESP_Sprite » Wed Dec 19, 2018 2:36 am

Moving this to the Arduino subforum. You probably will need to modify the partitions (just make them larger as you have 8MiB) to fix this.

Who is online

Users browsing this forum: No registered users and 126 guests