MDK-ARM Keil, MDK-ARM Datasheet - Page 51

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
The file system buffers data in dynamically allocated memory, so we must
reserve heap space in the startup code.
In
want to use and set its parameters. If
several drives are used, a default drive
can also be defined. It is possible to
enable the file system volumes and place
them on different physical media,
including internal/external parallel Flash
memory, SPI EEPROM, internal or
external parallel SRAM, and MultiMedia/SD memory cards. When configured,
each drive has a default drive letter as shown in the table.
We will discuss each of these formats in turn, but for now we will define a file
system in on-chip RAM. This is quick and simple to configure and can be
debugged in both real target hardware via a ULINK
simulation. Once the project has been defined and all of the modules have been
added, we simply need to configure the base address of the file system in RAM,
its size in memory and the number of sectors. The file system may be located in
any valid region of RAM and has a minimum size of 16K. The number of
sectors that you have depends on how you intend to use the file system. If you
intend to have a small number of large files, then select a small sector number.
If, on the other hand, you expect to create a large number of small files, then
select a large number of sectors. You can select between 8, 16, 32, 64, and 128
sectors per volume drive. Once configured, we can add the necessary code to
initialize the volume for use within our application code.
if (fcheck ("R:") != 0)
}
The fcheck() function can be used to determine if there is a valid formatted
volume present. The fformat() function can be used at any time to
format/reformat the drive. After formatting all the drive memory contents will be
set to
Exercise: First File System
This first file system project guides you through setting up a RAM-based file
system. This can run on real hardware or within the µVision Simulator.
File_Config.c
if (fformat ("R:") != 0)
}
0x00
.
, enable the drive type we
{
{
// check for a formatted drive
// format the drive
// error handling code
®
USB-JTAG Adapter and in
51

Related parts for MDK-ARM