HIS
HIS flash driver v130.doc
Version 1.3
Date
06.06.2002
© 2003 DaimlerChrysler AG
Distribution allowed for all HIS members.
Copyright protection enforced.
Page2/20
Contents
1 INTENTION OF THIS DOCUMENT ....................................................................................................... 3
2 DELIVERABLES ........................................................................................................................................ 3
3 FLASH DRIVER HANDLING................................................................................................................... 4
3.1 E
XECUTION FROM RAM ............................................................................................................................ 4
3.2 M
EMORY LAYOUT...................................................................................................................................... 5
3.3 S
OFTWARE / HARDWARE COMPATIBILITY ................................................................................................... 6
3.4 A
CCESSING THE FLASH DRIVER ROUTINES .................................................................................................. 7
3.5 S
UPPORT FOR "SMALL" MICROCONTROLLERS............................................................................................. 7
4 APPLICATION PROGRAMMING INTERFACE .................................................................................. 9
4.1 G
ENERIC PROGRAMMING INTERFACE ......................................................................................................... 9
4.2 C
ONTROLLER SPECIFIC PROGRAMMING INTERFACE .................................................................................. 10
4.3 P
ARAMETER STRUCTURE FOR ALL FLASH DRIVER ROUTINES .................................................................... 11
4.4 P
ARAMETER CHECKING............................................................................................................................ 12
4.5 W
ATCHDOG TRIGGERING.......................................................................................................................... 13
4.6 D
ATA TYPES............................................................................................................................................. 13
4.6.1 tFlashResult................................................................................................................................... 13
4.6.2 tFlashAddress ................................................................................................................................ 13
4.6.3 tFlashLength.................................................................................................................................. 13
4.6.4 tFlashData..................................................................................................................................... 14
4.6.5 tFlashParam.................................................................................................................................. 14
4.7 F
UNCTIONAL INTERFACE .......................................................................................................................... 14
4.7.1 Initialization .................................................................................................................................. 14
4.7.2 De-Initialization............................................................................................................................. 14
4.7.3 Erase.............................................................................................................................................. 15
4.7.4 Write .............................................................................................................................................. 15
5 APPENDIX................................................................................................................................................. 16
5.1 A
PPENDIX A: IMPLEMENTATION PROPOSAL .............................................................................................16
5.1.1 Type definitions.............................................................................................................................. 16
5.1.2 Flash driver API ............................................................................................................................ 17
5.1.3 Access macros................................................................................................................................17
5.1.4 Version information (example) ...................................................................................................... 17
5.1.5 Error codes.................................................................................................................................... 18
5.2 L
ITERATURE............................................................................................................................................. 19
5.3 R
EVISION HISTORY ................................................................................................................................... 20