stm32 /stm32h5 /STM32H503 /FLASH /FLASH_NSSR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as FLASH_NSSR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)BSY 0 (B_0x0)WBNE 0 (B_0x0)DBNE 0 (B_0x0)EOP 0 (B_0x0)WRPERR 0 (B_0x0)PGSERR 0 (B_0x0)STRBERR 0 (B_0x0)INCERR 0 (B_0x0)OPTCHANGEERR

DBNE=B_0x0, WBNE=B_0x0, INCERR=B_0x0, OPTCHANGEERR=B_0x0, WRPERR=B_0x0, BSY=B_0x0, STRBERR=B_0x0, EOP=B_0x0, PGSERR=B_0x0

Description

FLASH non-secure status register

Fields

BSY

busy flag 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.

0 (B_0x0): no programming, erase or option byte change operation being executed

1 (B_0x1): programming, erase or option byte change operation being executed

WBNE

write buffer not empty flag 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: the application software forces the write operation using FW bit in FLASH_NSCR the embedded Flash memory detects an error that involves data loss 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.

0 (B_0x0): write buffer empty or full

1 (B_0x1): write buffer waiting data to complete

DBNE

data buffer not empty flag 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.

0 (B_0x0): data buffer not used

1 (B_0x1): data buffer used, wait

EOP

end of operation flag 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.

0 (B_0x0): no operation completed

1 (B_0x1): a operation completed

WRPERR

write protection error flag 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.

0 (B_0x0): no write protection error occurred

1 (B_0x1): a write protection error occurred

PGSERR

programming sequence error flag 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.

0 (B_0x0): no sequence error occurred

1 (B_0x1): a sequence error occurred

STRBERR

strobe error flag 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.

0 (B_0x0): no strobe error occurred

1 (B_0x1): a strobe error occurred

INCERR

inconsistency error flag 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.

0 (B_0x0): no inconsistency error occurs

1 (B_0x1): a inconsistency error occurs

OPTCHANGEERR

Option byte change error flag 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. Writing 1 to CLR_OPTCHANGEERR of register FLASH_CCR clears OPTCHANGEERR. Note: The OPTSTRT bit in FLASH_OPTCR cannot be set while OPTCHANGEERR is set.

0 (B_0x0): no option byte change errors occurred

1 (B_0x1): one or more errors occurred during an option byte change operation.

Links

()