Renesas Renasas Single-Chip Microcomputer SH7086 Technické informace Strana 89

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 108
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 88
Flash Development Toolkit
Method for Using the User Program Mode (SH7086 Application)
REJ06J0071-0100 /Rev.1.00 2009.2 Page 87 of 106
(4) RAM main process (RamMain)
The flow of the RAM main process (RamMain) is shown below.
1. In command process (ProcessCommand), process the commands. The processed commands are
listed below.
Since the files for user program mode are run in user programming mode, selecting a write to the user
boot area and erasing blocks of the user boot area cannot be performed.
User area write selection
128 byte write
Erase selection
Block erase
Memory read
User boot area sum check
User area sum check
User boot area blank check
User area blank check
Boot program status inquiry
2.
In the user area write select command, transfer a write library by library transfer (LibTrans) and then
branch to flash write (WriteFLASH).
3.
In flash write (WriteFLASH), set a clock frequency by write initialization (WriteInit).
Next, read in a command and if it’s a 128 byte write, receive the write data by write data reception
(GetWriteData) and write it to the flash memory by write start (EraseStart).
If the 128-byte data is the one at the end of write address, set an end of write code in the data to write
and at the address to which to write, and then terminate a write (actually by calling write start
(EraseStart)) to complete the write process.
4.
In the erase select command, transfer an erase library by library transfer (LibTrans) and then branch
to flash erase (EraseFLASH).
5.
In flash erase (EraseFLASH), set a clock frequency by erase initialization (EraseInit).
Next, read in a command and if it’s a block erase, receive the erase data by erase data reception
(GetEraseData) and erase a specified block by erase start (EraseStart).
If the received erase data is an end of erase data, terminate the erase process.
6. In the memory read command, the address from which to read is specified by command read
(GetCmdData). In memory read (ReadMemory), read memory contents from the user boot area and
user area.
7.
In the user boot area sum check and user area sum check commands, check the user boot area and
user area for data integrity by sum check (SumCheck).
8. In the user boot area blank check and user area blank check commands, check the user boot area
and user area for blank blocks by blank check (CheckBlank)
9.
In the boot program status inquiry command, transmit the processing status of boot by program status
(RequestBootPrgSts).
Zobrazit stránku 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 107 108

Komentáře k této Příručce

Žádné komentáře