
Writing an Image to Flash
LITE5200B User’s Manual, Rev. 0
Freescale Semiconductor
5-9
Usage:
go
[ address ] [ arg .. ]
This will start execution of code at the address specified. Arguments may be optionally provided and passed using the EABI
specification.
5.8
Writing an Image to Flash
Once an image has been downloaded into ram it may be written to flash by first performing an erase and
then performing a memory copy to the specified flash region. Instructions for erasing a flash region can be
found in Section 5.8, “Writing an Image to Flash,” on page 5-9.
Usage:
cp
[ .b, .w, .l ] source target count
This will copy a region of memory from the source to the target writing to flash if required.
Example:
=>
erase
0xFF000000 0xFF00FFFF
Erasing Sector: 0 - 0xff000000
done
Erased 1 sectors
=> cp 0x3000 0xFF000000 0x100
Copy to Flash... done
5.9
Erasing Flash
Before writing to flash area of memory, it must first be erase or an error will occur. This may be done using
the following command.
Usage:
erase
[ sector start ] [ sector end ]
Care must be taken to specify ending address on a sector boundary.