数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

PM0063 数据表(PDF) 13 Page - STMicroelectronics

部件名 PM0063
功能描述  STM32F100xx value line Flash programming
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0063 数据表(HTML) 13 Page - STMicroelectronics

Back Button PM0063 Datasheet HTML 9Page - STMicroelectronics PM0063 Datasheet HTML 10Page - STMicroelectronics PM0063 Datasheet HTML 11Page - STMicroelectronics PM0063 Datasheet HTML 12Page - STMicroelectronics PM0063 Datasheet HTML 13Page - STMicroelectronics PM0063 Datasheet HTML 14Page - STMicroelectronics PM0063 Datasheet HTML 15Page - STMicroelectronics PM0063 Datasheet HTML 16Page - STMicroelectronics PM0063 Datasheet HTML 17Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 30 page
background image
PM0063
Reading/programming the STM32F100xx embedded Flash memory
Doc ID 16211 Rev 2
13/30
Also a bus error is returned on a wrong key sequence. This is done after the first write cycle
if KEY1 does not match, or during the second write cycle if KEY1 has been correctly written
but KEY2 does not match. The FPEC block and FLASH_CR register can be locked by the
user’s software by writing the LOCK bit of the FLASH_CR register to 1. In this case, the
FPEC can be unlocked by writing the correct sequence of keys into FLASH_KEYR.
2.3.3
Main Flash memory programming
The main Flash memory can be programmed 16 bits at a time. The program operation is
started when the CPU writes a half-word into a main Flash memory address with the PG bit
of the FLASH_CR register set. Any attempt to write data that are not half-word long will
result in a bus error response from the FPEC. If a read/write operation is initiated during
programming, (BSY bit set), the CPU stalls until the ongoing main Flash memory
programming is over.
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
Read FLASH_CR_LOCK
FLASH_CR_LOCK
= 1
Yes
No
Yes
No
Perform unlock sequency
Write FLASH_CR_PG to 1
Perform half-word write at the
desired address
FLASH_SR_BSY
= 1
Check the programmed value
by reading the programmed
address
ai14307b



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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