|
|||||||||||
Technical Support On-Line Manuals RL-ARM User's Guide (MDK v4) ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Flash DriverFlash driver describes the flash programming functions for an embedded parallel Flash. The functions are located in the file FS_FlashPrg.c of the folder \ARM\RL\FlashFS\Flash\device_family. The driver control block structure is defined in File_Config.h as follows: /* Embedded Flash Device driver */ typedef struct { BOOL (*Init) (U32 adr, U32 clk); BOOL (*UnInit) (void); BOOL (*ReadData) (U32 adr, U32 sz, U8 *buf); /* Optional, NULL for memory-mapped Flash */ BOOL (*ProgramPage) (U32 adr, U32 sz, U8 *buf); BOOL (*EraseSector) (U32 adr); BOOL (*EraseChip) (void); /* Optional, NULL if not existing */ } const EFS_DRV; Developers can adapt the code of the following functions:
Note
An alternative to writing a new Flash Driver is to convert an
exiting ULINK Flash programming algorithm. Refer to Converting FlashPrg.c for
detailed instructions.
| ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.