1、功能说明
     XSPI quad DMA模式擦除、读、写外部Spi_Flash设备

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
                  IAR EWARM 8.50.1 
    硬件开发环境：
        N32H787系列：
        基于评估板N32H787XKB7_EVB V1.1开发
        基于评估板N32H787_HMI_V1.1开发
        基于评估板N32H787EVB_PRO V1.0开发
        
    芯片支持：
        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
            N32H787EVB_PRO V1.0开发板引脚
                XSPI_NSS1: PK5   XSPI_CLK : PF10  XSPI_DQS : PK6
                XSPI_IO0 : PF8   XSPI_IO1 : PF9
                XSPI_IO2 : PF7   XSPI_IO3 : PF6
                XSPI_IO4 : PH2   XSPI_IO5 : PH3
                XSPI_IO6 : PK3   XSPI_IO7 : PK4
            外部Spi_Flash设备：W25Q128                  
    使用方法：
        1、选择所需要的开发板宏，重新编译。
        2、XSPI初始化完成后，先通过标准模式分别擦除Spi_Flash设备，然后读取确认数据是否为0xFF，有错误则打印报错。

4、注意事项
    无
    
1. Function description

    Erasing, reading, and writing to external SPI flash devices using XSPI quad DMA mode.

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
                Based on the evaluation board N32H787EVB_PRO V1.0:
                    XSPI_NSS1: PK5   XSPI_CLK : PF10  XSPI_DQS : PK6
                    XSPI_IO0 : PF8   XSPI_IO1 : PF9
                    XSPI_IO2 : PF7   XSPI_IO3 : PF6
                    XSPI_IO4 : PH2   XSPI_IO5 : PH3
                    XSPI_IO6 : PK3   XSPI_IO7 : PK4   
					
				External SPI Flash Device: W25Q128
     Instructions:
        1. Select the required development board macro and recompile.
        2. After XSPI initialization is completed, first erase the Spi_Flash device in standard mode, then read and verify whether the data is 0xFF; print an error message if any errors are detected.

4. Attention
    None

