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
TMS320F2806x
JTAG
Emulator
SPI
Flash
Utility
Code
Flash
Data
I2C
ROM
Bootloader
CAN
SCI
RS232
GPIO
Flash Programming Basics
Sequence of steps for Flash programming:
Minimum Erase size is a sector (8Kw or 16Kw)
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 locked!
Chance of this happening is quite small! (Erase
step is performed sector by sector)
1. Erase - Set all bits to zero, then to one
2. Program - Program selected bits with zero
3. Verify - Verify flash contents
Algorithm Function