MDK-ARM Keil, MDK-ARM Datasheet - Page 57

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
Getting Started: Building Applications with RL-ARM
// Flash sector definitions in Flash_Page.c
//
#define FLASH_DEVICE
#define FL_NSECT 2
// File_Config.c as displayed as in the µVision Configuration Wizard
//
Traget device Base address
Device Size in bytes
Each physical Flash sector used by the file system must be included in the
FLASH_DEVICE definition. Each sector definition includes the size of the
sector and its address as an offset from the target device base address that is set in
file
32KB boundary of size 64KB. In the physical Flash memory on the
microcontroller, this occupies two Flash sectors each of 32KB. Finally, we must
set the FL_NSECT define to the number of physical Flash sectors used by the file
system in this case two.
Once you have added these files to your project and made the necessary
configuration changes, the Flash file system is ready to use. The function calls
that we used for the RAM-based system work in exactly the same way for the
Flash-based system. Before using the Flash-based file system, the application
code must call finit() before performing any other file system operations.
void main (void)
}
Exercise: Flash File System
This exercise demonstrates how to locate a file system in the internal Flash
memory of an ARM processor-based microcontroller.
DFB (0x008000, 0x000000),
DFB (0x008000, 0x008000),
finit ();
...
config.h
. In the example above we are defining a file system located at the
{
0x0000 8000
0x0001 0000
\
\
\
/* Sector size, Start address */
/* Sector size, Start address */
57

Related parts for MDK-ARM