1、功能说明
    此例程配置ICACHE、DCACHE缓存，使能XSPI为XIP模式，通过地址映射对外部FLASH里的程序进行访问。

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
                  IAR EWARM 8.50.1 
    硬件开发环境：
        N32H787系列：
        基于评估板N32H787XKB7_EVB V1.1开发
        基于评估板N32H787_HMI_V1.1开发
        
    芯片支持：
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787
        
3、使用说明

    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            600MHz
        3、引脚：
            N32H787XKB7_EVB V1.1开发板引脚：
                XSPI_NSS1 : PK5   XSPI_CLK : PB2 
                XSPI_IO0 : PB1   XSPI_IO1 : PB0
                XSPI_IO2 : PI11  XSPI_IO3 : PA6
            N32H787_HMI_V1.1开发板引脚：
                XSPI_NSS1: PG12  XSPI_CLK : PB2 
                XSPI_IO0 : PF8   XSPI_IO1 : PB0
                XSPI_IO2 : PF7   XSPI_IO3 : PF6
            外部Spi_Flash设备：W25Q128                     
    使用方法：
        1、编译后将工程程序下载到开发板并复位运行。
        2、XSPI初始化完成后，先通过标准模式配置FLASH写使能和QE模式，然后配置MCU为QSPI模式将BIN文件写入外部FLASH。
		之后再根据FLASH手册命令来配置XIP模式，while循环中进行BIN文件跳转。如果打印at 0x17004f97则代表执行成功。

4、注意事项
    无
    
1. Function description

    This routine configures the ICACHE and DCACHE caches, enables XSPI in XIP mode, and accesses programs in external flash via address mapping.

2. Use environment

    Software development environment: KEIL MDK-ARM V5.34
                                      IAR EWARM 8.50.1 
    MCU support:
        N32H760
        N32H762
        N32H765
        N32H765EC
        N32H785
        N32H785EC
        N32H787

      
                
3. Instructions for use

    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            600MHz
        3.GPIO:
            N32H787 Series:
                Based on the evaluation board N32H787XKB7_EVB V1.1:
                    XSPI_NSS1 : PK5   XSPI_CLK : PB2 
                    XSPI_IO0 : PB1   XSPI_IO1 : PB0
                    XSPI_IO2 : PI11  XSPI_IO3 : PA6
                Based on the evaluation board N32H787_HMI_V1.1:
                    XSPI_NSS1: PG12  XSPI_CLK : PB2 
                    XSPI_IO0 : PF8   XSPI_IO1 : PB0
                    XSPI_IO2 : PF7   XSPI_IO3 : PF6
					
				External SPI Flash Device: W25Q128
     Instructions:
        1. Compile and download the program to the development board, then reset to run.
        2. After XSPI initialization is completed, first configure FLASH write enable and 
		QE mode through the standard mode. Then, configure the MCU to QSPI mode to write
		the BIN file to the external FLASH.Afterwards, configure the XIP mode according 
		to the commands in the FLASH manual, and perform the BIN file jump within a while
		loop. If at 0x17004f97 is printed, it indicates successful execution.

4. Attention
    None

