Electronic Components Datasheet Search
  English  ▼

X  

PM0020 Datasheet(PDF) 40 Page - STMicroelectronics

Part # PM0020
Description  STR91xFA Flash programming manual
PDF  87 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

PM0020 Datasheet(HTML) 40 Page - STMicroelectronics

Back Button PM0020 Datasheet HTML 36Page - STMicroelectronics PM0020 Datasheet HTML 37Page - STMicroelectronics PM0020 Datasheet HTML 38Page - STMicroelectronics PM0020 Datasheet HTML 39Page - STMicroelectronics PM0020 Datasheet HTML 40Page - STMicroelectronics PM0020 Datasheet HTML 41Page - STMicroelectronics PM0020 Datasheet HTML 42Page - STMicroelectronics PM0020 Datasheet HTML 43Page - STMicroelectronics PM0020 Datasheet HTML 44Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 40 / 87 page
background image
STR91xFA Flash memory
PM00020
40/87
1.16
STR91x in-application programming (IAP)
An important requirement for most Flash-based systems is the ability to update firmware
while the system is installed in the end product. This is referred to as In-Application
Programming (IAP).
STR91x MCUs have the capability of running user-specific firmware to perform In
Application Programming of the MCU embedded Flash memory. This feature allows the use
of any type of communication protocol for the reprogramming process (for example, CAN,
UART, USB etc …).
The principle is to program the user application in Bank0 using code located in Bank1.
The diagram below outlines general STR91x IAP guidelines.
Figure 2.
IAP general flowchart
1.
Bank1 is remapped in hardware to address 0x00 and Bank0 is remapped in hardware to 0x80000 (if Bank0
size is 256 or 512 Kbytes) and to 0x200000 (if Bank0 size is 1 or 2 Mbytes). The base address must be at
a 32 Kbyte boundary for Bank1. For Bank0, it must be at a 512 Kbyte boundary or at a 2 Mbyte boundary.
2.
The condition can be, for example, a pin level allowing either to execute the IAP driver located in Bank1 or
to jump to the user application located in Bank0 after being loaded using IAP.
3.
If the user application doesn't contain interrupts, there is no problem. A problem is encountered when the
user application (remapped to the new address) contains interrupts because the interrupt vector is located
at address 0x00. Consequently, interrupts must be redirected to Bank0.
False
True
Remap Bank1 and Bank0 in hardware
using the CAPS tool1)
Load the IAP driver in Bank 1
using a toolset
Condition2)
Execute the IAP driver
to reprogram Bank0
Jump to new Bank0 base
address to execute the
application program3)
Application program



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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87


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