trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

Find out how to replicate Hard Fault on emulator

Open grdddj opened this issue 3 years ago • 1 comments
trafficstars

It would save a lot of time and would allow us to catch this as a part of CI

grdddj avatar Jul 28 '22 11:07 grdddj

the HF indicates a Rust stack overflow. we should be able to make the debugging reliable with #2427 on a device, but for emulator some slightly different steps would be needed -- namely, limit the usable stack size on PC. same as with the emulator micropython memory saturation, we won't be able to get the exact same values as on hardware, but we can set a reasonable watermark limit.

matejcik avatar Aug 04 '22 12:08 matejcik

We don't really expect to hit this again. Let's reopen if this becomes relevant.

matejcik avatar Dec 13 '22 14:12 matejcik