Page 1 of 1

How to change SPI Flash size in ESP32 in eclipse?

Posted: Thu Jul 23, 2020 12:41 pm
by lalitahuja33
  1. In my eclipse console [b]Auto-detected Flash size: 4MB[/b] is showing but in the terminal [b]I (55) boot: SPI Flash Size : 2MB [/b]which is giving error because the partition table requires 4MB.
  2.  
  3. And strangely this was not the problem a week ago, everything was working fine and I checked my terminal logs from a week ago (which I saved in a separate text file because of some other error) in that[b] I (54) boot: SPI Flash Size : 4MB[/b] is written. So this changed automatically I guess because I didn't change anything in the menuconfig. I tried to find solution on the internet but couldn't find anything. Any suggestions on what should I do?

Re: How to change SPI Flash size in ESP32 in eclipse?

Posted: Sat Nov 28, 2020 2:12 am
by ndjurov
Hi lalitahuja33,

Did you find any solution for your problem. I just got the identical one.
Thanks.

Re: How to change SPI Flash size in ESP32 in eclipse?

Posted: Thu Dec 03, 2020 7:38 pm
by Scott.Bonomi
I believe the solution is to use menuconfig and adjust the serial flasher config page. You have an option there to set flash size and to detect size when flashing. Saving the sdkconfig file is important.

Re: How to change SPI Flash size in ESP32 in eclipse?

Posted: Sat Dec 05, 2020 3:11 am
by celticzy
maybe you can change the sdkconfig file manually(CONFIG_ESPTOOLPY_FLASHSIZE)

Re: How to change SPI Flash size in ESP32 in eclipse?

Posted: Fri Dec 11, 2020 3:54 am
by ndjurov
Thanks a lot,

I fixed it by changing to “Custom partition table CSV” in menuconfig and adding a csv file into the main project folder.
I followed these instruction:
https://docs.espressif.com/projects/esp ... ables.html