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

Operation procedure:

1)Open IAR EWARM IDE, connect J-Link with PC and IAR SK board, then click menu: file->open->workspace, choose 

  "Flash_Userboot.eww" to open demo project.

2)Click menu: Project->Options->Debugger->Download, then check "Override default .board file" option, click the path button to  choose file "Flash_Userboot\IAR\res\DemoA_ for_M341FY.board", then press OK to close Options window.

3)Click menu: Project->Download->Download file, then choose file "Flash_Userboot\IAR\res\DemoA.out", click "open", then the  IAR embedded flashloader will download DemoA to specified block.

4)Repeat 2) and 3), choose .board file "Flash_Userboot\IAR\res\DemoB_ for_M341FY.board", and file "Flash_Userboot\IAR\res\DemoB.out" to download DemoB to specified block.

5)Click menu: Project->Options->Debugger->Download, then uncheck "Override default .board file" option, and press OK to close option window.

6)Click menu: Project->Download->Download active application to download application "Flash_Userboot" to board.

7)release SW1, then press RESET button, DemoA will run first.

8)pressing SW1, then press RESET button, there will be two processes:
     Exchange step: led display "LED2 flashes 8 times"->"LED2 flashes 4 times"->"LED2 flashes 2 times
     Exchange of successful step : "LED2 flashes 12 times"
  After exchange of successful, releasing SW1, and system will reset 
  automatically to run DemoB
