Download Data Flash Access Library
Transcript
Table of Contents Chapter 1 Introduction ....................................................................... 10 Chapter 2 FDL Architecture ............................................................... 11 2.1 Flash Infrastructure ....................................................................................... 11 2.1.1 2.1.2 2.1.3 2.2 2.3 2.4 2.5 Layered software architecture...................................................................... 12 Data Flash Pools............................................................................................ 13 Safety Considerations ................................................................................... 14 Bit error checks ............................................................................................. 14 Chapter 3 3.1 User operation request structure...................................................................................21 Status and Error Codes ..................................................................................................23 FAL_CMD_ERASE ...........................................................................................................23 FAL_CMD_BLANKCHECK ..............................................................................................24 FAL_CMD_BITCHECK .....................................................................................................26 FAL_CMD_WRITE ............................................................................................................27 Library Functions .......................................................................................... 29 4.4.1 4.4.2 4.4.3 4.4.4 4.4.5 Chapter 5 5.1 5.2 5.3 User Interface (API) ........................................................... 19 Pre-compile configuration ............................................................................ 19 Run-time configuration ................................................................................. 19 Data Types ..................................................................................................... 21 4.3.1 4.3.2 4.3.3 4.3.4 4.3.5 4.3.6 4.4 Overview ...........................................................................................................................15 Delivery package directory structure and files ............................................................16 FDL Linker sections ...................................................................................... 18 MISRA Compliance ........................................................................................ 18 Chapter 4 4.1 4.2 4.3 FDL Implementation .......................................................... 15 File structure .................................................................................................. 15 3.1.1 3.1.2 3.2 3.3 Complementary Read Flash ...........................................................................................11 Dual operation..................................................................................................................11 Flash granularity ..............................................................................................................12 Initialization ......................................................................................................................29 Suspend / Resume ..........................................................................................................30 Standby / Wakeup ............................................................................................................32 Operational functions .....................................................................................................35 Administrative functions ................................................................................................39 Integration into the user application ................................ 41 First steps ...................................................................................................... 41 Application sample ........................................................................................ 41 Special considerations ................................................................................. 41 5.3.1 5.3.2 5.3.3 Function reentrancy ........................................................................................................41 Task switch, context change and synchronization between functions .....................41 Concurrent Data Flash accesses ...................................................................................41 R01US0045ED Rev. 1.01 User Manual 8