Renesas H8S/2378F Informacje Techniczne Strona 101

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 100
(3) Executing programming end processing (WriteFLASH)
Flash memory programming end processing is partially shown below. For details, refer to Source Files of the Sample
Program.
Programming data reception (GetWriteData) receives the programming data storage address and programming
destination address. When the programming destination address is WRITE_END (0xFFFFFFFF), programming end
processing is performed.
The programming data storage address is set to ADD_WRITE_PRM0 (0xF0F0F0F0), the programming destination
address is set to ADD_WRITE_PRM1 (0x0F0F0F0F), and the programming library is read.
/* Acquisition of command data */
if (GetWriteData(pData, &pAddress, add_sum)){
return;
}
if (pAddress == WRITE_END){
pData = (BYTE *)ADD_WRITE_PRM0;
pAddress = ADD_WRITE_PRM1;
end_flg = LOOP_END;
}
/* A setup of boot status */
BootStatus = MODE_WRITE_RUN;
/* Write-in start */
if (ErrorStatus = WriteStart(pData, pAddress)){
93
Przeglądanie stron 100

Komentarze do niniejszej Instrukcji

Brak uwag