diff --git a/core/embed/prodtest/.changelog.d/4313.fixed b/core/embed/prodtest/.changelog.d/4313.fixed new file mode 100644 index 0000000000..ccd5f18839 --- /dev/null +++ b/core/embed/prodtest/.changelog.d/4313.fixed @@ -0,0 +1 @@ +Fixed writing data (variant, batch) to OTP diff --git a/core/embed/trezorhal/stm32u5/mpu.c b/core/embed/trezorhal/stm32u5/mpu.c index aac6e66a33..d6a1ddc25e 100644 --- a/core/embed/trezorhal/stm32u5/mpu.c +++ b/core/embed/trezorhal/stm32u5/mpu.c @@ -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 );