1˵

    ṩһDMA MemtoMemģʽ÷FLASHRAM֮䴫ݡ  

2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0
    ƬFLASHGD25Q16

3ʹ˵
	
    1ʱԴHSE+PLL
    2ʱӣ64MHz
    3SPI1 ã
            SCK   -->  PB12
            MISO  -->  PB11
            MOSI  -->  PB10
            CS    -->  PB9
            ȫ˫
            ģʽ
            8bit
            ԣʼΪ/ڶ
            Ƭѡ
            ǰMSB

    4ʹ÷
          1سλУ
           2ͨ SPI1 ȡ GD25Q16  IDȻдݣٶȽ϶дݣ鿴 TransferStatus1 ״̬Ϊ PASSEDȻ飬

4ע
    


1. Function description
    This routine provides a DMA MemtoMem mode usage for transferring data between FLASH and RAM.

    
2. Use environment
	Software development environment: KEIL MDK-ARM V5.34.0.0
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0
    Off-chip FLASH: GD25Q16
    
3. Instructions for use

	/* Describe related module configuration methods; for example: clock, I/O, etc. */
	1. SystemClock: 64MHz
    2. clock source:HSE+PLL

    3. SPI1 configuration:
        SCK   -->  PB12
        MISO  -->  PB11
        MOSI  -->  PB10
        CS    -->  PB9
    	Full duplex
    	Main mode
    	8 bit transmission
    	Polarity: start at low/second edge
    	Piece of software to choose
    	Big end in front MSB

    4.Instructions:
        1. After compiling, download the program to reset and run;
        2. Read the ID of GD25Q16 through SPI1, then write the data, then read it out, compare the read and write data, check the status of TransferStatus1 as PASSED, 
            then erase the block, and check the erase block is normal;

4. Precautions
    None
