--- SpiBoot_miniMonitor Program update procedure for USER SPI flash memory(U16, S25FL512) on GOSE board ---

This document is the explanation of the update SpiBoot_miniMonitor in the SPI flash memory(U16).

Notes
The SpiBoot_miniMonitor program version is common to U16 and U17. 

Usage example of writing of user program using the LS command.

1. SW setting on GOSE board
   Please setting the DIPSW to startup SpiBoot_miniMonitor from SPI flash memory(U17) in reference to setup manual.

2. Please check the GOSE MiniMonitor on startup message.


GOSE SPI_LOADER Vx.xx 2014.xx.xx
 DEVICE S25FL032

GOSE MiniMonitor SPI_BOOT
 Work memory DRAM (H'40200000-)
 2014.xx.xx Verx.xx ** Program on DRAM (H'40000000-)  **

>


3. Please type "LS" command. and the following is displayed.

>ls
Load Program to Spiflash memory (U16:S25FL512S)
SW18[5:1]=OFF! Setting OK? (Push Y key)

3-1.Please set SW18[5:1]=OFF, and input "Y". 
    Following message is displayed.

SW16 1pin-Side! Setting OK? (Push Y key)

3-2.Please set SW16 1pin-Side, and input "Y". 
    Following message is displayed.

SW17 1pin-Side! Setting OK? (Push Y key)

3-3.Please set SW17 1pin-Side, and input "Y". 

3-4.Following message is displayed.

>ls
Load Program to Spiflash memory (U16:S25FL512S)
---------------------------------------------------------
Please select,SPI-FLASH Save Area.
 1:Loader Program : Program to execute on SecureRAM
        SPI_Address = H' 000_0000-H' 003_FFFF

 2:User Program : Program to execute on DRAM or SecureRAM
        SPI_Address = H' 008_0000-H' 3FF_FFFF
---------------------------------------------------------
  Select area(1-2)>

4. Please input "2" to select User Program.
   Following message is displayed.

  Select area(1-2)>2
-- User Program ----------------------------
Please Input User Program Start Address : 


5.Please input the top address of the user program to be written.
  Input 40000000 for the SpiBoot_miniMonitor program which runs on the DDR memory.
  Following message is displayed.

-- User Program ----------------------------
Please Input User Program Start Address : 40000000
Work RAM(H'50000000-H'53FFFFFF) Clear....
please send ! ('.' & CR stop load)

6. Please transfer the SpiBoot_miniMonitor program(2_GOSE_MON_DRAM_SPI_Vxxx_40000000.mot) to GOSE board via terminal software.

6-1. Following message is displayed if any program was saved the SPI flash memory(U16).
   If you erase it, please input "Y".

SPI Data Clear(H'FF) Check :H'00080000-000BFFFF,Clear OK?(y/n)

7. If you input "Y", it is written the SpiBoot_miniMonitor program to the SPI flash memory(U16). 
   And following message is displayed.

SPI Data Clear(H'FF) Check :H'00080000-000BFFFF Erasing..Erase Completed
SAVE SPI-FLASH....... complete!
-- Save (Program Start Address & Size ) -----
SPI Data Clear(H'FF):H'040000-07FFFF Erasing..Erase Completed
SAVE SPI-FLASH....... complete!

8.After writing to SA1 is completed, the written data is displayed.

==========  SPI Flash Sector1 Save Information  =========
 Program Start Address :  H'40000000
 Program Size          :  H'00010DD4
=========================================================

>

9. Please push the resetSW(SW7). Next it startup SpiBoot_miniMonitor program from SPI flash memory(U16).
   If your message on terminal is same as following message, Program update has been completed successfully.   

GOSE SPI_LOADER Vx.xx 2014.xx.xx
 DEVICE S25FL512

GOSE MiniMonitor SPI_BOOT
 Work memory DRAM (H'40200000-)
 2014.xx.xx Verx.xx ** Program on DRAM (H'40000000-)  **

>