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

X  

PM0212 数据表(PDF) 9 Page - STMicroelectronics

部件名 PM0212
功能描述  How to program the STM8TL5xxx Flash program memory and data EEPROM
PDF  22 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

PM0212 数据表(HTML) 9 Page - STMicroelectronics

Back Button PM0212 Datasheet HTML 5Page - STMicroelectronics PM0212 Datasheet HTML 6Page - STMicroelectronics PM0212 Datasheet HTML 7Page - STMicroelectronics PM0212 Datasheet HTML 8Page - STMicroelectronics PM0212 Datasheet HTML 9Page - STMicroelectronics PM0212 Datasheet HTML 10Page - STMicroelectronics PM0212 Datasheet HTML 11Page - STMicroelectronics PM0212 Datasheet HTML 12Page - STMicroelectronics PM0212 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 22 page
background image
PM0212
Memory protection strategy
Doc ID 022351 Rev 2
9/22
3.1
Readout protection
On STM8TL5xxx microcontrollers, the readout protection is set by writing any value except
for 0xAA in the ROP option byte. It is disabled by reprogramming the ROP option byte with
0xAA, and resetting the device. To unprotect the device, the ROP must be written 2 times:
the first writing, with any value, launches a global erase which includes the option byte; the
second writing, AA, unprotects the device, and then the AA value remains in the ROP byte.
Please note the EOP should be checked each time.
The readout protection can only be disabled in ICP/SWIM mode.
When the readout protection is selected, reading or modifying the Flash program memory in
ICP mode (using the SWIM interface) is forbidden. The data EEPROM memory is also
protected against read and write access through ICP.
Erasing the ROP option byte to disable the readout protection causes the Flash program
memory, the DATA area and the option bytes to be erased.
Even though no protection can be considered as totally unbreakable, the readout protection
feature provides a very high level of protection for general purpose microcontrollers. Of
course, a software that allows the user to dump the Flash program memory content make
this readout protection useless. Table 5: Memory access versus programming method
describes possible accesses to each memory areas versus the different modes and readout
protection settings.
3.2
Proprietary code area protection
The memory pages containing peripherals software libraries must be located in the
proprietary code area (PCODE).
The size of the PCODE area can be configured through the PCODE option byte
(PCODESIZE) in ICP/SWIM mode. Refer to Table 2 for details on PCODE minimum and
maximum size. Once programmed, the PCODE option byte cannot be erased, the size of
the PCODE area remains fixed and its content protected from read and write operations
whatever the mode.
Note:
Values 1 and 2 do not protect any address, but the PCODE option byte is write-protected.
Except for the interrupt vectors which can be read directly, the PCODE area can be read
only through TRAP interrupt in ICP/SWIM (with readout protection disabled), user and IAP
mode.
Table 2.
PCODE size
PCODESIZE[0:7]
Interrupt vector table
Protected page
Protected addresses
0
All interrupt vectors can be
written
0None
3
Only TRAP is write-protected
1
0x8080-0x80BF
4
Only TRAP is write-protected
2
0x8080-0x80FF
...
0xFF
Only TRAP is write-protected
253
0x8080-0xBFBF



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22


数据表 下载

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