1˵

    ṩһDMA MemtoMemģʽ÷FLASHRAM֮䴫ݡ  

2ʹû

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


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

    5ʹ÷
          1سλУ
          2SPI1SPI2 ͬʱշݣɺ󣬷 CRC ݣݺ CRC ֵ
               鿴 TransferStatus1  TransferStatus2 ״̬Ϊ PASSEDٲ鿴 CRC ֵ

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

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
    	Full duplex
    	Main mode
    	8 bit transmission
    	Polarity: start at low/second edge
    	Piece of software to choose
    	Big end in front MSB

    4. SPI2 Configuration:
        SCK   -->  PC0 
        MISO  -->  PC3
        MOSI  -->  PC2
    	Full duplex
    	From the pattern
    	8 bit transmission
    	Polarity: start at low/second edge
    	Piece of software to choose
    	Big end in front MSB

    5.Instructions:
        1. After compiling, download the program to reset and run;
        2. SPI1, SPI2 send and receive data at the same time, after the transmission is completed, send CRC data, check the data and CRC value,
           Check that the status of TransferStatus1 and TransferStatus2 is PASSED, and then check the CRC value;

4. Precautions
    None
