mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-05 13:01:12 +00:00
fix(core): fix OTP write access
This commit is contained in:
parent
dbe7a393a8
commit
33fc7fb2e6
1
core/embed/prodtest/.changelog.d/4313.fixed
Normal file
1
core/embed/prodtest/.changelog.d/4313.fixed
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fixed writing data (variant, batch) to OTP
|
@ -366,7 +366,7 @@ mpu_mode_t mpu_reconfig(mpu_mode_t mode) {
|
|||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
case MPU_MODE_OTP:
|
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;
|
break;
|
||||||
case MPU_MODE_SECRET:
|
case MPU_MODE_SECRET:
|
||||||
SET_REGION( 6, SECRET_START, SECRET_MAXSIZE, FLASH_DATA, YES, NO );
|
SET_REGION( 6, SECRET_START, SECRET_MAXSIZE, FLASH_DATA, YES, NO );
|
||||||
|
Loading…
Reference in New Issue
Block a user