Advanced Operations using the Flash Controller
473
SLAU356I – March 2015 – Revised June 2019
Copyright © 2015–2019, Texas Instruments Incorporated
Flash Controller (FLCTL)
(PRG_ERR)
•
Completion of erase operation (ERASE)
•
Completion of burst read and compare operation (can also stop due to compare mismatch) (RDBRST)
•
Benchmark counter match event (BMRK)
To generate an interrupt, users should enable the flash controller interrupt at NVIC level (Refer device
datasheet:
NVIC Interrupts
table) and the required interrupt enable conditions mentioned above.
NOTE:
The flash controller generates an active interrupt for any of the enabled conditions. It is the
responsibility of software to process and clear outstanding interrupt flags.
9.3.5 Application Benchmarking Features
The flash controller offers two counters for application benchmarking purposes. This feature is extremely
useful in scenarios where monitoring the number of flash accesses is a care-about, primarily because the
flash access power is the main contributor to the overall active power of the device. These counters are
described below
•
Instruction Fetch Benchmark Counter (32 bits)
–
Readable/Writable by software
–
Increments on each Instruction fetch to the flash
•
Data Fetch Benchmark Counter (32 bits)
–
Readable/Writable by software
–
Increments on each Data fetch to the flash
In addition, the flash controller also implements a compare based interrupt generation capability. The
interrupt generation logic can be configured to monitor either of the benchmark counters and generate an
event when the counter in consideration reaches a particular value.
9.3.6 Support for AM_LF_VCOREx and LPM0_LF_VCOREx Power Modes
The MSP432P4xx family of devices support low-frequency active (AM_LF_VCOREx) and low-frequency
LPM0 (LPM0_LF_VCOREx) modes. In these modes, the device runs in a very low-frequency low-leakage
mode, with the maximum bus clock frequency restricted to 128 kHz.
When operating in this mode, the flash controller has the following functionality:
•
Reads are carried out in normal read mode only. The Read Mode setting for both banks is
automatically set to normal read when the flash controller detects the low-frequency active or low-
frequency LPM0 modes (AM_LF_VCOREx or LPM0_LF_VCOREx modes).
•
Read burst and compare operation is not permitted.
•
Any form of program or erase operation is not permitted.
NOTE:
It is the responsibility of the application to ensure that only read operations are carried out to
the flash when the device is in low-frequency active or low-frequency LPM0 modes. All other
operations are ignored without generating an exception. If the flash is enabled for full word
write mode, and an entry to low-frequency active or low-frequency LPM0 mode is initiated,
any partially composed data in the 128-bit write word is discarded without generating an
exception.
9.3.7 Flash Functionality During Resets
This section concentrates on the effect of system/device level resets on the flash functionality.
9.3.7.1
Soft Reset (Class 3)
A Soft Reset has no impact on the flash controller functionality.