1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-17 20:08:12 +00:00

fix(core): fix OTP write access

This commit is contained in:
tychovrahe 2024-11-04 16:12:34 +01:00 committed by TychoVrahe
parent dbe7a393a8
commit 33fc7fb2e6
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
Fixed writing data (variant, batch) to OTP

View File

@ -366,7 +366,7 @@ mpu_mode_t mpu_reconfig(mpu_mode_t mode) {
break;
#endif
case MPU_MODE_OTP:
SET_REGION( 6, FLASH_OTP_BASE, OTP_AND_ID_SIZE, FLASH_DATA, NO, NO );
SET_REGION( 6, FLASH_OTP_BASE, OTP_AND_ID_SIZE, FLASH_DATA, YES, NO );
break;
case MPU_MODE_SECRET:
SET_REGION( 6, SECRET_START, SECRET_MAXSIZE, FLASH_DATA, YES, NO );