| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
AN3155 bảng dữ liệu(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3155 bảng dữ liệu(HTML) 27 Page - STMicroelectronics |
|
27 / 37 page ![]() 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) |
|
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 |
| 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 |