STM32G4 HAL DMA FLASH to RAM Transfer

This example demonstrates the usage of the STM32G4 HAL compatibility layer for DMA operations on the AM13E2X device. It transfers a buffer from FLASH to RAM using the STM32G4 HAL DMA APIs.

This example is designed to help users migrating from STM32G4 platforms to AM13E2X by demonstrating that existing STM32G4 HAL DMA code can run with minimal modifications.

External Connections

The example uses the on-board LEDs (LED1 and LED2) to indicate status:

  • LED2 toggles with a 200ms period when a transfer error is detected.

  • LED2 turns on when the transfer completes successfully and the data matches.

  • LED2 toggles with a 200ms period when the transfer completes but the data does not match.

  • LED1 toggles with a 1-second period in case of an error (e.g., HAL initialization failure).

No external connections are required for this example.