Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spi_flash: Detected size(128k) smaller than the size in the binary image header(4096k). Probe failed. #18

Open
netanbi opened this issue Feb 21, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@netanbi
Copy link

netanbi commented Feb 21, 2024

Hi,
I program the XPLR module from the Arduino IDE I received this message
do you know how to fix that?

17:00:14.256 ->
17:00:14.256 -> rst:0xc (SW_CPU_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
17:00:14.288 -> configsip: 0, SPIWP:0xee
17:00:14.288 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
17:00:14.288 -> mode:DIO, clock div:1
17:00:14.288 -> load:0x3fff0030,len:1184
17:00:14.288 -> load:0x40078000,len:13260
17:00:14.288 -> load:0x40080400,len:3028
17:00:14.288 -> entry 0x400805e4
17:00:14.726 -> E (452) spi_flash: Detected size(128k) smaller than the size in the binary image header(4096k). Probe failed.
17:00:14.726 ->
17:00:14.726 -> assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)
17:00:14.726 ->
17:00:14.726 ->
17:00:14.726 -> Backtrace: 0x40083b7d:0x3ffe3ab0 0x4008df95:0x3ffe3ad0 0x400936ed:0x3ffe3af0 0x4011496a:0x3ffe3c20 0x40083291:0x3ffe3c50 0x40079306:0x3ffe3c90 |<-CORRUPTED
17:00:14.726 ->
17:00:14.726 ->

@mazgch
Copy link
Owner

mazgch commented Feb 21, 2024

Make sure you select the tight target as indicated on lines 21 in software.ino, also partition must be properly selected.

Try to follow the build instructions at the bottom of software/readme.md

@netanbi
Copy link
Author

netanbi commented Feb 22, 2024

Hi,
I follow your response, i still received resets from the nina module
this is my configuration,

configuration

image

