Page 1 of 1

Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Posted: Tue Mar 08, 2022 7:58 am
by brahmajit
I was testing out secureboot on a dev board, then by mistake I uploaded another app onto the device (I forgot secure boot was enabled, reflashable option). Not I can upload apps onto my device but get

Code: Select all

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:7576
load:0x40078000,len:19720
load:0x40080400,len:3820
0x40080400: _init at ??:?

secure boot check fail
ets_main.c 371 
ets Jun  8 2016 00:22:57
Any possibility to unbrick my device or do I consider this board gone :roll:

Also I would be nice if there was a way to test secureboot without writing to the ABS_DONE_0 fuse or if ABS_DONE_0 was rewritable like the FLASH_CRYPT_CNT fuse.

Related issue: https://github.com/espressif/esptool/issues/699

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Posted: Tue Mar 08, 2022 3:41 pm
by WiFive
If you enabled reflashable you should have the keys from when you flashed the other app or did you delete them?

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Posted: Tue Mar 08, 2022 4:25 pm
by brahmajit
I've the keys

Re: Can I un-brick my dev board after unknowingly uploading alternate app when secure boot was enabled

Posted: Tue Mar 08, 2022 5:39 pm
by WiFive
Well then you can sign and flash new apps and bootloaders.