Bootloader V0.1 can't boot new app

Megico
Posts: 2
Joined: Thu Dec 14, 2017 4:10 pm

Bootloader V0.1 can't boot new app

Postby Megico » Thu Dec 14, 2017 5:12 pm

Hello,

I have a configuration with OTA update via WiFi connection. Until now used esp-idf v1.0, developed new apps and send the binary files to the far unit that flashes the ota_x (or factory) app partition. Works well.

A few days ago I updated the idf to version v3.0. After some minor changes successfully compiled the last app from V1.0 and send the file to the unit for OTA update. Flashing the partition and switching it on to boot succeedes but the app doesn't run. Using another partition (factory) also doesn't work.

>>> I (1814) cpu_start: Starting app cpu, entry point is 0x40080db8
>>> I (1) cpu_start: App cpu up.
>>> I (1840) heap_init: Initializing. RAM available for dynamic allocation:
>>> D (1856) heap_init: New heap initialised at 0x3ffae6e0
>>> :
>>> I (1983) cpu_start: Pro cpu start user code
>>> Guru Meditation Error: Core 0 panic'ed (IntegerDivideByZero)
output_2017-12-14_16-30-33.log
(3.61 KiB) Downloaded 551 times
Seems to be a bootloader problem. Serial/USB flashing the bootloader.bin generated by idf V3.0 works (even with old app images from V1.0).

Problem: I can't travel to all far units to flash a new bootloader!

Is there any chance to make the app image of V3.0 "bootloader v0.1 friendly" so it can be booted? Alternativly get the new bootloader into the far units via OTA?

Thank you and best regards!

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Bootloader V0.1 can't boot new app

Postby ESP_Angus » Thu Dec 14, 2017 11:38 pm

Hi Megico,

Thanks for reporting this. I have reproduced the issue here and I have a fix to make v3.0 apps compatible with the v1.0 bootloader.

Will let you know when the fix is available.

Angus

Megico
Posts: 2
Joined: Thu Dec 14, 2017 4:10 pm

Re: Bootloader V0.1 can't boot new app

Postby Megico » Tue Jan 30, 2018 8:20 am

Hello Angus,

is there any timeline to get the fix?

Megico.

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Bootloader V0.1 can't boot new app

Postby loboris » Tue Jan 30, 2018 2:44 pm

There is an option in menuconfig:
→ Component config → ESP32-specific → App compatible with bootloaders before IDF v2.1
Bootloaders before IDF v2.1 did less initialisation of the
system clock. This setting needs to be enabled to build an app
which can be booted by these older bootloaders.

If this setting is enabled, the app can be booted by any bootloader
from IDF v1.0 up to the current version.

If this setting is disabled, the app can only be booted by bootloaders
from IDF v2.1 or newer.

Enabling this setting adds approximately 1KB to the app's IRAM usage.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: Bootloader V0.1 can't boot new app

Postby WiFive » Tue Jan 30, 2018 2:59 pm


ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: Bootloader V0.1 can't boot new app

Postby ESP_Angus » Wed Jan 31, 2018 1:52 am

Hi Megico,

I'm very sorry, I forgot to update the post as I promised. Yes, this feature is available now as mentioned above.

This fix is also in the release/v3.0 branch and will be part of the v3.0 final release.


Angus

Who is online

Users browsing this forum: Bing [Bot] and 119 guests