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

This document is the explanation of the update SpiBootLoder 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 3pin-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 "1" to select Loader Program.
   Following message is displayed.

  Select area(1-2)>1
-- Loader Program --------------------------
Work RAM(H'E6300000-H'E633FFFF) Clear....
please send ! ('.' & CR stop load)

5. Please transfer the SpiBootLoder program(1_GOSE_SPI_LOADER_Vxxx.mot) to GOSE board via terminal software.

5-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'00000000-0003FFFF,Clear OK?(y/n)

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

SPI Data Clear(H'FF) Check :H'00000000-0003FFFF Erasing..Erase Completed
SAVE SPI-FLASH....... complete!
>

8. If you decide to migrate to the new miniMonitor, then you will have to update miniMonitor program. 
   Please see the "U16_SpiBoot_miniMonitor_update_procedure.txt" for more information.


9. Please startup user 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
 Now Loading ... ok


