Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1576 Datasheet(PDF) 3 Page - STMicroelectronics

Part # AN1576
Description  The In-Application Programming
PDF  15 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1576 Datasheet(HTML) 3 Page - STMicroelectronics

  AN1576 Datasheet HTML 1Page - STMicroelectronics AN1576 Datasheet HTML 2Page - STMicroelectronics AN1576 Datasheet HTML 3Page - STMicroelectronics AN1576 Datasheet HTML 4Page - STMicroelectronics AN1576 Datasheet HTML 5Page - STMicroelectronics AN1576 Datasheet HTML 6Page - STMicroelectronics AN1576 Datasheet HTML 7Page - STMicroelectronics AN1576 Datasheet HTML 8Page - STMicroelectronics AN1576 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 15 page
background image
3/15
XFLASH DRIVER
1.1.3 User functions
The XFlash driver allows user specific functions to be executed while an XFlashWriteBlock
function is executing. Writing 256 bytes requires several tenths of a millisecond during which
time you may have to manage some tasks: A typical example is to refresh the watchdog, in
order to avoid a Reset during XFlash reprogramming.
For this purpose the driver provides 1 function named UserWhileWriteBlock that you have to
define in your firmware (take care to not use the RAM area with the driver variables).
Finally, the Interrupts are reenabled (RIM assembler instruction) by the driver before the exe-
cution of the UserWhileWrite function.
1.2 DRIVER ARCHITECTURE
1.2.1 Driver principle
When called by the user firmware in Flash Sector 0, the XflashWriteBlock executes the fol-
lowing sequence:
– Load the RAM Page 0 with a programming algorithm
– Execute this programming algorithm from RAM
– Return to the user firmware in Flash Sector 0, just after the XflashWriteBlock instruction.
At this point the RAM area used by the programming algorithm is released and is available to
the user firmware.
1.2.2 Memory management
The programming algorithm requires 20 bytes and is positioned at the end of RAM Page 0.
In addition, 7 bytes in RAM Page 0 are reserved for the IAP driver internal variables.
The location of the 27 bytes (algorithm plus variables) is defined in the Xflash.h file by the pa-
rameter STACK_END: The location is then 0xE4h-0xFFh for a ST72F264 MCU.
It is important to note these 27 bytes are used only during the XFlashWriteBlock execution:
You can still use this area in his application firmware (except in the UserWhileWriteBlock func-
tion) as long as he accepts they are overwritten during the IAP process.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


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