How to change SPI Flash size in ESP32 in eclipse?

lalitahuja33
Posts: 16
Joined: Wed Jul 22, 2020 1:03 pm

How to change SPI Flash size in ESP32 in eclipse?

Postby lalitahuja33 » Thu Jul 23, 2020 12:41 pm

  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?

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

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

Postby ndjurov » Sat Nov 28, 2020 2:12 am

Hi lalitahuja33,

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

Scott.Bonomi
Posts: 73
Joined: Mon Mar 09, 2020 7:36 pm

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

Postby Scott.Bonomi » Thu Dec 03, 2020 7:38 pm

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.

celticzy
Posts: 2
Joined: Sat Dec 05, 2020 2:50 am

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

Postby celticzy » Sat Dec 05, 2020 3:11 am

maybe you can change the sdkconfig file manually(CONFIG_ESPTOOLPY_FLASHSIZE)

ndjurov
Posts: 65
Joined: Wed Mar 25, 2020 11:34 pm

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

Postby ndjurov » Fri Dec 11, 2020 3:54 am

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

Who is online

Users browsing this forum: No registered users and 123 guests