AN2157 Freescale Semiconductor / Motorola, AN2157 Datasheet - Page 17

no-image

AN2157

Manufacturer Part Number
AN2157
Description
MSC8101 Programming the MSC8101ADS Flash Memory
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix E Flash Program Commands
print
dump
load_flash
sec_erase
program_word
help
sec_addr
set_boot
Command
<number><print>
<address> <dump>
<number><load_flash>
<number> <sec_erase>
<number1> <number2>
<program_word>
<help>
<number> <sec_address>
<address><set_boot>
The Flash program supports the commands listed in Table 4.
Syntax
Freescale Semiconductor, Inc.
For More Information On This Product,
Table 4. Flash Program Commands
Go to: www.freescale.com
Prints the number of the result of the last
operation.
Displays memory in increments of 16 bytes.
Terminate by typing “q”. If any key other
than “q” is entered, the next 16 consecutive
locations are displayed.
Programs Flash memory.
Erases the sector specified by number.
Programs the data specified by number1 at
the address specified by number2 to Flash
memory.
Displays available commands.
Returns the Flash sector address specified
by number.
Address vector set_boot programs address
at boot table + vector. HRCW data is saved,
sector 0 is erased, boot_table is updated
and sector 0 is reprogrammed.
Description
Running LEDblinker from Internal SRAM
256 print :
10 sec_addr print :
hfc280000 dump:
0 load_flash:
hfc280000 load_flash:
10 sec_erase:
DEADBEEF hfc280000:
10 sec_addr print :
Displays 00000100
Displays FC2800000
Displays 1 line of 16 memory
addresses.
Uses the address embedded in
the S-record to program Flash
memory. If invoked with any other
number, it uses that number as
the starting address in Flash
memory.
Starts the Flash programming at
location 0xFC280000
in Flash memory.
Erases sector 10 in the Flash
memory.
Programs DEADBEEF to Flash
memory at 0xFC280000.
Prints FC280000
Examples
17

Related parts for AN2157