поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN4221 датащи(PDF) 23 Page - STMicroelectronics

номер детали AN4221
подробное описание детали  I2C protocol used in the STM32 bootloader
PDF  51 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4221 датащи(HTML) 23 Page - STMicroelectronics

Back Button AN4221 Datasheet HTML 19Page - STMicroelectronics AN4221 Datasheet HTML 20Page - STMicroelectronics AN4221 Datasheet HTML 21Page - STMicroelectronics AN4221 Datasheet HTML 22Page - STMicroelectronics AN4221 Datasheet HTML 23Page - STMicroelectronics AN4221 Datasheet HTML 24Page - STMicroelectronics AN4221 Datasheet HTML 25Page - STMicroelectronics AN4221 Datasheet HTML 26Page - STMicroelectronics AN4221 Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 51 page
background image
DocID024055 Rev 2
23/51
AN4221
Bootloader command set
50
2.7
Erase memory command
The Erase Memory command allows the host to erase Flash memory pages or sectors
using a two-byte addressing mode. When the bootloader receives the Erase Memory
command, it transmits the ACK byte to the host. The bootloader then receives two bytes
(number of pages or sectors to be erased), the Flash memory page or sector codes (each of
which is coded on two bytes, MSB first) and a checksum byte (XOR of the sent bytes). If the
checksum is correct, the bootloader erases the memory and sends an ACK byte to the host;
otherwise, it sends a NACK byte to the host and the command is aborted.
Erase Memory command specifications
The bootloader receives one half-word (two bytes) that contains N, the number of pages or
sectors to be erased. For N = 0xFFFY (where Y is from 0 to F), a special erase is performed
(0xFFFF for global mass erase, 0xFFFE and 0xFFFD respectively for bank1 and bank2
mass erase).
Note:
Some products do not support the Mass Erase feature, in which case you can send the
erase command with the numbers of all pages or sectors instead.
Note:
Codes from 0xFFFC to 0xFFF0 are reserved.
For other values where 0
≤N < maximum number of pages or sectors, N + 1 pages or
sectors are erased.
The bootloader receives:
•
In the case of a special erase, one byte: the checksum of the previous bytes
•
0x00 for 0xFFFF, the global erase
If N+1 pages or sectors are erased, the bootloader receives (2 x (N + 1)) bytes, each half-
word of which contains a page or sector number that is coded on two bytes, with the MSB
first. Then all previous byte checksums are received in one byte.
Note:
No error is returned when performing erase operations on write-protected sectors.
The maximum number of pages or sectors is relative to the product, and thus should be
respected.
The host sends bytes to the STM32 as follows:
1.
Byte 1: 0x44
2.
Byte 2: 0xBB
3.
Wait for ACK
4.
Bytes 3-4:
–
Special erase (0xFFFx), OR
–
Number of pages or sectors to be erased (N+1 where: 0
≤N < Maximum number of
pages or sectors)
5.
Wait for ACK (if special erase is not requested)
6.
Remaining bytes:
–
Checksum of Bytes 3-4 in case of special erase (0x00), OR
–
(2 x (N + 1)) bytes (page numbers or sectors coded on two bytes MSB first) and
then the checksum for bytes 3-4 and all the following bytes).
7.
Wait for ACK



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 38 39 40 41 42 43 44 45 46 47 48 49 50 51


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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