kolban wrote:
SDK 1.3.0 disasm (startup code):
l32r a2, pflashchip
l32i a2, a2, 0
l32i a14, a2, 0xC ; flashchip->sector_size
l32i a2, a2, 4 ; flashchip->chip_size
mov.n a3, a14
l32r a0, __udivsi3
callx0 a0
mov.n a3, a14 ; flashchip->sector_size
l32i.n a4, a1, 0x14 ; pvPortZalloc(256)+0x80
addi a2, a2, -5 ; end flash sectors - 5 !
movi a5, 128
call0 wifi_param_save_protect_with_check ; erase_sector(a2) !
System param 16KB+4KB !