| 数据搜索系统,热门电子元器件搜索 |
|
AN3262 数据表(PDF) 4 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3262 数据表(HTML) 4 Page - STMicroelectronics |
|
4 / 27 page ![]() Bootloader command set AN3262 4/27 Doc ID 17845 Rev 2 3 Bootloader command set Table 1 lists commands supported by the OTA bootloader. A detailed command-by- command protocol description follows. Communication safety All communications from the Host to the device are verified by: ● Checksum: received blocks of data bytes are XORed. A byte containing the computed XOR of all previous bytes is added to the end of each communication (checksum byte). By XORing all received bytes, data + checksum, the result at the end of the packet must be 0x00. ● For each command, the host sends a byte and its complement (XOR = 0x00). Each packet is either accepted (ACK) or discarded (NACK): ● ACK = 0x79 ● NACK = 0x1F Table 1. OTA bootloader commands Command Command code Command description GET (1) 1. This command is supported by unicast and broadcast packets, while all the other are unicast only. 0x00 Gets version number and list of commands allowed. GET VERSION (1) 0x01 Gets bootloader version and Read Protection status of the Flash memory. GET ID (1) 0x02 Gets chip ID of device. ERASE 0x43 Erases memory pages of selected device. WRITE MEMORY 0x31 Writes up to 96 bytes in memory of selected device. WRITE INCREMENTAL MEMORY (2) 2. The WRITE INCREMENTAL MEMORY command is the only one not included in the original USART bootloader command set. 0x36 Writes up to 96 bytes in memory of selected device incrementing next write address on device automatically. READ MEMORY 0x11 Reads up to 96 bytes of memory starting from a user- specified address. GO 0x21 Starts the code at a given location for a given device. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |