Page 1 of 1

spi_flash size warning

Posted: Thu Jul 18, 2019 5:30 pm
by raldone01
When the chip boots I receive the following warning:

Code: Select all

W (287) spi_flash: Detected size(4096k) larger than the size in the binary image
 header(2048k). Using the size in the binary image header.
What does it mean?

Re: spi_flash size warning

Posted: Mon Jul 22, 2019 3:54 am
by Sprite
It means that your software setup assumes you have a 2MiB chip (as indicated under make menuconfig, serial flasher settings, iirc), but your actual board is lucky enough to have a 4MiB one. The warning is just that, a warning to show you your software won't be able to use the other 2MiB that exists on your board.

Re: spi_flash size warning

Posted: Mon Jul 22, 2019 7:23 pm
by Ritesh
When the chip boots I receive the following warning:

Code: Select all

W (287) spi_flash: Detected size(4096k) larger than the size in the binary image
 header(2048k). Using the size in the binary image header.
What does it mean?
Default flash size configuration is 2 MByte which you need to change as per your flash size of hardware which you are using like 4 MByte or 16 MByte.

So, Please check by updating it and let us know if still same issue.

Re: spi_flash size warning

Posted: Wed Jul 24, 2019 1:01 pm
by raldone01
I had already selected the correct option and flashed the app multiple times. Reflashing the bootloader fixed the issue.

Re: spi_flash size warning

Posted: Thu Jul 25, 2019 5:13 am
by Ritesh
I had already selected the correct option and flashed the app multiple times. Reflashing the bootloader fixed the issue.
Great. Thanks for update.

Let us know if any issue into future for same.

Re: spi_flash size warning

Posted: Wed Nov 27, 2024 11:10 pm
by acsoprana
Hello, I have the same problem, I have two devices, an esp32c6 with 8 mb of memory and the h2 with 4 mb, but in the terminal it informs that it will only use what is in the header of the binary image (2048k). Even setting in the ESP-IDF settings it only maintains the use of 2048k. How can I configure it to use the memory in its entirety?

Re: spi_flash size warning

Posted: Thu Nov 28, 2024 8:13 pm
by acsoprana
Hello again guys.. I found where to configure the
Flash Size ->menuconfig->Flash size, Select the value that the device has available...

Thanks

Re: spi_flash size warning

Posted: Tue Dec 10, 2024 11:01 am
by Ritesh
Hello again guys.. I found where to configure the
Flash Size ->menuconfig->Flash size, Select the value that the device has available...

Thanks
Hello,

So you issue has been resolved? or still looking for support for your queries?