1、功能说明
    1）此例程展示了CM4内核下的SPI的基本配置方法。
    2）SPI 通过DMA读、写、擦除 W25Q128/GT25Q16A

2、使用环境

    软件开发环境：KEIL MDK-ARM V5.34
                  IAR EWARM 8.50.1 
    芯片支持：
        N32H785
        N32H785xxxEC
        N32H787

3、使用说明

    系统配置
        1、时钟源：HSI+PLL
        2、系统时钟频率：
            M7核 600MHz  M4核 300MHz
        3、SPI配置：
            SPI1配置：NSS--PA4（接flash的NSS）、SCK--PA5（接flash的SCK）、MISO--PA6（接flash的SIO1/DO）MOSI--PA7 （接flash的SIO0/DI）    		
        4、USART配置：
            TX--PB10,115200,8bit data,1bit stop
            
    使用方法：
        1、将78x的GPIO的LedBlink demo和当前CM4的工程程序分别编译后下载到开发板并复位运行;
        2、可观察到PA2间隔1s循环点亮指示CM4正在运行;
        3、通过串口工具可以看到打印结果SPI flash DMA test pass。
        
4、注意事项
    更改SPI重新编译时，建议清空之前的编译文件
    
1. Function description

    1）This example shows the basic configuration of SPI in the condition of CM4.
    2）SPI Read, Write, Erase W25Q128  through DMA

2. Development environment

    Software development environment: KEIL MDK-ARM V5.34
                                      IAR EWARM 8.50.1 
    Supported chips:
        N32H785
        N32H785xxxEC
        N32H787

3. How to use

    System Configuration:
        1. Clock source: HSI+PLL
        2. System Clock frequency: 
            M7 Core：600MHz  M4 Core：300MHz
        3、SPI configuration:
            SPI1 configuration: NSS--PA4, SCK--PA5, MISO--PA6, MOSI--PA7
        4、USART configuration:
            TX--PB10,115200,8bit data,1bit stop

     Instructions:
        1. Compile the LedBlink demo for 78x's GPIO and the current CM4 project program respectively, 
           then download them to the development board and reset to run；
        2. PA2 flashes to indicate that the M4 core is running; 
        3. through the serial port tool to view the results:SPI flash DMA test pass.

4. Attention, such as compiled 487, to compile 475, you need to first clear the previous compiled content.

