
Flash Development Toolkit
Method for Using the User Program Mode (SH7086 Application)
REJ06J0071-0100 /Rev.1.00 2009.2 Page 98 of 106
• Execution of a write termination process (WriteFLASH)
This is part of the flash memory write termination process. For details, refer to the sources of the files for
user program mode.
In write data reception (GetWriteData), receive the address where the data to write is stored and the
address to which to write. If the write destination address is WRITE_END (0xFFFFFFFF), execute a write
termination process.
Read out the write library.
/* Acquisition of command data */
if (GetWriteData(pData, &pAddress, add_sum)){
return;
}
if (pAddress != WRITE_END){
/* A setup of boot status */
BootStatus = MODE_WRITE_RUN;
/* Program start */
if (ErrorStatus = WriteStart(pData, pAddress)){
Kommentare zu diesen Handbüchern