công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3155 bảng dữ liệu(PDF) 27 Page - STMicroelectronics

tên linh kiện AN3155
Giải thích chi tiết về linh kiện  USART protocol used in the STM32 bootloader
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3155 bảng dữ liệu(HTML) 27 Page - STMicroelectronics

Back Button AN3155 Datasheet HTML 23Page - STMicroelectronics AN3155 Datasheet HTML 24Page - STMicroelectronics AN3155 Datasheet HTML 25Page - STMicroelectronics AN3155 Datasheet HTML 26Page - STMicroelectronics AN3155 Datasheet HTML 27Page - STMicroelectronics AN3155 Datasheet HTML 28Page - STMicroelectronics AN3155 Datasheet HTML 29Page - STMicroelectronics AN3155 Datasheet HTML 30Page - STMicroelectronics AN3155 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 37 page
background image
DocID17066 Rev 6
27/37
AN3155
Bootloader command set
The host sends the bytes to the STM32F1xxx as follows:
3.9
Write Protect command
The Write Protect command is used to enable the write protection for some or all Flash
memory sectors. When the bootloader receives the Write Protect command, it transmits the
ACK byte to the host. After the transmission of the ACK byte, the bootloader waits for the
number of bytes to be received (sectors to be protected) and then receives the Flash
memory sector codes from the application.
At the end of the Write Protect command, the bootloader transmits the ACK byte and
generates a system Reset to take into account the new configuration of the option byte.
Note:
Refer to STM32 product datasheets and to the “STM32 microcontroller system memory
boot mode” application note (AN2606) for more details about the sector size for the device
you are using.
The Write Protect command sequence is as follows:
•
the bootloader receives one byte that contains N, the number of sectors to be write-
protected – 1 (0
≤ N ≤ 255)
•
the bootloader receives (N + 1) bytes, each byte contains a sector code
Note:
The total number of sectors and the sector number to be protected are not checked, this
means that no error is returned when a command is passed with a wrong number of sectors
to be protected or a wrong sector number.
If a second Write Protect command is executed, the Flash memory sectors that had been
protected by the first command become unprotected and only the sectors passed within the
second Write Protect command become protected.
Byte 1:
0x44
Byte 2:
0xBB
Wait for ACK
Bytes 3-4:
- Special erase (0xFFFF, 0xFFFE or 0xFFFD)
OR
- Number of pages to be erased (N+1 where: 0
≤ N < Maximum number of
pages).
Remaining
bytes
- Checksum of Bytes 3-4 in case of special erase (0x00 if 0xFFFFor 0x01
if 0xFFFE or 0x02 if 0xFFFD).
OR
- (2 x (N + 1)) bytes (page numbers coded on two bytes MSB first) and
then the checksum for bytes 3-4 and all the following bytes)



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 35 36 37


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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