This demo is an example which introduces how to use flash driver and user boot mode.

Operation procedure:

1)Open Keil uVision, connect ULink2 with PC and IAR SK board, then click menu: Project->Open project, choose 

  "Flash_Userboot.uvproj" to open demo project.

2)Click menu: Flash->Erase to erase entire chip.

3)Click menu: Project->Rebuild all target files, then copy file "Flash_Userboot\KEIL\res\A\Flash_Userboot.axf"

  to folder "Flash_Userboot\KEIL\obj", choose "YES" to replace the existed file.
 
4)Click menu: Flash->Download, then Keil will use its embedded flashloader to load DemoA to board.

5)Repeat 3) and 4), copy file "Flash_Userboot\KEIL\res\B\Flash_Userboot.axf" to folder "Flash_Userboot\KEIL\obj" 

  to replace the existed file again, and then download DemoB to board.

6)Click menu: Project->Rebuild all target files, then click menu: Flash->Download to download application 

  "Flash_Userboot" to board.

7)Change the switch "TSW1" to high position, then press RESET button, DemoA will run first.

8)Change the switch "SW0" to low position, then press RESET button, there will be two processes:
     Exchange step: led display from right to left LED3->LED2->LED1
     Exchange of successful step : LED3 and LED2 show
  After exchange of successful, change the switch "SW0" to high position, and system will reset 
  automatically to run DemoB