Load Arduino Sketch to a custom board using ESP32 (8MB SPI Flash)
Posted: 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
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