Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3156 Datasheet(PDF) 19 Page - STMicroelectronics

Part # AN3156
Description  USB DFU protocol used in the STM32 bootloader
PDF  26 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3156 Datasheet(HTML) 19 Page - STMicroelectronics

Back Button AN3156 Datasheet HTML 15Page - STMicroelectronics AN3156 Datasheet HTML 16Page - STMicroelectronics AN3156 Datasheet HTML 17Page - STMicroelectronics AN3156 Datasheet HTML 18Page - STMicroelectronics AN3156 Datasheet HTML 19Page - STMicroelectronics AN3156 Datasheet HTML 20Page - STMicroelectronics AN3156 Datasheet HTML 21Page - STMicroelectronics AN3156 Datasheet HTML 22Page - STMicroelectronics AN3156 Datasheet HTML 23Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 19 / 26 page
background image
DocID017068 Rev 4
19/26
AN3156
DFU_DNLOAD request commands
25
The allowed locations for address pointer values are valid memory addresses (see note) in
the internal Flash memory, embedded RAM, system memory and option bytes.
Note:
1
Refer to Section 4: DFU_UPLOAD request commands for more details about the valid
memory addresses for the device you are using.
2
The Set Address Pointer command is allowed and executed when the Flash Read
Protection is enabled or disabled.
Figure 8. Set Address Pointer command: Device side
5.3
Erase command
The Erase command is selected when wValue = 0 and the first byte of the buffer sent by the
host is 0x41. The buffer length may be 5 bytes (the four remaining bytes are the address
bytes, LSB first) for the page erase operation or only 1 byte (only the command byte) for the
Mass erase operation.
The host sends a DFU_DNLOAD request with the above parameters to erase one page of
the internal Flash memory or to perform a mass erase of this Flash memory.
The device receives the bytes as follows (page erase):
Or, if a 1-byte command is received:
The STM32 receives the bytes as follows (Mass Erase):
After sending an Erase command, the host has to send a DFU_GETSTATUS request.
Byte 1:
0x41
- Erase command
Byte 2:
A[7:0]
- LSB of the page address
Byte 3:
A[15:8]
- Second byte of the page address
Byte 4:
A[22:16] - Third byte of the page address
Byte 4:
A[31:23] - MSB of the page address
Byte 1:
0x41
- Erase command



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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