ST STM32G4 Series Reference Manual page 105

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
Read from bank 1 while mass erasing bank 2 (or vice versa)
While executing a program code from bank 1, it is possible to perform a mass erase
operation on bank 2 (and vice versa). Follow the procedure below:
1.
Check that no Flash memory operation is ongoing by checking the BSY bit in the
status register (FLASH_SR)
in bank 1 or bank 2).
2.
Set MER1 or MER2 to in the
3.
Set the STRT bit in the FLASH_CR register.
4.
Wait for the BSY bit to be cleared (or use the EOP interrupt).
Read from bank 1 while programming bank 2 (or vice versa)
While executing a program code from bank 1, it is possible to perform a program operation
on the bank 2. (and vice versa). Follow the procedure below:
1.
Check that no Flash memory operation is ongoing by checking the BSY bit in the
status register (FLASH_SR)
on bank 1 or bank 2).
2.
Set the PG bit in the
3.
Perform the data write operations at the desired address memory inside the main
memory block or OTP area.
4.
Wait for the BSY bit to be cleared (or use the EOP interrupt).
Embedded Flash memory (FLASH) for category 3 devices
(BSY is active when erase/program operation is on going
Flash control register
(BSY is active when erase/program operation is on going
Flash control register
RM0440 Rev 1
(FLASH_CR).
(FLASH_CR).
Flash
Flash
105/2083
185

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32G4 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF