Electronic Components Datasheet Search
  Indian  ▼
ALLDATASHEET.IN

X  

AN1577 Datasheet(PDF) 9 Page - STMicroelectronics

Part # AN1577
Description  This application note presents the implementation
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1577 Datasheet(HTML) 9 Page - STMicroelectronics

Back Button AN1577 Datasheet HTML 5Page - STMicroelectronics AN1577 Datasheet HTML 6Page - STMicroelectronics AN1577 Datasheet HTML 7Page - STMicroelectronics AN1577 Datasheet HTML 8Page - STMicroelectronics AN1577 Datasheet HTML 9Page - STMicroelectronics AN1577 Datasheet HTML 10Page - STMicroelectronics AN1577 Datasheet HTML 11Page - STMicroelectronics AN1577 Datasheet HTML 12Page - STMicroelectronics AN1577 Datasheet HTML 13Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 9 / 30 page
background image
9/30
DEVICE FIRMWARE UPGRADE (DFU) IMPLEMENTATION IN ST7 USB DEVICES
Figure 2. DFU Mode Entry Mechanism
3.3 FLASH SECTOR MANAGEMENT
In order for the DFU mode entry mechanism described above to function correctly, it is neces-
sary to place the firmware routines in the right sectors.
Basically, Sector 0 contains all routines that must be preserved during DFU erasing and pro-
gramming. It principally contains the USB standard Library and the DFU layer routines.
Note: Application routines or constants can also be present in this sector, but in this case they
cannot be updated in DFU mode.
The Sectors 1 and 2 contain all routines and data that can be erased or changed in DFU
mode. They contain the Application routines and the “jump table” (see below).
The DFU_DETACH request decoding must also be present in these sectors. We can imagine
a “one shot DFU”, where the DFU_DETACH request decoding is not implemented in the new
firmware just downloaded (software protection). The only way to recover is by using a Hard-
ware switch (see Figure 2).
3.3.1 SECTOR 1 AND 2 INTEGRITY CHECK
As we have seen previously, we need to check if Sectors 1 and 2 are correct before calling the
main application routine. This will insure that these sectors are not corrupted due bad erasing
or bad programming. This check is not described in the DFU specification. and it can be easily
removed from the DFU protocol.
Sectors 1 & 2
DFU Process
Main Application
Main DFU
MCU Reset
are OK ?
Yes
No
DFU_Detach
Forced DFU Mode Entry
Sector 0
Sectors
1 and 2
Code, Checksum,
CRC, ...
(Controlled by hardware switch)



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


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