| 12345678910111213141516171819202122232425 |
- /*!
- \file readme.txt
- \brief description of the DMA flash to ram example
- */
- /*
- Copyright (C) 2017 GigaDevice
- 2017-06-06, V1.0.0, firmware for GD32F3x0
- */
- This example is based on the GD32350R-EVAL board, it provides a description of how to
- use DMA channel0 to transfer data buffer from FLASH memory to embedded SRAM memory.
-
- Before programming the flash addresses, an erase operation is performed firstly.
- After the erase operation, a comparison between FLASH memory and 0xFFFFFFFF(Reset value)
- is done to check that the FLASH memory has been correctly erased.
- Once the erase operation is finished correctly, the programming operation will be
- performed by using the fmc_programword function. The written data is transfered to
- embedded SRAM memory by DMA0 Channel0. The transfer is started by enabling the DMA0 Channel0.
- At the end of the transfer, a Transfer Complete interrupt is generated since it
- is enabled. A comparison between the FLASH memory and embedded SRAM memory is done to
- check that all data have been correctly transferred.If the result of comparison is passed,
- LED1 to LED4 light up. Otherwise LED1 and LED3 light up.
|