| 전자부품 데이터시트 검색엔진 |
|
PM0068 데이터시트(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
PM0068 데이터시트(HTML) 13 Page - STMicroelectronics |
|
13 / 31 page ![]() PM0068 Reading/programming the STM32F101xF/G and STM32F103xF/G embedded Flash memo- Doc ID 17100 Rev 2 13/31 Mass Erase The Mass Erase command can be used to completely erase the user pages of the Flash memory. The information block is unaffected by this procedure. The following sequence is recommended: ● Check that no Flash memory operation is ongoing by checking the BSY bit in the FLASH_SR register ● Set the MER bit in the FLASH_CR register ● Set the STRT bit in the FLASH_CR register ● Wait for the BSY bit to be reset ● Read all the pages and verify Note: To perform a mass erase on the whole Flash memory, a mass erase must be issued to bank 1 and bank 2. Figure 3. Flash memory Mass Erase procedure 2.3.5 Option byte programming The option bytes are programmed differently from normal user addresses. The number of option bytes is limited to 8 (4 for write protection, 1 for read protection, 1 for configuration and 2 for user data storage). After unlocking the FPEC, the user has to authorize the programming of the option bytes by writing the same set of KEYS (KEY1 and KEY2) to the FLASH_OPTKEYR register to set the OPTWRE bit in the FLASH_CR register (refer to Section 2.3.1 for key values). Then the user has to set the OPTPG bit in the FLASH_CR register and perform a half-word write operation at the desired Flash address. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |