trezor-firmware
trezor-firmware copied to clipboard
Find out how to replicate Hard Fault on emulator
trafficstars
It would save a lot of time and would allow us to catch this as a part of CI
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.
We don't really expect to hit this again. Let's reopen if this becomes relevant.