You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The system reboots, system_get_userbin_addr() tells me that I booted from 0x101000, and system_upgrade_userbin_check() tells me I am on the OTA 2 slot. BUT it is really running the OTA 1 slot from 0x1000 :
If I start flashing @0x1000 (like if I want to update the OTA 1 slot now that I'm booting OTA 2), the system crashes (software wdt timeout), as if I was overwriting the current OTA slot
when I try slightly different firmwares, I get the output from the firmware that was originally flashed using esptool on slot OTA1, not the output I should get after custom-flashing the OTA 2 slot.
This is the output I get after doing the system_upgrade_reboot():
reboot to use2
state: 5 -> 0 (0)
rm 0
del if0
bcn 0
del if1
usl
WiFi station: disconnected from *** (48:a9:***), reason=8
--- (gibberish -- I set my baudrate to 78400 but I still can't get this part)
rf cal sector: 4091
freq trace enable 0
rf[112] : 00
Would anyone have a clue on what I'm doing wrong ? Thanks.
NB:
I tried to use the system_upgrade() calls but it failed to boot anytime I flashed something
SPI_FLASH_SIZE_MAP is set to 9 (for the 16MB flash)
the partition table I register in user_preinit seems ok (SYSTEM_PARTITION_OTA_2 is set @ 0x101000)
I'm using the latest 3.0.6-dev non-OS SDK
If I read back @ 0x101000 with esptool, it's identical to my user2.bin
Resetting the system parameters by erasing the flash @ 0xffd000 / length 0x3000 stills boots the original user1.bin, but system_get_userbin_addr() and system_upgrade_userbin_check() now show the OTA 1 slot values.
The text was updated successfully, but these errors were encountered:
I am using a 128Mb / 16MB SPI flash, and cannot make the bootloader to boot to the second OTA partition.
The first boot after flashing the bootloader (v1.7) @ 0x0000, user1.bin @ 0x1000 and a blank system parameters @ 0xffd000 gives me this output:
Afterwards, I have a custom code which flashes user2.bin @ 0x101000, and boils down to:
The system reboots,
system_get_userbin_addr()
tells me that I booted from 0x101000, andsystem_upgrade_userbin_check()
tells me I am on the OTA 2 slot. BUT it is really running the OTA 1 slot from 0x1000 :This is the output I get after doing the
system_upgrade_reboot()
:Would anyone have a clue on what I'm doing wrong ? Thanks.
NB:
system_upgrade()
calls but it failed to boot anytime I flashed somethingSYSTEM_PARTITION_OTA_2
is set @ 0x101000)system_get_userbin_addr()
andsystem_upgrade_userbin_check()
now show the OTA 1 slot values.The text was updated successfully, but these errors were encountered: