mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-27 02:16:51 +00:00
bootloader: Calculate SHA256 hash of image on every boot
Makes app image booting more reliable (256-bit rather than 8-bit verification.) Some measurements, time to boot a 655KB app.bin file and run to app_main() execution. (All for rev 1 silicon, ie no 340ms spurious WDT delay.) 80MHz QIO mode: before = 300ms after = 140ms 40MHz DIO mode: before = 712ms after = 577ms 40MHz DIO mode, secure boot enabled before = 1380ms after = 934ms (Secure boot involves two ECC signature verifications (partition table, app) that take approx 300ms each with 80MHz CPU.)
This commit is contained in:

committed by
Angus Gratton

parent
caaa29c676
commit
17adb40ca8
@@ -4261,7 +4261,9 @@
|
||||
/* Flash MMU table for APP CPU */
|
||||
#define DPORT_APP_FLASH_MMU_TABLE ((volatile uint32_t*) 0x3FF12000)
|
||||
|
||||
#define DPORT_FLASH_MMU_TABLE_SIZE 0x100
|
||||
|
||||
#define DPORT_FLASH_MMU_TABLE_INVALID_VAL 0x100
|
||||
|
||||
#endif /*_SOC_DPORT_REG_H_ */
|
||||
|
||||
|
Reference in New Issue
Block a user