English
Language : 

LM3S613 Datasheet, PDF (97/409 Pages) List of Unclassifed Manufacturers – Microcontroller
LM3S613 Data Sheet
7.3.2
Flash Programming
The Stellaris devices provide a user-friendly interface for flash programming. All erase/program
operations are handled via three registers: FMA, FMD and FMC.
The flash is programmed using the following sequence:
1. Write source data to the FMD register.
2. Write the target address to the FMA register.
3. Write the flash write key and the WRITE bit (a value of 0xA4420001) to the FMC register.
4. Poll the FMC register until the WRITE bit is cleared.
To perform an erase of a 1-KB page:
1. Write the page address to the FMA register.
2. Write the flash write key and the ERASE bit (a value of 0xA4420002) to the FMC register.
3. Poll the FMC register until the ERASE bit is cleared.
To perform a mass erase of the flash:
1. Write the flash write key and the MERASE bit (a value of 0xA4420004) to the FMC register.
2. Poll the FMC register until the MERASE bit is cleared.
7.4 Register Map
Table 7-2 lists the Flash memory and control registers. The offset listed is a hexadecimal
increment to the register’s address, relative to the Flash control base address of 0x400FD000,
except for FMPRE and FMPPE, which are relative to the System Control base address of
0x400FE000.
Table 7-2. Flash Register Map
Offset Name
0x130a
0x134a
0X140a
FMPRE
FMPPE
USECRL
Reset
0xFFFF
0xFFFF
0x31
Type Description
R/W0
R/W0
R/W
Flash memory read protect
Flash memory program protect
USec reload
See
page
99
99
100
0x000 FMA
0x00000000 R/W Flash memory address
101
0x004 FMD
0x00000000 R/W Flash memory data
102
0x008 FMC
0x00000000 R/W Flash memory control
103
0x00C FCRIS
0x00000000
RO Flash controller raw interrupt status
105
0x010 FCIM
0x00000000 R/W Flash controller interrupt mask
106
0x014 FCMISC
0x00000000 R/W1C Flash controller masked interrupt status and clear
107
a. Relative to System Control base address of 0x400FE000.
October 8, 2006
97
Preliminary