| Electronic Components Datasheet Search |
|
PM0068 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0068 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 31 page ![]() PM0068 Reading/programming the STM32F101xF/G and STM32F103xF/G embedded Flash memo- Doc ID 17100 Rev 2 11/31 Figure 1. Programming procedure Standard programming In this mode the CPU programs the main Flash memory by performing standard half-word write operations. The PG bit in the FLASH_CR register must be set. FPEC preliminarily reads the value at the addressed main Flash memory location and checks that it has been erased. If not, the program operation is skipped and a warning is issued by the PGERR bit in FLASH_SR register (the only exception to this is when 0x0000 is programmed. In this case, the location is correctly programmed to 0x0000 and the PGERR bit is not set). If the addressed main Flash memory location is write-protected by the FLASH_WRPR register, the program operation is skipped and a warning is issued by the WRPRTERR bit in the FLASH_SR register. The end of the program operation is indicated by the EOP bit in the FLASH_SR register. The main Flash memory programming sequence in standard mode is as follows: ● Check that no main Flash memory operation is ongoing by checking the BSY bit in the FLASH_SR register. ● Set the PG bit in the FLASH_CR register. ● Perform the data write (half-word) at the desired address. ● Wait for the BSY bit to be reset. ● Read the programmed value and verify. Note: The registers are not accessible in write mode when the BSY bit of the FLASH_SR register is set. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |