I am trying to encrypt esp32 by following the steps in
https://mongoose-os.com/docs/mongoose-os/userguide/security.md
When I do
mos -X esp32-gen-key flash_encryption_key fe.key --esp32-enable-flash-encryption --dry-run=false
Iam getting an error
Using port COM4
Opening COM4 @ 115200…
Connecting to ESP32 ROM, attempt 1 of 10…
Connecting to ESP32 ROM, attempt 2 of 10…
Connected, chip: ESP32D0WDQ6 R1
Device MAC address: b4:e6:2d:b5:b3:f1
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x18 pc=0xa25c1d]
goroutine 1 [running, locked to thread]:
github.com/mongoose-os/mos/mos/flash/esp32.(*Fuse).IsWritable(0x0, 0x1467e220)
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/efuses.go:237 +0x1d
github.com/mongoose-os/mos/mos/flash/esp32.(*Fuse).SetValue(0x0, 0x1467e230, 0x1467e230, 0x12)
/go/src/github.com/mongoose-os/mos/mos/flash/esp32/efuses.go:302 +0x2f
main.esp32GenKey(0xefe4c0, 0x14442130, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/mongoose-os/mos/mos/esp32_gen_key.go:122 +0x641
main.run(0x14678100, 0xefe4c0, 0x14442130, 0x0, 0x0, 0x0, 0x13fa033)
/go/src/github.com/mongoose-os/mos/mos/main.go:195 +0x78
main.main()
/go/src/github.com/mongoose-os/mos/mos/main.go:297 +0x50b
I have tried for 2 esp32 with the same result.