Flash Programming Basics
The device CPU performs the flash programming
The CPU executes Flash utility code from RAM that reads the Flash
data and writes it into the Flash
We need to get the Flash utility code and the Flash data into RAM
FLASH
CPU
RAM
F28x7x
JTAG
Emulator
SPI
Flash
Utility
Code
Flash
Data
I2C
ROM
Bootloader
CAN
SCI
RS232
USB
GPIO
Flash Programming Basics
Sequence of steps for Flash programming:
Minimum Erase size is a sector
Minimum Program size is a bit!
Important not to lose power during erase step:
If CSM passwords happen to be all zeros, the
CSM will be permanently secured!
Chance of this happening is quite small! (Erase
step is performed sector by sector)
1. Erase - Set all bits to one
2. Program - Program selected bits with zero
3. Verify - Verify flash contents
Algorithm Function