Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN1070 Datasheet(PDF) 4 Page - STMicroelectronics

Part # AN1070
Description  ST7 CHECKSUM SELFCHECKING CAPABILITY
PDF  10 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN1070 Datasheet(HTML) 4 Page - STMicroelectronics

  AN1070 Datasheet HTML 1Page - STMicroelectronics AN1070 Datasheet HTML 2Page - STMicroelectronics AN1070 Datasheet HTML 3Page - STMicroelectronics AN1070 Datasheet HTML 4Page - STMicroelectronics AN1070 Datasheet HTML 5Page - STMicroelectronics AN1070 Datasheet HTML 6Page - STMicroelectronics AN1070 Datasheet HTML 7Page - STMicroelectronics AN1070 Datasheet HTML 8Page - STMicroelectronics AN1070 Datasheet HTML 9Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 4 / 10 page
background image
4/10
ST7 CHECKSUM SELFCHECKING CAPABILITY
2 USING THE SAME ROUTINE WIHT A USER’S APPLICATION
2.1 FLASH
To use the safe routine, do the following:
s
Add the “Safe” routine to the application.
s
Select the “define” statement corresponding to the MCU device used in the application.
s
Change the ‘vectit’ segment depending on the device chosen.
s
Modify the reset vector to point to the Safe routine and not to the main one.
s
Include the right .inc mapping file at the beginning of the application.
s
Update the .bat file for the compilation.
s
Generate the .s19 file.
s
Use the emulator or the Development Kit with STVD7: first fill the emulator memory with $83
(for example): before opening the application workspace, go into Debug mode (without any
opened workspace), right-click on the Memory Window and select Fill Memory:
Fill the memory with 0x83 in 2 steps (because there are 2 sectors): first from 0xE000 to
0xEFFF, then from 0xF000 to 0xFFFF. You then just have to open your workspace and your
program will be written into the Flash area that has bee initialized with $83.
To calculate your application checksum:
s
Run the program the first time with the emulator in order to get the checksum: put a
breakpoint on the line after the “end1” label (see safe.asm in the zip file with this application
note).
s
Fill the CS0, CS1, CS2 variables (in constant.asm) with the obtained checksum value stored
in ch_sum (ch_sum, {ch_sum+1}, {ch_sum+2}).



Html Pages

1 2 3 4 5 6 7 8 9 10


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