rst:0x3 (SW_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1256
load:0x40078000,len:13832
load:0x40080400,len:4
load:0x40080404,len:3048
entry 0x40080590
ets Jul 29 2019 12:21:46

rst:0x3 (SW_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1256

this is the flusing output:
Sketch uses 1415217 bytes (71%) of program storage space. Maximum is 1966080 bytes.
Global variables use 50364 bytes (15%) of dynamic memory, leaving 277316 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\NetanelB\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM14" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\NetanelB\AppData\Local\Temp\arduino\sketches\42A5A684C703AC7993F48E2DF576D34B/software.ino.bootloader.bin" 0x8000 "C:\Users\NetanelB\AppData\Local\Temp\arduino\sketches\42A5A684C703AC7993F48E2DF576D34B/software.ino.partitions.bin" 0xe000 "C:\Users\NetanelB\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.0-alpha3/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\NetanelB\AppData\Local\Temp\arduino\sketches\42A5A684C703AC7993F48E2DF576D34B/software.ino.bin"
esptool.py v4.6
Serial port COM14
Connecting....
Chip is ESP32-D0WD-V3 (revision v3.0)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e8:31:cd:da:98:ec
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x0016bfff...
Compressed 18240 bytes to 12688...
Writing at 0x00001000... (100 %)
Wrote 18240 bytes (12688 compressed) at 0x00001000 in 0.3 seconds (effective 428.1 kbit/s)...
Hash of data verified.
Compressed 3072 bytes to 146...
Writing at 0x00008000... (100 %)
Wrote 3072 bytes (146 compressed) at 0x00008000 in 0.0 seconds (effective 585.1 kbit/s)...
Hash of data verified.
Compressed 8192 bytes to 47...
Writing at 0x0000e000... (100 %)
Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 866.4 kbit/s)...
Hash of data verified.
Compressed 1421744 bytes to 911452...
Writing at 0x00010000... (1 %)
Writing at 0x0001a06b... (3 %)
Writing at 0x000219ba... (5 %)
Writing at 0x000269cd... (7 %)
Writing at 0x0002be05... (8 %)
Writing at 0x00034754... (10 %)
Writing at 0x0003fd9d... (12 %)
Writing at 0x0004491a... (14 %)
Writing at 0x0004b89a... (16 %)
Writing at 0x00053f0c... (17 %)
Writing at 0x00066b26... (19 %)
Writing at 0x0006ed63... (21 %)
Writing at 0x00074b3a... (23 %)
Writing at 0x0007aae7... (25 %)
Writing at 0x00080a11... (26 %)
Writing at 0x00085f35... (28 %)
Writing at 0x0008c3a0... (30 %)
Writing at 0x00093353... (32 %)
Writing at 0x000996ab... (33 %)
Writing at 0x0009f86f... (35 %)
Writing at 0x000a5b5a... (37 %)
Writing at 0x000ab76b... (39 %)
Writing at 0x000b0ff9... (41 %)
Writing at 0x000b6c9c... (42 %)
Writing at 0x000bc3c0... (44 %)
Writing at 0x000c13df... (46 %)
Writing at 0x000c66c4... (48 %)
Writing at 0x000cba32... (50 %)
Writing at 0x000d0d55... (51 %)
Writing at 0x000d5fa8... (53 %)
Writing at 0x000dafaf... (55 %)
Writing at 0x000e02fa... (57 %)
Writing at 0x000e565d... (58 %)
Writing at 0x000ea61f... (60 %)
Writing at 0x000ef6d3... (62 %)
Writing at 0x000f47ce... (64 %)
Writing at 0x000fa1fe... (66 %)
Writing at 0x000ff9c5... (67 %)
Writing at 0x001050e4... (69 %)
Writing at 0x0010a3fe... (71 %)
Writing at 0x0010f7b1... (73 %)
Writing at 0x00114b13... (75 %)
Writing at 0x0011a029... (76 %)
Writing at 0x0011f30a... (78 %)
Writing at 0x001249e0... (80 %)
Writing at 0x0012a172... (82 %)
Writing at 0x0012ff1b... (83 %)
Writing at 0x001358ab... (85 %)
Writing at 0x0013b036... (87 %)
Writing at 0x0014421a... (89 %)
Writing at 0x0014acd4... (91 %)
Writing at 0x00152361... (92 %)
Writing at 0x001574df... (94 %)
Writing at 0x0015cd78... (96 %)
Writing at 0x001621d0... (98 %)
Writing at 0x00167778... (100 %)
Wrote 1421744 bytes (911452 compressed) at 0x00010000 in 15.0 seconds (effective 757.4 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

@mazgch
Copy link
Owner

mazgch commented Feb 22, 2024

I think the module on the board is the -10B version with bigger flash. But not sure if this will improve as you used a small partition.

In case you have the u-blox version (green board) have you changed the HW.h file?

I don't see any resets in your report.

Maybe try to enable core debug.

@netanbi
Copy link
Author

netanbi commented Feb 22, 2024

I have the black xplr module, like in documents,
image

I configure it like in :
// After that select Board u-blox NINA-W10 series and configure the target CPU: 240MHz, Flash: 80MHz, 4MB, Minimal SPIFFS

i did not touch anything in HW.h

do I need to change something with the black module?
is the partition that I selected correct?
this is the serial monitor output :
see the first row
rst:0x3 (SW_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1256
load:0x40078000,len:13816
load:0x40080400,len:4
load:0x40080404,len:3048
entry 0x40080590
ets Jul 29 2019 12:21:46

@netanbi
Copy link
Author

netanbi commented Feb 22, 2024

can you please what is you setup that work ? esp32 board library version ? configuration ?

@gabrielyoung92
Copy link

I've had this same problem, it is a problem with the ESP32 board manager. If you install V2.0.10 or later this will occur nor matter the sketch - "Blink" will do the same issue! You need to downgrade to 2.0.9 or lower
2024-04-29_135403

@mazgch
Copy link
Owner

mazgch commented Apr 29, 2024

Related to: espressif/esp-idf#12222

@mazgch
Copy link
Owner

mazgch commented May 29, 2024

arduino_esp32 v3.0.0 (https://github.com/espressif/arduino-esp32/releases/tag/3.0.0) with esp core 5.1 seems to solve this issue. several libraries needed are not yet compatible

@mazgch mazgch added the bug Something isn't working label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants