MDK-ARM Keil, MDK-ARM Datasheet - Page 62

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
62
Serial Flash
The file system can also be placed on a serial
Flash connected to the SPI port. The same
SPI drivers used for the memory card can be
reused to provide low-level access to the
Flash memory. However, unlike the
SD/MMC memory, there is no common
communication protocol. Therefore, we
need to provide an intermediate driver that
provides the necessary protocol commands to communicate with the SPI
memory.
The protocol file is very similar to the parallel Flash driver files and can be found
in
Here select the directory named after the Flash device you intend to use and copy
the contents to your project directory. The files contained in the device directory
are:
The
the
customized to the Flash device. The functions in the
communicate with the SPI device through the low-level SPI drivers. However,
an additional simple function is required to control the SPI slave select line.
Since the implementation of this function will depend on the microcontroller you
are using and your hardware layout, you will need to implement this function
yourself. The pseudo-code for this function is shown below.
void spi_ss (U32 ss)
}
C:\KEIL\ARM\RL\FLASHFS\FLASH
if (ss)
} else {
}
FS_SPI_FlashPrg.c
FS_SPI_FlashDev.h
FS_SPI_FlashDev.h
Set Slave select high
Set Slave select low
{
module contains the erase and programming algorithms
and
file contains a description of the physical Flash sectors and
{
FS_SPI_FlashPrg.c
.
.
FS_SPI_FlashPrg.c
Chapter 3. RL-Flash Introduction
file

Related parts for MDK-ARM