--- SpiBoot_miniMonitor Program update procedure for MiniMonitor SPI flash memory(U17, S25FL032) on GOSE board ---

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

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

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

0. First of All, you have to perform SpiBootLoder and miniMonitor program update on USER SPI flash memory(U16, S25FL512). 
   Please see the "U16_SpiBootLoder_update_procedure.txt"and "U16_SpiBoot_miniMonitor_update_procedure.txt" for more information.

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

2. Please check the GOSE MiniMonitor on startup message.

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-)  **

>


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

>ls_m
Load Program to Spiflash memory (U17:S25FL032P)
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 3pin-Side! Setting OK? (Push Y key)

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

3-4.Following message is displayed.

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

 2:User Program : Program to execute on DRAM or SecureRAM
        SPI_Address = H' 002_0000-H' 03F_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'503FFFFF) 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'020000-03FFFF 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'020000-03FFFF Erasing...Erase Completed
SAVE SPI-FLASH....... complete!
-- Save (Program Start Address & Size ) -----
SPI Data Clear(H'FF):H'010000-01FFFF 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(U17).
   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 S25FL032

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

>