Flash Commands
10-23
10.6 Flash Commands
The flash commands affect the User Flash devices on the BajaPPC-750 circuit
board. They return zero upon successful completion of the operation, or –1 upon
failure.
The flash commands protect the monitor code after it is copied into the flash
memory. If jumper J6 is installed, attempts to write to the 512-kilobyte range
above FF90,0000
16
return an error. (The monitor boots from this address.) Simi-
larly, writes to FF88,0000
16
are prohibited when Bank 0 is set by the Flash Bank
Select register (refer to Register Map 4-1). If jumper J6 is not installed, the moni-
tor code still can be installed in flash Bank 0 and addressed at FF80,0000
16
.
The commands described in sections 10.6.5 through 10.6.7 only affect the 32-
megabyte flash devices.
10.6.1 flashblkwr
flashblkwr
source destination bytecount
writes
bytecount
from the
source
address
to the
destination
address (flash memory).
flashblkwr
calls
flasheraseblk
to
erase the block(s) it will write to. In the event of a write or erase error, it calls
flashclrstat
.
DEFINITION
int FlashBlkWr(unsigned char *Src,
unsigned char *Dest,
int ByteCnt)
10.6.2 flashbytewrite
flashbytewrite
destination value
writes
value
to the byte at the
destination
address.
DEFINITION
int FlashByteWrite(unsigned char *FlashAddr,
unsigned char Value)
10.6.3 flashclrstat
flashclrstat
destination
resets the status register of the flash memory that con-
tains the
destination
address.
DEFINITION
void FlashClrStat(unsigned char *FlashAddr)
Содержание BajaPPC-750
Страница 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 7: ......
Страница 16: ...0002M621 15 ix Register Map 9 1 Counter Timer Status CTSR 9 2 Register Map 9 2 Counter Timer Mode CTMR 9 4...
Страница 19: ...xii BajaPPC 750 Contents...
Страница 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Страница 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Страница 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Страница 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Страница 207: ...10 68 BajaPPC 750 Monitor May 2002...