Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

PM0073 Datasheet(PDF) 15 Page - STMicroelectronics

Part # PM0073
Description  STM32Wxxx Flash memory microcontrollers
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0073 Datasheet(HTML) 15 Page - STMicroelectronics

Back Button PM0073 Datasheet HTML 11Page - STMicroelectronics PM0073 Datasheet HTML 12Page - STMicroelectronics PM0073 Datasheet HTML 13Page - STMicroelectronics PM0073 Datasheet HTML 14Page - STMicroelectronics PM0073 Datasheet HTML 15Page - STMicroelectronics PM0073 Datasheet HTML 16Page - STMicroelectronics PM0073 Datasheet HTML 17Page - STMicroelectronics PM0073 Datasheet HTML 18Page - STMicroelectronics PM0073 Datasheet HTML 19Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 15 / 34 page
background image
PM0073
Reading/programming the STM32Wxxx embedded Flash memory
Doc ID 17766 Rev 5
15/34
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
the 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:
1.
Enable the FPEC clock.
2.
Check that no main Flash memory operation is ongoing by checking the BSY bit in the
FLASH_SR register.
3.
Set the PG bit in the FLASH_CR register.
4.
Perform the data write (half-word) at the desired address.
5.
Wait for the BSY bit to be reset.
6.
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.
2.2.4
Flash memory erase
The Flash memory can be erased page by page or completely (Mass Erase).
Page Erase
A page of the Flash memory can be erased using the Page Erase feature of the FPEC. To
erase a page, the procedure below should be followed:
1.
Enable the FPEC clock.
2.
Check that no Flash memory operation is ongoing by checking the BSY bit in the
FLASH_CR register.
3.
Set the PER bit in the FLASH_CR register.
4.
Program the FLASH_AR register to select a page to erase.
5.
Set the STRT bit in the FLASH_CR register.
6.
Wait for the BSY bit to be reset.
7.
Read the erased page and verify.



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 31 32 33 34


Datasheet Download

Go To PDF Page


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


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