Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

I got some errors when flashing my fw.zip to ESP32!!!

moscodemoscode Seoul
edited March 13 in Mongoose OS

I got some errors when flashing my fw.zip to ESP32, the error log are the followings:

$ ../mos flash
Loaded mongoose-os-app-dht11-mic-uSpeech/esp32 version 1.0 (20190313-041556)
Using port COM10
Opening COM10 @ 115200...
Connecting to ESP32 ROM, attempt 1 of 10...
Connecting to ESP32 ROM, attempt 2 of 10...
Connecting to ESP32 ROM, attempt 3 of 10...
  Connected, chip: ESP32D0WDQ6 R1
Running flasher @ 921600...
  Flasher is running
Flash size: 4194304, params: 0x022f (dio,32m,80m)
Flash encryption: disabled, scheme: None
Error: /go/src/cesanta.com/mos/flash/esp/flasher/flash.go:285: Images 0x10000 and 0x190000 overlap
/go/src/cesanta.com/mos/flash/esp/flasher/flash.go:147:
/go/src/cesanta.com/mos/flash.go:201:
/go/src/cesanta.com/mos/main.go:176: flash failed

I suspect the log "Error: /go/src/cesanta.com/mos/flash/esp/flasher/flash.go:285: Images 0x10000 and 0x190000 overlap" because I added some library to our mongoose os, ESP32. so I currently suspect the library size is bigger then before. Do I have to revise the partition size? and let me know how to do it?

please help me!

Comments

  • nliviunliviu Romania

    Your app image is >1.5MB.
    You can try to decrease the filesystem size and increase the root filesystem size:

    build_vars:
      MGOS_ROOT_FS_SIZE: 131072 # 128KB=0x20000, default is 256KB=0x40000
      APP_SLOT_SIZE: 0x1A0000   # 1536KB+128KB
    

    Partition table:

    [Mar 13 09:35:23.173] I (51) boot: Partition Table:
    [Mar 13 09:35:23.176] I (55) boot: ## Label            Usage          Type ST Offset   Length   Flags
    [Mar 13 09:35:23.185] I (63) boot:  0 nvs              WiFi data        01 02 00009000 00004000 00000000
    [Mar 13 09:35:23.193] I (71) boot:  1 otadata          OTA data         01 00 0000d000 00002000 00000000
    [Mar 13 09:35:23.201] I (79) boot:  2 app_0            OTA app          00 10 00010000 001a0000 00000000
    [Mar 13 09:35:23.210] I (87) boot:  3 fs_0             SPIFFS           01 82 001b0000 00020000 00000000
    [Mar 13 09:35:23.218] I (96) boot:  4 app_1            OTA app          00 11 001d0000 001a0000 00000000
    [Mar 13 09:35:23.226] I (104) boot:  5 fs_1             SPIFFS           01 82 00370000 00020000 00000000
    [Mar 13 09:35:23.235] I (112) boot: End of partition table
    

    Tested another configuration which works:

    build_vars:
      APP_SLOT_SIZE: 0x1B0000   # 1536KB+192KB
    

    Partition table:

    [Mar 13 09:42:38.280] I (50) boot: Partition Table:
    [Mar 13 09:42:38.283] I (54) boot: ## Label            Usage          Type ST Offset   Length   Flags
    [Mar 13 09:42:38.291] I (62) boot:  0 nvs              WiFi data        01 02 00009000 00004000 00000000
    [Mar 13 09:42:38.299] I (70) boot:  1 otadata          OTA data         01 00 0000d000 00002000 00000000
    [Mar 13 09:42:38.308] I (78) boot:  2 app_0            OTA app          00 10 00010000 001b0000 00000000
    [Mar 13 09:42:38.316] I (86) boot:  3 fs_0             SPIFFS           01 82 001c0000 00040000 00000000
    [Mar 13 09:42:38.324] I (95) boot:  4 app_1            OTA app          00 11 00200000 001b0000 00000000
    [Mar 13 09:42:38.333] I (103) boot:  5 fs_1             SPIFFS           01 82 003b0000 00040000 00000000
    [Mar 13 09:42:38.341] I (111) boot: End of partition table
    
  • That day, I did update the mos.exe to the latet version. Now, I downgraded the mos exe to the previous version and then I was able to see the error log and succeeded to flash it.

    Let me know what is the real problem....

  • nliviunliviu Romania

    The real problem is with your code.

  • I just updated mos.exe to the latest and I applied the size of above partion table of fw.img and then I succeeded to flash ESP32 board. thanks!

Sign In or Register to comment.