LM3S308 Luminary Micro, Inc, LM3S308 Datasheet - Page 114

no-image

LM3S308

Manufacturer Part Number
LM3S308
Description
Lm3s308 Arm Microcontroller
Manufacturer
Luminary Micro, Inc
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
LM3S308
Manufacturer:
DSP
Quantity:
648
Part Number:
LM3S308-EQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S308-EQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S308-IGZ25-C2
Manufacturer:
AV
Quantity:
241
Company:
Part Number:
LM3S308-IGZ25-C2
Quantity:
982
Part Number:
LM3S308-IQN25
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S308-IQN25-C2
Manufacturer:
TI
Quantity:
202
Part Number:
LM3S308-IQN25-C2
Manufacturer:
Texas Instruments
Quantity:
10 000
Part Number:
LM3S308-IQN25-C2T
Manufacturer:
Texas Instruments
Quantity:
10 000
Internal Memory
7.3.2
7.3.2.1
7.3.2.2
7.3.2.3
7.4
Table 7-2. Flash Register Map
114
Flash Registers (Flash Control Offset)
Offset
0x000
0x004
Name
FMA
FMD
}
Flash Programming
The Stellaris
operations are handled via three registers: FMA, FMD, and FMC.
To program a 32-bit word
1.
2.
3.
4.
To perform an erase of a 1-KB page
1.
2.
3.
To perform a mass erase of the flash
1.
2.
Register Map
Table 7-2 on page 114 lists the Flash memory and control registers. The offset listed is a hexadecimal
increment to the register's address. The FMA, FMD, FMC, FCRIS, FCIM, and FCMISC registers
are relative to the Flash control base address of 0x400F.D000. The FMPREn, FMPPEn, USECRL,
USER_DBG, and USER_REGn registers are relative to the System Control base address of
0x400F.E000.
Write source data to the FMD register.
Write the target address to the FMA register.
Write the flash write key and the WRITE bit (a value of 0xA442.0001) to the FMC register.
Poll the FMC register until the WRITE bit is cleared.
Write the page address to the FMA register.
Write the flash write key and the ERASE bit (a value of 0xA442.0002) to the FMC register.
Poll the FMC register until the ERASE bit is cleared.
Write the flash write key and the MERASE bit (a value of 0xA442.0004) to the FMC register.
Poll the FMC register until the MERASE bit is cleared.
HWREG(FLASH_FMC) = (FLASH_FMC_WRKEY | FLASH_FMC_COMT);
//
// Wait until the operation is complete.
//
while (HWREG(FLASH_FMC) & FLASH_FMC_COMT)
{
}
®
devices provide a user-friendly interface for flash programming. All erase/program
Type
R/W
R/W
0x0000.0000
0x0000.0000
Reset
Preliminary
Description
Flash Memory Address
Flash Memory Data
June 04, 2008
page
See
116
117

Related parts for LM3S308