Page 1 of 1

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

Posted: Tue Dec 18, 2018 8:09 pm
by huynh213
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

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

Posted: Wed Dec 19, 2018 2:36 am
by ESP_Sprite
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.