ReservedField/evic-sdk

APROM doesn't boot by default

Closed this issue · 1 comments

After flashing, the device is reset and the APROM boots correctly. If you power down the device (by removing both battery and USB) and then power it on again it is booted to LDROM, unless you keep the left key pushed.
From my recent LDROM dump I see that it's indeed because of the bootflag located at dataflash[13] (I'm referring to the dataflash exposed over USB - real dataflash doesn't have the first 4 checksum bytes). The values are as follows:
0 - Default to APROM boot
1 - Default to LDROM boot
The updater sets it to 1 to get into LDROM after the reset. The APROM is in charge of setting it back to 0. I will add this in the next commit.

Fixed in 9424773.