MDK-ARM Keil, MDK-ARM Datasheet - Page 58

KIT REALVIEW MCU DEVELOPMENT

MDK-ARM

Manufacturer Part Number
MDK-ARM
Description
KIT REALVIEW MCU DEVELOPMENT
Manufacturer
Keil
Type
Compiler and IDEr
Datasheets

Specifications of MDK-ARM

For Use With/related Products
ARM MCUs
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
58
Adapting Flash Algorithms for RL-Flash
If RL-Flash does not provide direct support for your microcontroller or the
parallel Flash on your board, it is possible to adapt the programming algorithms,
used by the Keil ULINK USB-JTAG adapter family, to use them as drivers for
the Flash file system. The ULINK family Flash programming algorithms are
located in
For each microcontroller, the ULINK programming algorithms are included in
two files:
rename
This file contains the basic low-level programming algorithm required by the file
system. To make the programming algorithms compatible with the file system
you must make the following changes. First, change the include file name from:
to #include <File_Config.h>.
Next, rename the following functions:
from int Init (unsigned long adr, unsigned long clk, unsigned long fnc)
to
from int EraseSector (unsigned long adr)
to
and
int
to
Finally, delete the functions UnInit() and EraseChip().
Depending on the underlying Flash technology, you may need to modify the
program page function. This will depend on the write granularity of the Flash
memory. Generally, you can use the program page function without
modification if the Flash memory can be written with a word at a time.
However, you will need to add the packed attribute to the data buffer to allow for
unaligned buffer access. Change
to
If the write granularity of the Flash memory is larger than a word, i.e. the Flash
memory has a minimum write page size of 128 bytes, it will be necessary to
#include "..\FlashOS.H"
M16 (adr) = *((unsigned short *) buf);
M16 (adr) = *((__packed unsigned short *) buf);
int fs_Init (U32 adr, U32clk),
int fs_EraseSector (U32 adr),
ProgramPage (unsigned long adr, unsigned long sz, unsigned char *buf)
int fs_ProgramPage (U32 adr, U32 sz, U8 *buf).
FlashPrg.c
FlashPrg.c
C:\KEIL\ARM\FLASH
to
and
FS_FlashPrg.c
FlashDev.c
.
.
. Copy these files to a new directory and
Chapter 3. RL-Flash Introduction

Related parts for MDK-ARM