block/FLASH: description: FLASH address block description items: - name: ACR description: FLASH access control register byte_offset: 0 fieldset: ACR - name: NSKEYR description: FLASH key register byte_offset: 4 fieldset: NSKEYR - name: OPTKEYR description: FLASH option key register byte_offset: 12 fieldset: OPTKEYR - name: OPSR description: FLASH operation status register byte_offset: 24 fieldset: OPSR - name: OPTCR description: FLASH option control register byte_offset: 28 fieldset: OPTCR - name: NSSR description: FLASH non-secure status register byte_offset: 32 fieldset: NSSR - name: SECSR description: FLASH secure status register byte_offset: 36 fieldset: SECSR - name: NSCR description: FLASH Non Secure control register byte_offset: 40 fieldset: NSCR - name: NSCCR description: FLASH non-secure clear control register byte_offset: 48 fieldset: NSCCR - name: PRIVCFGR description: FLASH privilege configuration register byte_offset: 60 fieldset: PRIVCFGR - name: HDPEXTR description: FLASH HDP extension register byte_offset: 72 fieldset: HDPEXTR - name: OPTSR_CUR description: FLASH option status register byte_offset: 80 fieldset: OPTSR - name: OPTSR_PRG description: FLASH option status register byte_offset: 84 fieldset: OPTSR - name: OPTSR2_CUR description: FLASH option status register 2 byte_offset: 112 fieldset: OPTSR2 - name: OPTSR2_PRG description: FLASH option status register 2 byte_offset: 116 fieldset: OPTSR2 - name: NSBOOTR_CUR description: FLASH non-secure unique boot entry register byte_offset: 128 fieldset: NSBOOTR - name: NSBOOTR_PRG description: FLASH non-secure unique boot entry address byte_offset: 132 fieldset: NSBOOTR - name: OTPBLR_CUR description: FLASH non-secure OTP block lock byte_offset: 144 fieldset: OTPBLR - name: OTPBLR_PRG description: FLASH non-secure OTP block lock byte_offset: 148 fieldset: OTPBLR - name: PRIVBB1R description: FLASH privilege register for bank 1 byte_offset: 192 fieldset: PRIVBB - name: WRPSGN1R_CUR description: FLASH write sector protection for Bank1 byte_offset: 232 fieldset: WRP - name: WRPSGN1R_PRG description: FLASH write sector protection for Bank1 byte_offset: 236 fieldset: WRP - name: HDP1R_CUR description: FLASH HDP Bank1 register byte_offset: 248 fieldset: HDP1R - name: HDP1R_PRG description: FLASH HDP Bank1 register byte_offset: 252 fieldset: HDP1R - name: ECCCORR description: FLASH Flash ECC correction register byte_offset: 256 fieldset: ECCCORR - name: ECCDETR description: FLASH ECC detection register byte_offset: 260 fieldset: ECCDETR - name: ECCDR description: FLASH ECC data byte_offset: 264 fieldset: ECCDR - name: WRPSGN2R_CUR description: FLASH write sector protection for Bank2 byte_offset: 488 fieldset: WRP - name: WRPSGN2R_PRG description: FLASH write sector protection for Bank2 byte_offset: 492 fieldset: WRP - name: HDP2R_CUR description: FLASH HDP Bank2 register byte_offset: 504 fieldset: HDP2R - name: HDP2R_PRG description: FLASH HDP Bank2 register byte_offset: 508 fieldset: HDP2R fieldset/ACR: description: FLASH access control register fields: - name: LATENCY description: "Read latency\r These bits are used to control the number of wait states used during read operations on both non-volatile memory banks. The application software has to program them to the correct value depending on the embedded Flash memory interface frequency and voltage conditions.\r ...\r Note: No check is performed by hardware to verify that the configuration is correct." bit_offset: 0 bit_size: 4 - name: WRHIGHFREQ description: "Flash signal delay\r These bits are used to control the delay between non-volatile memory signals during programming operations. Application software has to program them to the correct value depending on the embedded Flash memory interface frequency. Please refer to for details.\r Note: No check is performed to verify that the configuration is correct.\r Two WRHIGHFREQ values can be selected for some frequencies." bit_offset: 4 bit_size: 2 - name: PRFTEN description: "Prefetch enable. When bit value is modified, user must read back ACR register to be sure PRFTEN has been taken into account.\r Bits used to control the prefetch." bit_offset: 8 bit_size: 1 - name: S_PRFTEN description: "Smart prefetch enable. When bit value is modified, user must read back ACR register to be sure S_PRFTEN has been taken into account.\r Bits used to control the prefetch functionality." bit_offset: 9 bit_size: 1 fieldset/ECCCORR: description: FLASH Flash ECC correction register fields: - name: ADDR_ECC description: "ECC error address\r When an ECC error occurs (for single correction) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." bit_offset: 0 bit_size: 16 - name: BK_ECC description: "ECC bank flag for corrected ECC error\r It indicates which bank is concerned by ECC error" bit_offset: 22 bit_size: 1 - name: SYSF_ECC description: "ECC flag for corrected ECC error in system FLASH\r It indicates if system Flash memory is concerned by ECC error." bit_offset: 23 bit_size: 1 - name: OTP_ECC description: "OTP ECC error bit\r This bit is set to 1 when one single ECC correction occurred during the last successful read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bitfield." bit_offset: 24 bit_size: 1 - name: ECCCIE description: ECC single correction error interrupt enable bit When ECCCIE bit is set to 1, an interrupt is generated when an ECC single correction error occurs during a read operation. bit_offset: 25 bit_size: 1 - name: ECCC description: "ECC correction set by hardware when single ECC error has been detected and corrected.\r Cleared by writing 1." bit_offset: 30 bit_size: 1 fieldset/ECCDETR: description: FLASH ECC detection register fields: - name: ADDR_ECC description: "ECC error address\r When an ECC error occurs (double detection) during a read operation, the ADDR_ECC contains the address that generated the error.\r ADDR_ECC is reset when the flag error is reset.\r The embedded Flash memory programs the address in this register only when no ECC error flags are set. This means that only the first address that generated an double ECC error is saved.\r The address in ADDR_ECC is relative to the Flash memory area where the error occurred (user Flash memory, system Flash memory, data area, read-only/OTP area)." bit_offset: 0 bit_size: 16 - name: BK_ECC description: "ECC fail bank for double ECC Error\r It indicates which bank is concerned by ECC error" bit_offset: 22 bit_size: 1 - name: SYSF_ECC description: "ECC fail for double ECC error in system Flash memory\r It indicates if system Flash memory is concerned by ECC error." bit_offset: 23 bit_size: 1 - name: OTP_ECC description: "OTP ECC error bit\r This bit is set to 1 when double ECC detection occurred during the last read operation from the read-only/ OTP area. The address of the ECC error is available in ADDR_ECC bit field." bit_offset: 24 bit_size: 1 - name: ECCD description: "ECC detection set by hardware when two ECC error has been detected.\r When this bit is set, a NMI is generated.\r Cleared by writing 1. Needs to be cleared in order to detect subsequent double ECC errors." bit_offset: 31 bit_size: 1 fieldset/ECCDR: description: FLASH ECC data fields: - name: DATA_ECC description: "ECC error data\r When an double detection ECC error occurs on special areas with 6-bit ECC on 16-bit of data (data area, read-only/OTP area), the failing data is read to this register.\r By checking if it is possible to determine whether the failure was on a real data, or due to access to uninitialized memory." bit_offset: 0 bit_size: 16 fieldset/HDP1R: description: FLASH HDP Bank1 register fields: - name: HDP1_STRT description: HDPL barrier start set in number of 8 Kbytes sectors bit_offset: 0 bit_size: 3 - name: HDP1_END description: HDPL barrier end set in number of 8 Kbytes sectors bit_offset: 16 bit_size: 3 fieldset/HDP2R: description: FLASH HDP Bank2 register fields: - name: HDP2_STRT description: Bank 2 HDPL barrier start set in number of 8 Kbytes sectors bit_offset: 0 bit_size: 3 - name: HDP2_END description: Bank 2 HDPL barrier end set in number of 8 Kbytes sectors bit_offset: 16 bit_size: 3 fieldset/HDPEXTR: description: FLASH HDP extension register fields: - name: HDP1_EXT description: HDP area extension in 8 Kbytes sectors in Bank1. Extension is added after the HDP1_END sector. bit_offset: 0 bit_size: 3 - name: HDP2_EXT description: HDP area extension in 8 Kbytes sectors in Bank2. Extension is added after the HDP2_END sector. bit_offset: 16 bit_size: 3 fieldset/NSBOOTR: description: FLASH non-secure unique boot entry register fields: - name: NSBOOT_LOCK description: A field locking the values of SWAP_BANK, and NSBOOTADD settings. bit_offset: 0 bit_size: 8 enum: NSBOOTR_NSBOOT_LOCK - name: NSBOOTADD description: "unique boot entry address\r These bits reflect the UBE address" bit_offset: 8 bit_size: 24 fieldset/NSCCR: description: FLASH non-secure clear control register fields: - name: CLR_EOP description: "EOP flag clear bit\r Setting this bit to 1 resets to 0 EOP flag in FLASH_NSSR register." bit_offset: 16 bit_size: 1 - name: CLR_WRPERR description: "WRPERR flag clear bit\r Setting this bit to 1 resets to 0 WRPERR flag in FLASH_NSSR register." bit_offset: 17 bit_size: 1 - name: CLR_PGSERR description: "PGSERR flag clear bit\r Setting this bit to 1 resets to 0 PGSERR flag in FLASH_NSSR register." bit_offset: 18 bit_size: 1 - name: CLR_STRBERR description: "STRBERR flag clear bit\r Setting this bit to 1 resets to 0 STRBERR flag in FLASH_NSSR register." bit_offset: 19 bit_size: 1 - name: CLR_INCERR description: "INCERR flag clear bit\r Setting this bit to 1 resets to 0 INCERR flag in FLASH_NSSR register." bit_offset: 20 bit_size: 1 - name: CLR_OPTCHANGEERR description: Clear the flag corresponding flag in FLASH_NSSR by writing this bit. bit_offset: 23 bit_size: 1 fieldset/NSCR: description: FLASH Non Secure control register fields: - name: LOCK description: "configuration lock bit\r This bit locks the FLASH_NSCR register. The correct write sequence to FLASH_NSKEYR register unlocks this bit. If a wrong sequence is executed, or if the unlock sequence to FLASH_NSKEYR is performed twice, this bit remains locked until the next system reset.\r LOCK can be set by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When LOCK changes from 0 to 1, the other bits of FLASH_NSCR register do not change." bit_offset: 0 bit_size: 1 - name: PG description: "programming control bit\r PG can be programmed only when LOCK is cleared to 0.\r PG allows programming in Bank1 and Bank2." bit_offset: 1 bit_size: 1 - name: SER description: "sector erase request\r Setting SER bit to 1 requests a sector erase. SER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised." bit_offset: 2 bit_size: 1 - name: BER description: "erase request\r Setting BER bit to 1 requests a bank erase operation (user Flash memory only). BER can be programmed only when LOCK is cleared to 0.\r If MER and SER are also set, a PGSERR is raised.\r Note: Write protection error is triggered when a bank erase is required and some sectors are protected." bit_offset: 3 bit_size: 1 - name: FW description: "write forcing control bit\r FW forces a write operation even if the write buffer is not full. In this case all bits not written are set to 1 by hardware. FW can be programmed only when LOCK is cleared to 0.\r The embedded Flash memory resets FW when the corresponding operation has been acknowledged.\r Note: Using a force-write operation prevents the application from updating later the missing bits with something else than 1, because it is likely that it leads to permanent ECC error.\r Write forcing is effective only if the write buffer is not empty (in particular, FW does not start several write operations when the force-write operations are performed consecutively).\r Since there is just one write buffer, FW can force a write in bank1 or bank2." bit_offset: 4 bit_size: 1 - name: STRT description: "erase start control bit\r STRT bit is used to start a sector erase or a bank erase operation. STRT can be programmed only when LOCK is cleared to 0.\r STRT is reset at the end of the operation or when an error occurs. It cannot be reseted by software." bit_offset: 5 bit_size: 1 - name: SNB description: "sector erase selection number\r These bits are used to select the target sector for an erase operation (they are unused otherwise). SNB can be programmed only when LOCK is cleared to 0.\r ..." bit_offset: 6 bit_size: 3 - name: MER description: "Mass erase request\r Setting MER bit to 1 requests a mass erase operation (user Flash memory only). MER can be programmed only when LOCK is cleared to 0.\r If BER or SER are both set, a PGSERR is raised.\r Error is triggered when a mass erase is required and some sectors are protected." bit_offset: 15 bit_size: 1 - name: EOPIE description: "end of operation interrupt control bit\r Setting EOPIE bit to 1 enables the generation of an interrupt at the end of a program or erase operation. EOPIE can be programmed only when LOCK is cleared to 0." bit_offset: 16 bit_size: 1 - name: WRPERRIE description: "write protection error interrupt enable bit\r When WRPERRIE bit is set to 1, an interrupt is generated when a protection error occurs during a program operation. WRPERRIE can be programmed only when LOCK is cleared to 0." bit_offset: 17 bit_size: 1 - name: PGSERRIE description: "programming sequence error interrupt enable bit\r When PGSERRIE bit is set to 1, an interrupt is generated when a sequence error occurs during a program operation. PGSERRIE can be programmed only when LOCK is cleared to 0." bit_offset: 18 bit_size: 1 - name: STRBERRIE description: "strobe error interrupt enable bit\r When STRBERRIE bit is set to 1, an interrupt is generated when a strobe error occurs (the master programs several times the same byte in the write buffer) during a write operation. STRBERRIE can be programmed only when LOCK is cleared to 0." bit_offset: 19 bit_size: 1 - name: INCERRIE description: "inconsistency error interrupt enable bit\r When INCERRIE bit is set to 1, an interrupt is generated when an inconsistency error occurs during a write operation. INCERRIE can be programmed only when LOCK is cleared to 0." bit_offset: 20 bit_size: 1 - name: OPTCHANGEERRIE description: "Option byte change error interrupt enable bit\r OPTCHANGEERRIE bit controls if an interrupt has to be generated when an error occurs during an option byte change. This bit can be programmed only when LOCK bit is cleared to 0." bit_offset: 23 bit_size: 1 - name: BKSEL description: "Bank selector bit\r BKSEL can only be programmed when LOCK is cleared to 0. The bit selects physical bank, SWAP_BANK setting is ignored." bit_offset: 31 bit_size: 1 enum: BKSEL fieldset/NSKEYR: description: FLASH key register fields: - name: NSKEY description: Non-volatile memory configuration access unlock key bit_offset: 0 bit_size: 32 fieldset/NSSR: description: FLASH non-secure status register fields: - name: BSY description: "busy flag\r BSY flag indicates that a Flash memory is busy by an operation (write, erase, option byte change). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." bit_offset: 0 bit_size: 1 - name: WBNE description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_NSCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by software writing 0 directly. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." bit_offset: 1 bit_size: 1 - name: DBNE description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." bit_offset: 3 bit_size: 1 - name: EOP description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to 1. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_NSCCR register." bit_offset: 16 bit_size: 1 - name: WRPERR description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_NSCCR register clears WRPERR." bit_offset: 17 bit_size: 1 - name: PGSERR description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_NSCCR register clears PGSERR." bit_offset: 18 bit_size: 1 - name: STRBERR description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_NSCCR register clears STRBERR." bit_offset: 19 bit_size: 1 - name: INCERR description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_NSCCR register clears INCERR." bit_offset: 20 bit_size: 1 - name: OPTCHANGEERR description: "Option byte change error flag\r OPTCHANGEERR flag indicates that an error occurred during an option byte change operation. When OPTCHANGEERR is set to 1, the option byte change operation did not successfully complete. An interrupt is generated when this flag is raised if the OPTCHANGEERRIE bit of FLASH_NSCR register is set to 1.\r Writing 1 to CLR_OPTCHANGEERR of register FLASH_CCR clears OPTCHANGEERR.\r Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set." bit_offset: 23 bit_size: 1 fieldset/OPSR: description: FLASH operation status register fields: - name: ADDR_OP description: Interrupted operation address. bit_offset: 0 bit_size: 20 - name: BK_OP description: "Interrupted operation bank\r It indicates which bank was concerned by operation." bit_offset: 22 bit_size: 1 - name: SYSF_OP description: "Operation in system Flash memory interrupted\r Indicates that reset interrupted an ongoing operation in System Flash." bit_offset: 23 bit_size: 1 - name: OTP_OP description: "OTP operation interrupted\r Indicates that reset interrupted an ongoing operation in OTP area." bit_offset: 24 bit_size: 1 - name: CODE_OP description: Flash memory operation code bit_offset: 29 bit_size: 3 enum: CODE_OP fieldset/OPTCR: description: FLASH option control register fields: - name: OPTLOCK description: "FLASH_OPTCR lock option configuration bit\r The OPTLOCK bit locks the FLASH_OPTCR register as well as all _PRG registers. The correct write sequence to FLASH_OPTKEYR register unlocks this bit. If a wrong sequence is executed, or the unlock sequence to FLASH_OPTKEYR is performed twice, this bit remains locked until next system reset.\r It is possible to set OPTLOCK by programming it to 1. When set to 1, a new unlock sequence is mandatory to unlock it. When OPTLOCK changes from 0 to 1, the others bits of FLASH_OPTCR register do not change." bit_offset: 0 bit_size: 1 - name: OPTSTRT description: "Option byte start change option configuration bit\r OPTSTRT triggers an option byte change operation. The user can set OPTSTRT only when the OPTLOCK bit is cleared to 0. It’s set only by Software and cleared when the option byte change is completed or an error occurs (PGSERR or OPTCHANGEERR). It’s reseted at the same time as BSY bit.\r The user application cannot modify any FLASH_XXX_PRG embedded Flash memory register until the option change operation has been completed.\r Before setting this bit, the user has to write the required values in the FLASH_XXX_PRG registers. The FLASH_XXX_PRG registers are locked until the option byte change operation has been executed in non-volatile memory." bit_offset: 1 bit_size: 1 - name: SWAP_BANK description: "Bank swapping option configuration bit\r SWAP_BANK controls whether Bank1 and Bank2 are swapped or not. This bit is loaded with the SWAP_BANK bit of FLASH_OPTSR_CUR register only after reset or POR." bit_offset: 31 bit_size: 1 enum: OPTCR_SWAP_BANK fieldset/OPTKEYR: description: FLASH option key register fields: - name: OPTKEY description: FLASH option bytes control access unlock key bit_offset: 0 bit_size: 32 fieldset/OPTSR: description: FLASH option status register fields: - name: BOR_LEV description: "Brownout level option status bit\r These bits reflects the power level that generates a system reset." bit_offset: 0 bit_size: 2 enum: OPTSR_BOR_LEV - name: BORH_EN description: Brownout high enable status bit bit_offset: 2 bit_size: 1 - name: IWDG_SW description: IWDG control mode option status bit bit_offset: 3 bit_size: 1 enum: OPTSR_IWDG_SW - name: WWDG_SW description: WWDG control mode option status bit bit_offset: 4 bit_size: 1 enum: OPTSR_WWDG_SW - name: NRST_SHDW description: Core domain Shutdown entry reset option status bit bit_offset: 5 bit_size: 1 enum: OPTSR_NRST_SHDW - name: NRST_STOP description: Core domain Stop entry reset option status bit bit_offset: 6 bit_size: 1 enum: OPTSR_NRST_STOP - name: NRST_STDBY description: Core domain Standby entry reset option status bit bit_offset: 7 bit_size: 1 enum: OPTSR_NRST_STDBY - name: PRODUCT_STATE description: Life state code (based on Hamming 8,4). More information in . bit_offset: 8 bit_size: 8 - name: IO_VDD_HSLV description: High-speed IO at low VDD voltage status bit. This bit can be set only with VDD below 2.5 V. bit_offset: 16 bit_size: 1 enum: OPTSR_IO_VDD_HSLV - name: IO_VDDIO2_HSLV description: High-speed IO at low VDDIO2 voltage status bit. This bit can be set only with VDDIO2 below 2.5 V. bit_offset: 17 bit_size: 1 enum: OPTSR_IO_VDDIO_HSLV - name: IWDG_STOP description: "IWDG Stop mode freeze option status bit\r When set the independent watchdog IWDG is in system Stop mode." bit_offset: 20 bit_size: 1 enum: OPTSR_IWDG_STOP - name: IWDG_STDBY description: "IWDG Standby mode freeze option status bit\r When set the independent watchdog IWDG is frozen in system Standby mode." bit_offset: 21 bit_size: 1 enum: OPTSR_IWDG_STDBY - name: SWAP_BANK description: "Bank swapping option status bit\r SWAP_BANK reflects whether Bank1 and Bank2 are swapped or not.\r SWAP_BANK is loaded to SWAP_BANK of FLASH_OPTCR after a reset." bit_offset: 31 bit_size: 1 enum: OPTSR_SWAP_BANK fieldset/OPTSR2: description: FLASH option status register 2 fields: - name: SRAM2_RST description: SRAM2 erase when system reset bit_offset: 3 bit_size: 1 - name: BKPRAM_ECC description: Backup RAM ECC detection and correction disable bit_offset: 4 bit_size: 1 enum: OPTSR_BKPRAM_ECC - name: SRAM2_ECC description: SRAM2 ECC detection and correction disable bit_offset: 6 bit_size: 1 enum: OPTSR_SRAM_ECC - name: SRAM1_RST description: SRAM1 erase upon system reset bit_offset: 9 bit_size: 1 - name: SRAM1_ECC description: SRAM1 ECC detection and correction disable bit_offset: 10 bit_size: 1 enum: OPTSR_SRAM_ECC fieldset/OTPBLR: description: FLASH non-secure OTP block lock fields: - name: LOCKBL description: "OTP block lock\r Block n corresponds to OTP 16-bit word 32 x n to 32 x n + 31.\r LOCKBL[n] = 1 indicates that all OTP 16-bit words in OTP Block n are locked and attempt to program them results in WRPERR.\r LOCKBL[n] = 0 indicates that all OTP 16-bit words in OTP Block n are not locked.\r When one block is locked, it is not possible to remove the write protection.\r LOCKBL bits can be set if the corresponding bit in FLASH_OTPBLR_CUR is cleared." bit_offset: 0 bit_size: 32 fieldset/PRIVBB: description: FLASH privilege register for bank 1 fields: - name: PRIVBB description: Privileged / unprivileged 8 Kbytes Flash Bank1 sector attribute (y = 0 to 7) bit_offset: 0 bit_size: 8 enum: PRIVBB fieldset/PRIVCFGR: description: FLASH privilege configuration register fields: - name: NSPRIV description: privilege attribute for non secure registers bit_offset: 1 bit_size: 1 enum: NSPRIV fieldset/SECSR: description: FLASH secure status register fields: - name: SECBSY description: "busy flag\r BSY flag indicates that a FLASH memory is busy by an operation (write, erase, option byte change, OBK operations, PUF operation). It is set at the beginning of a Flash memory operation and cleared when the operation finishes or an error occurs." bit_offset: 0 bit_size: 1 - name: SECWBNE description: "write buffer not empty flag\r WBNE flag is set when the embedded Flash memory is waiting for new data to complete the write buffer. In this state, the write buffer is not empty. WBNE is reset by hardware each time the write buffer is complete or the write buffer is emptied following one of the event below:\r the application software forces the write operation using FW bit in FLASH_SECCR\r the embedded Flash memory detects an error that involves data loss\r This bit cannot be reset by writing 0 directly by software. To reset it, clear the write buffer by performing any of the above listed actions, or send the missing data." bit_offset: 1 bit_size: 1 - name: SECDBNE description: "data buffer not empty flag\r DBNE flag is set when the embedded Flash memory interface is processing 6-bits ECC data in dedicated buffer. This bit cannot be set to 0 by software. The hardware resets it once the buffer is free." bit_offset: 3 bit_size: 1 - name: SECEOP description: "end of operation flag\r EOP flag is set when a operation (program/erase) completes. An interrupt is generated if the EOPIE is set to. It is not necessary to reset EOP before starting a new operation. EOP bit is cleared by writing 1 to CLR_EOP bit in FLASH_SECCCR register." bit_offset: 16 bit_size: 1 - name: SECWRPERR description: "write protection error flag\r WRPERR flag is raised when a protection error occurs during a program operation. An interrupt is also generated if the WRPERRIE is set to 1. Writing 1 to CLR_WRPERR bit in FLASH_SECCCR register clears WRPERR." bit_offset: 17 bit_size: 1 - name: SECPGSERR description: "programming sequence error flag\r PGSERR flag is raised when a sequence error occurs. An interrupt is generated if the PGSERRIE bit is set to 1. Writing 1 to CLR_PGSERR bit in FLASH_SECCCR register clears PGSERR." bit_offset: 18 bit_size: 1 - name: SECSTRBERR description: "strobe error flag\r STRBERR flag is raised when a strobe error occurs (when the master attempts to write several times the same byte in the write buffer). An interrupt is generated if the STRBERRIE bit is set to 1. Writing 1 to CLR_STRBERR bit in FLASH_SECCCR register clears STRBERR." bit_offset: 19 bit_size: 1 - name: SECINCERR description: "inconsistency error flag\r INCERR flag is raised when a inconsistency error occurs. An interrupt is generated if INCERRIE is set to 1. Writing 1 to CLR_INCERR bit in the FLASH_SECCCR register clears INCERR." bit_offset: 20 bit_size: 1 fieldset/WRP: description: FLASH write sector protection for Bank2 fields: - name: WRPSG description: "Bank2 sector protection option status byte\r Setting WRPSG2 bits to 0 write protects the corresponding sectors in bank 2 (0: write protected; 1: not write protected)" bit_offset: 0 bit_size: 8 enum/BKSEL: bit_size: 1 variants: - name: B_0x0 description: Bank1 is selected for Bank erase / sector erase / interrupt enable value: 0 - name: B_0x1 description: Bank2 is selected for BER / SER value: 1 enum/CODE_OP: bit_size: 3 variants: - name: B_0x0 description: No Flash operation on going during previous reset value: 0 - name: B_0x1 description: Single write operation interrupted value: 1 - name: B_0x3 description: Sector erase operation interrupted value: 3 - name: B_0x4 description: Bank erase operation interrupted value: 4 - name: B_0x5 description: Mass erase operation interrupted value: 5 - name: B_0x6 description: Option change operation interrupted value: 6 enum/NSBOOTR_NSBOOT_LOCK: bit_size: 8 variants: - name: B_0xB4 description: The NSBOOTADD and SWAP_BANK are frozen. value: 180 - name: B_0xC3 description: The SWAP_BANK and NSBOOTADD can still be modified following their individual rules. value: 195 enum/NSPRIV: bit_size: 1 variants: - name: B_0x0 description: access to non secure registers is always granted value: 0 - name: B_0x1 description: access to non secure registers is denied in case of non privileged access. value: 1 enum/OPTCR_SWAP_BANK: bit_size: 1 variants: - name: B_0x0 description: Bank1 and Bank2 not swapped value: 0 - name: B_0x1 description: Bank1 and Bank2 swapped value: 1 enum/OPTSR_BKPRAM_ECC: bit_size: 1 variants: - name: B_0x0 description: BKPRAM ECC check enabled value: 0 - name: B_0x1 description: BKPRAM ECC check disabled value: 1 enum/OPTSR_BOR_LEV: bit_size: 2 variants: - name: B_0x0 description: BOR OFF, POR/PDR reset threshold level is applied value: 0 - name: B_0x1 description: BOR Level 1, the threshold level is low (around 2.1 V) value: 1 - name: B_0x2 description: BOR Level 2, the threshold level is medium (around 2.4 V) value: 2 - name: B_0x3 description: BOR Level 3, the threshold level is high (around 2.7 V) value: 3 enum/OPTSR_IO_VDDIO_HSLV: bit_size: 1 variants: - name: B_0x0 description: High-speed IO at low VDDIO2 voltage feature disabled (VDDIO2 can exceed 2.5 V) value: 0 - name: B_0x1 description: High-speed IO at low VDDIO2 voltage feature enabled (VDDIO2 remains below 2.5 V) value: 1 enum/OPTSR_IO_VDD_HSLV: bit_size: 1 variants: - name: B_0x0 description: High-speed IO at low VDD voltage feature disabled (VDD can exceed 2.5 V) value: 0 - name: B_0x1 description: High-speed IO at low VDD voltage feature enabled (VDD remains below 2.5 V) value: 1 enum/OPTSR_IWDG_STDBY: bit_size: 1 variants: - name: B_0x0 description: Independent watchdog frozen in Standby mode value: 0 - name: B_0x1 description: Independent watchdog keep running in Standby mode. value: 1 enum/OPTSR_IWDG_STOP: bit_size: 1 variants: - name: B_0x0 description: Independent watchdog frozen in system Stop mode value: 0 - name: B_0x1 description: Independent watchdog keep running in system Stop mode. value: 1 enum/OPTSR_IWDG_SW: bit_size: 1 variants: - name: B_0x0 description: IWDG watchdog is controlled by hardware value: 0 - name: B_0x1 description: IWDG watchdog is controlled by software value: 1 enum/OPTSR_NRST_SHDW: bit_size: 1 variants: - name: B_0x0 description: a reset is generated when entering Shutdown mode on core domain value: 0 - name: B_0x1 description: no reset generated when entering Shutdown mode on core domain. value: 1 enum/OPTSR_NRST_STDBY: bit_size: 1 variants: - name: B_0x0 description: a reset is generated when entering Standby mode on core domain value: 0 - name: B_0x1 description: no reset generated when entering Standby mode on core domain. value: 1 enum/OPTSR_NRST_STOP: bit_size: 1 variants: - name: B_0x0 description: a reset is generated when entering Stop mode on core domain value: 0 - name: B_0x1 description: no reset generated when entering Stop mode on core domain. value: 1 enum/OPTSR_SRAM_ECC: bit_size: 1 variants: - name: B_0x0 description: SRAM2 ECC check enabled value: 0 - name: B_0x1 description: SRAM2 ECC check disabled value: 1 enum/OPTSR_SWAP_BANK: bit_size: 1 variants: - name: B_0x0 description: Bank1 and Bank2 not swapped value: 0 - name: B_0x1 description: Bank1 and Bank2 swapped value: 1 enum/OPTSR_WWDG_SW: bit_size: 1 variants: - name: B_0x0 description: WWDG watchdog is controlled by hardware value: 0 - name: B_0x1 description: WWDG watchdog is controlled by software value: 1 enum/PRIVBB: bit_size: 8 variants: - name: B_0x0 description: sectors y in bank 1 is non privileged value: 0 - name: B_0x1 description: sector y in bank 1 is privileged value: 1