Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN2078 Datasheet(PDF) 3 Page - STMicroelectronics

Part # AN2078
Description  STR7 In-Application Programming using UART
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2078 Datasheet(HTML) 3 Page - STMicroelectronics

  AN2078 Datasheet HTML 1Page - STMicroelectronics AN2078 Datasheet HTML 2Page - STMicroelectronics AN2078 Datasheet HTML 3Page - STMicroelectronics AN2078 Datasheet HTML 4Page - STMicroelectronics AN2078 Datasheet HTML 5Page - STMicroelectronics AN2078 Datasheet HTML 6Page - STMicroelectronics AN2078 Datasheet HTML 7Page - STMicroelectronics AN2078 Datasheet HTML 8Page - STMicroelectronics AN2078 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 3 / 13 page
background image
AN2078
IAP overview
3/13
1
IAP overview
1.1
Principle
The IAP driver must be programmed by the user in the Flash base address (0x00) via JTAG
using a flasher toolset.
Using the UART, the IAP driver loads a binary file from the HyperTerminal to the STR7xx
internal Flash, and then jumps to execute it.
1.2
IAP driver description
The following table shows the IAP driver code size for each STR7xx MCU.
The IAP driver contains a set of source files:
●
main.c: where the UART initialization and PLL configuration are set. Then, a main
menu is executed from the common.c file.
●
common.c: contains display functions and the main menu routine. The main menu
gives the choice between loading a new binary file and executing the binary file already
loaded.
●
ymodem.c and download.c: they allow all data to be received from the HyperTerminal
application (using the YMODEM protocol1)), then loaded into STR7 internal RAM. In
the event of a failure in data receival, the ‘Failed to receive the file’ error message is
displayed on the HyperTerminal window. However, if successful, the data is then
programmed into internal Flash at the appropriate address. A comparison between
internal RAM and internal Flash contents is performed to check the data intergrity. If
there is any discrepency, the ‘Verification failed’ error message is displayed on
HyperTerminal window. Other error messages are also displayed when the image size
is higher than the allowed space memory and when there is an abort by the user.
Note:
1
Ymodem protocol sends data in 1024-byte blocks. A check for errors in data blocks
transmitted to the STR7xx Internal RAM is applied: A comparison between the transmitted
and received data is achieved. Blocks received unsuccessfully are acknowledged with a
NAK (Negative Acknowledgement). For more details about the Ymodem protocol, refer to
existing documentation.
●
Some STR7xx Standard library and Flash library files.
A pin connected to a push button is used to select between jumping to the user application
and executing the IAP for reprogramming purpose:
●
Push button is not pressed at reset: jump to the user application
●
Push button is pressed at reset: the IAP main menu is displayed
Figure 1 shows the IAP flowchart.
STR71x
STR73x
STR75x
7.2 Kbytes
8.3 Kbytes
5.8 Kbytes



Html Pages

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


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