CNT1SEC=B_0x0, BHKLOCK=B_0x0, TAMPSEC=B_0x0
TAMP secure mode register
BKPRWSEC | Backup registers read/write protection offset Protection zone 1 is defined for backup registers from TAMP_BKP0R to TAMP_BKPxR (x = BKPRWSEC-1, from 0 to 128). if TZEN=1, these backup registers can be read and written only with secure access. If TZEN=0: the protection zone 1 can be read and written with non-secure access. If BKPRWSEC = 0: there is no protection zone 1. If BKPRWPRIV is set, BKPRWSEC[7:0] can be written only in privileged mode. |
CNT1SEC | Monotonic counter 1 secure protection 0 (B_0x0): Monotonic counter 1 (TAMP_COUNT1R) can be read and written when the APB access is secure or non-secure. 1 (B_0x1): Monotonic counter 1 (TAMP_COUNT1R) can be read and written only when the APB access is secure. |
BKPWSEC | Backup registers write protection offset Protection zone 2 is defined for backup registers from TAMP_BKPyR (y = BKPRWSEC, from 0 to 128) to TAMP_BKPzR (z = BKPWSEC-1, from 0 to 128, BKPWSEC ¥ BKPRWSEC): if TZEN=1, these backup registers can be written only with secure access. They can be read with secure or non-secure access. Protection zone 3 defined for backup registers from TAMP_BKPtR (t = BKPWSEC, from 0 to 127). They can be read or written with secure or non-secure access. If TZEN=0: the protection zone 2 can be read and written with non-secure access. If BKPWSEC = 0 or if BKPWSEC ¤ BKPRWSEC: there is no protection zone 2. If BKPWPRIV is set, BKPRWSEC[7:0] can be written only in privileged mode. |
BHKLOCK | Boot hardware key lock This bit can be read and can only be written to 1 by software. It is cleared by hardware together with the backup registers following a tamper detection event or when the readout protection (RDP) is disabled. 0 (B_0x0): The Backup registers from TAMP_BKP0R to TAMP_BKP7R can be accessed according to the Protection zone they belong to. 1 (B_0x1): The backup registers from TAMP_BKP0R to TAMP_BKP7R cannot be accessed neither in read nor in write (they are read as 0 and write ignore). |
TAMPSEC | Tamper protection (excluding monotonic counters and backup registers) Note: Refer to for details on the read protection. 0 (B_0x0): Tamper configuration and interrupt can be written when the APB access is secure or non-secure. 1 (B_0x1): Tamper configuration and interrupt can be written only when the APB access is secure. |